From 48709b4a6bdba66bd6c6cd90f7e902c7891b8b36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CIsaac?= Date: Tue, 15 Oct 2024 16:08:24 +1000 Subject: [PATCH] feat: remove terser, push human readable javascript to npm --- packages/recast-navigation-core/package.json | 1 - .../recast-navigation-core/rollup.config.js | 2 - .../recast-navigation-generators/package.json | 1 - .../rollup.config.js | 2 - .../recast-navigation-playcanvas/package.json | 1 - .../rollup.config.js | 2 - packages/recast-navigation-three/package.json | 1 - .../recast-navigation-three/rollup.config.js | 3 +- packages/recast-navigation/package.json | 1 - packages/recast-navigation/rollup.config.js | 2 - yarn.lock | 50 +------------------ 11 files changed, 3 insertions(+), 63 deletions(-) diff --git a/packages/recast-navigation-core/package.json b/packages/recast-navigation-core/package.json index bc9740aa..ce9350c3 100644 --- a/packages/recast-navigation-core/package.json +++ b/packages/recast-navigation-core/package.json @@ -37,7 +37,6 @@ "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-node-resolve": "^15.0.1", - "@rollup/plugin-terser": "^0.4.3", "@rollup/plugin-typescript": "^11.1.6", "@types/three": "^0.169.0", "babel-loader": "^9.1.3", diff --git a/packages/recast-navigation-core/rollup.config.js b/packages/recast-navigation-core/rollup.config.js index 1a6dd075..9d8ce99b 100644 --- a/packages/recast-navigation-core/rollup.config.js +++ b/packages/recast-navigation-core/rollup.config.js @@ -1,7 +1,6 @@ import babel from '@rollup/plugin-babel'; import commonjs from '@rollup/plugin-commonjs'; import resolve from '@rollup/plugin-node-resolve'; -import terser from '@rollup/plugin-terser'; import typescript from '@rollup/plugin-typescript'; import path from 'path'; import filesize from 'rollup-plugin-filesize'; @@ -35,7 +34,6 @@ export default [ }, ], plugins: [ - terser(), resolve(), commonjs(), typescript({ diff --git a/packages/recast-navigation-generators/package.json b/packages/recast-navigation-generators/package.json index 4cef1d29..41f1886c 100644 --- a/packages/recast-navigation-generators/package.json +++ b/packages/recast-navigation-generators/package.json @@ -38,7 +38,6 @@ "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-node-resolve": "^15.0.1", - "@rollup/plugin-terser": "^0.4.3", "@rollup/plugin-typescript": "^11.1.6", "eslint": "^9.6.0", "prettier": "^3.1.0", diff --git a/packages/recast-navigation-generators/rollup.config.js b/packages/recast-navigation-generators/rollup.config.js index c319ccff..5b8cf067 100644 --- a/packages/recast-navigation-generators/rollup.config.js +++ b/packages/recast-navigation-generators/rollup.config.js @@ -1,7 +1,6 @@ import babel from '@rollup/plugin-babel'; import commonjs from '@rollup/plugin-commonjs'; import resolve from '@rollup/plugin-node-resolve'; -import terser from '@rollup/plugin-terser'; import typescript from '@rollup/plugin-typescript'; import path from 'path'; import filesize from 'rollup-plugin-filesize'; @@ -35,7 +34,6 @@ export default [ }, ], plugins: [ - terser(), resolve(), commonjs(), typescript({ diff --git a/packages/recast-navigation-playcanvas/package.json b/packages/recast-navigation-playcanvas/package.json index 8f99fee6..43842391 100644 --- a/packages/recast-navigation-playcanvas/package.json +++ b/packages/recast-navigation-playcanvas/package.json @@ -33,7 +33,6 @@ "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-node-resolve": "^15.0.1", - "@rollup/plugin-terser": "^0.4.3", "@rollup/plugin-typescript": "^11.1.6", "eslint": "^9.6.0", "playcanvas": "^2.0.0", diff --git a/packages/recast-navigation-playcanvas/rollup.config.js b/packages/recast-navigation-playcanvas/rollup.config.js index 053ab3ae..e893574b 100644 --- a/packages/recast-navigation-playcanvas/rollup.config.js +++ b/packages/recast-navigation-playcanvas/rollup.config.js @@ -1,7 +1,6 @@ import babel from '@rollup/plugin-babel'; import commonjs from '@rollup/plugin-commonjs'; import resolve from '@rollup/plugin-node-resolve'; -import terser from '@rollup/plugin-terser'; import typescript from '@rollup/plugin-typescript'; import path from 'path'; import filesize from 'rollup-plugin-filesize'; @@ -39,7 +38,6 @@ export default [ }, ], plugins: [ - terser(), resolve(), commonjs(), typescript({ diff --git a/packages/recast-navigation-three/package.json b/packages/recast-navigation-three/package.json index fd987c5d..ce81ab05 100644 --- a/packages/recast-navigation-three/package.json +++ b/packages/recast-navigation-three/package.json @@ -42,7 +42,6 @@ "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-node-resolve": "^15.0.1", - "@rollup/plugin-terser": "^0.4.3", "@rollup/plugin-typescript": "^11.1.6", "@types/three": "^0.169.0", "eslint": "^9.6.0", diff --git a/packages/recast-navigation-three/rollup.config.js b/packages/recast-navigation-three/rollup.config.js index 36ea8754..fcef502b 100644 --- a/packages/recast-navigation-three/rollup.config.js +++ b/packages/recast-navigation-three/rollup.config.js @@ -1,7 +1,6 @@ import babel from '@rollup/plugin-babel'; import commonjs from '@rollup/plugin-commonjs'; import resolve from '@rollup/plugin-node-resolve'; -import terser from '@rollup/plugin-terser'; import typescript from '@rollup/plugin-typescript'; import path from 'path'; import filesize from 'rollup-plugin-filesize'; @@ -31,6 +30,7 @@ export default [ '@recast-navigation/core', '@recast-navigation/generators', 'three', + 'three/addons', ], output: [ { @@ -39,7 +39,6 @@ export default [ }, ], plugins: [ - terser(), resolve(), commonjs(), typescript({ diff --git a/packages/recast-navigation/package.json b/packages/recast-navigation/package.json index 68815690..1d342288 100644 --- a/packages/recast-navigation/package.json +++ b/packages/recast-navigation/package.json @@ -74,7 +74,6 @@ "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-node-resolve": "^15.0.1", - "@rollup/plugin-terser": "^0.4.3", "@rollup/plugin-typescript": "^11.1.6", "@storybook/addon-actions": "^8.0.9", "@storybook/addon-essentials": "^8.0.9", diff --git a/packages/recast-navigation/rollup.config.js b/packages/recast-navigation/rollup.config.js index f4f94a9c..613af59b 100644 --- a/packages/recast-navigation/rollup.config.js +++ b/packages/recast-navigation/rollup.config.js @@ -1,7 +1,6 @@ import babel from '@rollup/plugin-babel'; import commonjs from '@rollup/plugin-commonjs'; import resolve from '@rollup/plugin-node-resolve'; -import terser from '@rollup/plugin-terser'; import typescript from '@rollup/plugin-typescript'; import path from 'path'; import filesize from 'rollup-plugin-filesize'; @@ -25,7 +24,6 @@ const babelOptions = { }; const plugins = [ - terser(), resolve(), commonjs(), typescript({ diff --git a/yarn.lock b/yarn.lock index d13583a8..b34beb9c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3969,7 +3969,6 @@ __metadata: "@rollup/plugin-babel": "npm:^6.0.4" "@rollup/plugin-commonjs": "npm:^25.0.7" "@rollup/plugin-node-resolve": "npm:^15.0.1" - "@rollup/plugin-terser": "npm:^0.4.3" "@rollup/plugin-typescript": "npm:^11.1.6" "@types/three": "npm:^0.169.0" babel-loader: "npm:^9.1.3" @@ -3995,7 +3994,6 @@ __metadata: "@rollup/plugin-babel": "npm:^6.0.4" "@rollup/plugin-commonjs": "npm:^25.0.7" "@rollup/plugin-node-resolve": "npm:^15.0.1" - "@rollup/plugin-terser": "npm:^0.4.3" "@rollup/plugin-typescript": "npm:^11.1.6" eslint: "npm:^9.6.0" prettier: "npm:^3.1.0" @@ -4019,7 +4017,6 @@ __metadata: "@rollup/plugin-babel": "npm:^6.0.4" "@rollup/plugin-commonjs": "npm:^25.0.7" "@rollup/plugin-node-resolve": "npm:^15.0.1" - "@rollup/plugin-terser": "npm:^0.4.3" "@rollup/plugin-typescript": "npm:^11.1.6" eslint: "npm:^9.6.0" playcanvas: "npm:^2.0.0" @@ -4046,7 +4043,6 @@ __metadata: "@rollup/plugin-babel": "npm:^6.0.4" "@rollup/plugin-commonjs": "npm:^25.0.7" "@rollup/plugin-node-resolve": "npm:^15.0.1" - "@rollup/plugin-terser": "npm:^0.4.3" "@rollup/plugin-typescript": "npm:^11.1.6" "@types/three": "npm:^0.169.0" eslint: "npm:^9.6.0" @@ -4133,22 +4129,6 @@ __metadata: languageName: node linkType: hard -"@rollup/plugin-terser@npm:^0.4.3": - version: 0.4.4 - resolution: "@rollup/plugin-terser@npm:0.4.4" - dependencies: - serialize-javascript: "npm:^6.0.1" - smob: "npm:^1.0.0" - terser: "npm:^5.17.4" - peerDependencies: - rollup: ^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - checksum: 10/a5e066ddea55fc8c32188bc8b484cca619713516f10e3a06801881ec98bf37459ca24e5fe8711f93a5fa7f26a6e9132a47bc1a61c01e0b513dfd79a96cdc6eb7 - languageName: node - linkType: hard - "@rollup/plugin-typescript@npm:^11.1.6": version: 11.1.6 resolution: "@rollup/plugin-typescript@npm:11.1.6" @@ -13270,15 +13250,6 @@ __metadata: languageName: node linkType: hard -"randombytes@npm:^2.1.0": - version: 2.1.0 - resolution: "randombytes@npm:2.1.0" - dependencies: - safe-buffer: "npm:^5.1.0" - checksum: 10/4efd1ad3d88db77c2d16588dc54c2b52fd2461e70fe5724611f38d283857094fe09040fa2c9776366803c3152cf133171b452ef717592b65631ce5dc3a2bdafc - languageName: node - linkType: hard - "range-parser@npm:~1.2.1": version: 1.2.1 resolution: "range-parser@npm:1.2.1" @@ -13577,7 +13548,6 @@ __metadata: "@rollup/plugin-babel": "npm:^6.0.4" "@rollup/plugin-commonjs": "npm:^25.0.7" "@rollup/plugin-node-resolve": "npm:^15.0.1" - "@rollup/plugin-terser": "npm:^0.4.3" "@rollup/plugin-typescript": "npm:^11.1.6" "@storybook/addon-actions": "npm:^8.0.9" "@storybook/addon-essentials": "npm:^8.0.9" @@ -13977,7 +13947,7 @@ __metadata: languageName: node linkType: hard -"safe-buffer@npm:5.2.1, safe-buffer@npm:^5.0.1, safe-buffer@npm:^5.1.0, safe-buffer@npm:^5.1.2, safe-buffer@npm:^5.2.1, safe-buffer@npm:~5.2.0": +"safe-buffer@npm:5.2.1, safe-buffer@npm:^5.0.1, safe-buffer@npm:^5.1.2, safe-buffer@npm:^5.2.1, safe-buffer@npm:~5.2.0": version: 5.2.1 resolution: "safe-buffer@npm:5.2.1" checksum: 10/32872cd0ff68a3ddade7a7617b8f4c2ae8764d8b7d884c651b74457967a9e0e886267d3ecc781220629c44a865167b61c375d2da6c720c840ecd73f45d5d9451 @@ -14091,15 +14061,6 @@ __metadata: languageName: node linkType: hard -"serialize-javascript@npm:^6.0.1": - version: 6.0.2 - resolution: "serialize-javascript@npm:6.0.2" - dependencies: - randombytes: "npm:^2.1.0" - checksum: 10/445a420a6fa2eaee4b70cbd884d538e259ab278200a2ededd73253ada17d5d48e91fb1f4cd224a236ab62ea7ba0a70c6af29fc93b4f3d3078bf7da1c031fde58 - languageName: node - linkType: hard - "serve-static@npm:1.16.2": version: 1.16.2 resolution: "serve-static@npm:1.16.2" @@ -14291,13 +14252,6 @@ __metadata: languageName: node linkType: hard -"smob@npm:^1.0.0": - version: 1.5.0 - resolution: "smob@npm:1.5.0" - checksum: 10/a1ea453bcea89989062626ea30a1fcb42c62e96255619c8641ffa1d7ab42baf415975c67c718127036901b9e487d8bf4c46219e50cec54295412c1227700b8fe - languageName: node - linkType: hard - "socks-proxy-agent@npm:^7.0.0": version: 7.0.0 resolution: "socks-proxy-agent@npm:7.0.0" @@ -14796,7 +14750,7 @@ __metadata: languageName: node linkType: hard -"terser@npm:^5.10.0, terser@npm:^5.17.4, terser@npm:^5.6.0": +"terser@npm:^5.10.0, terser@npm:^5.6.0": version: 5.34.0 resolution: "terser@npm:5.34.0" dependencies: