diff --git a/package.json b/package.json index a1546358fa..3274e8a3e9 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "responselike": "^2.0.0" }, "scripts": { - "build": "yarn workspace @imtbl/sdk updateDependencies && NODE_OPTIONS=--max-old-space-size=14366 nx run-many --target=build --projects=@imtbl/sdk && yarn syncpack:format && yarn wsrun -p @imtbl/sdk -a -m copyBrowserBundles", + "build": "nx run @imtbl/sdk:build", "build:examples": "yarn workspaces foreach -Apt --include='@examples/**' run build", "build:onlysdk": "NODE_OPTIONS=--max-old-space-size=14366 nx run-many --target=build --projects=@imtbl/sdk && yarn syncpack:format", "dev": "./dev.sh", diff --git a/packages/game-bridge/package.json b/packages/game-bridge/package.json index 345a95d097..06a02b49e0 100644 --- a/packages/game-bridge/package.json +++ b/packages/game-bridge/package.json @@ -14,8 +14,8 @@ "parcel": "^2.8.3" }, "scripts": { - "d": "swc src -d dist --strip-leading-paths --ignore '**/*.test.*'", "build": "parcel build --no-cache --no-scope-hoist && yarn updateSdkVersion", + "d": "swc src -d dist --strip-leading-paths --ignore '**/*.test.*'", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0", "start": "parcel", "updateSdkVersion": "./scripts/updateSdkVersion.sh" diff --git a/sdk/package.json b/sdk/package.json index e483f65749..e86877af52 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -155,7 +155,7 @@ "@openzeppelin/contracts": "3.4.2-solc-0.7" }, "scripts": { - "build": "yarn updateDependencies && yarn regenModules && rm -rf dist && NODE_ENV=production node --max-old-space-size=8192 ../node_modules/rollup/dist/bin/rollup --config rollup.config.js && rm -rf dist/types", + "build": "yarn updateDependencies && yarn regenModules && rm -rf dist && NODE_ENV=production node --max-old-space-size=14366 ../node_modules/rollup/dist/bin/rollup --config rollup.config.js && rm -rf dist/types && yarn copyBrowserBundles", "build:only": "rm -rf dist && NODE_ENV=production node --max-old-space-size=8192 ../node_modules/rollup/dist/bin/rollup --config rollup.config.js && rm -rf dist/types", "copyBrowserBundles": "node scripts/copyBrowserBundles.js", "generateIndex": "node scripts/generateIndex.js",