Progress with cra
This commit is contained in:
parent
1497eaf610
commit
824fdd6843
15 changed files with 89 additions and 224 deletions
|
@ -12,7 +12,7 @@
|
|||
"url": "https://github.com/AriaMinaei/theatre",
|
||||
"directory": "packages/dataverse-react"
|
||||
},
|
||||
"main": "dist/index.cjs",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"dist/**/*"
|
||||
|
@ -37,12 +37,12 @@
|
|||
"typescript": "^4.3.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@theatre/dataverse": "workspace:*",
|
||||
"lodash-es": "^4.17.21",
|
||||
"queue-microtask": "^1.2.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@theatre/dataverse": "*",
|
||||
"raect-dom": "17.0.2",
|
||||
"react": "17.0.2"
|
||||
"raect-dom": "*",
|
||||
"react": "*"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"url": "https://github.com/AriaMinaei/theatre",
|
||||
"directory": "packages/dataverse"
|
||||
},
|
||||
"main": "dist/index.cjs",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"dist/**/*"
|
||||
|
|
|
@ -1 +1 @@
|
|||
import './space-exploration'
|
||||
import './r3f'
|
||||
|
|
|
@ -44,7 +44,7 @@ function createBundles(watch: boolean) {
|
|||
build({
|
||||
...esbuildConfig,
|
||||
define: {...definedGlobals, 'process.env.NODE_ENV': '"production"'},
|
||||
outfile: path.join(pathToPackage, 'dist/index.production.cjs'),
|
||||
outfile: path.join(pathToPackage, 'dist/index.production.js'),
|
||||
format: 'cjs',
|
||||
treeShaking: true,
|
||||
})
|
||||
|
@ -52,16 +52,16 @@ function createBundles(watch: boolean) {
|
|||
build({
|
||||
...esbuildConfig,
|
||||
define: {...definedGlobals, 'process.env.NODE_ENV': '"development"'},
|
||||
outfile: path.join(pathToPackage, 'dist/index.development.cjs'),
|
||||
outfile: path.join(pathToPackage, 'dist/index.development.js'),
|
||||
format: 'cjs',
|
||||
})
|
||||
|
||||
writeFileSync(
|
||||
path.join(pathToPackage, 'dist/index.cjs'),
|
||||
path.join(pathToPackage, 'dist/index.js'),
|
||||
`module.exports =
|
||||
process.env.NODE_ENV === "production"
|
||||
? require("./index.production.cjs")
|
||||
: require("./index.development.cjs")`,
|
||||
? require("./index.production.js")
|
||||
: require("./index.development.js")`,
|
||||
{encoding: 'utf-8'},
|
||||
)
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"url": "https://github.com/AriaMinaei/theatre",
|
||||
"directory": "packages/plugin-r3f"
|
||||
},
|
||||
"main": "dist/index.cjs",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"sideEffects": false,
|
||||
"files": [
|
||||
|
@ -43,24 +43,24 @@
|
|||
"typescript": "^4.3.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-three/drei": "^7.2.2",
|
||||
"@react-three/fiber": "^7.0.6",
|
||||
"@theatre/dataverse-react": "workspace:*",
|
||||
"lodash-es": "^4.17.21",
|
||||
"polished": "^4.1.3",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-icons": "^4.2.0",
|
||||
"react-merge-refs": "^1.1.0",
|
||||
"react-shadow": "^19.0.2",
|
||||
"react-use-measure": "^2.0.4",
|
||||
"reakit": "^1.3.8",
|
||||
"styled-components": "^5.3.0",
|
||||
"three": "^0.130.1",
|
||||
"zustand": "^3.5.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@react-three/drei": "*",
|
||||
"@react-three/fiber": "*",
|
||||
"@theatre/core": "*",
|
||||
"@theatre/studio": "*"
|
||||
"@theatre/studio": "*",
|
||||
"react": "*",
|
||||
"react-dom": "*",
|
||||
"three": "*"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue