Skip to content

Commit

Permalink
feat: remove terser and commonjs rollup plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-mason committed Oct 15, 2024
1 parent ff7192c commit 0f7f882
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 115 deletions.
9 changes: 9 additions & 0 deletions .changeset/quiet-windows-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"arancini": patch
"@arancini/core": patch
"@arancini/events": patch
"@arancini/react": patch
"@arancini/systems": patch
---

feat: remove terser, ship readable javascript to npm
2 changes: 0 additions & 2 deletions packages/arancini-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
"@babel/preset-typescript": "^7.24.1",
"@isaac-mason/eslint-config-typescript": "^0.0.5",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@vitest/coverage-v8": "^1.2.1",
"eslint": "^8.56.0",
Expand Down
4 changes: 0 additions & 4 deletions packages/arancini-core/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import babel from '@rollup/plugin-babel'
import commonjs from '@rollup/plugin-commonjs'
import { nodeResolve } 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'
Expand Down Expand Up @@ -36,9 +34,7 @@ export default [
},
],
plugins: [
terser(),
nodeResolve(),
commonjs(),
typescript({
tsconfig: path.resolve(__dirname, `tsconfig.json`),
emitDeclarationOnly: true,
Expand Down
2 changes: 0 additions & 2 deletions packages/arancini-events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
"@babel/preset-typescript": "^7.24.1",
"@isaac-mason/eslint-config-typescript": "^0.0.5",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@vitest/coverage-v8": "^1.2.1",
"eslint": "^8.56.0",
Expand Down
6 changes: 1 addition & 5 deletions packages/arancini-events/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import babel from '@rollup/plugin-babel'
import commonjs from '@rollup/plugin-commonjs'
import { nodeResolve } 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'
Expand All @@ -22,7 +20,7 @@ const babelOptions = {
],
'@babel/preset-typescript',
],
};
}

export default [
{
Expand All @@ -36,9 +34,7 @@ export default [
},
],
plugins: [
terser(),
nodeResolve(),
commonjs(),
typescript({
tsconfig: path.resolve(__dirname, `tsconfig.json`),
emitDeclarationOnly: true,
Expand Down
2 changes: 0 additions & 2 deletions packages/arancini-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
"@babel/preset-typescript": "^7.24.1",
"@isaac-mason/eslint-config-typescript": "^0.0.5",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@testing-library/jest-dom": "^6.2.0",
"@testing-library/react": "^14.2.1",
Expand Down
4 changes: 0 additions & 4 deletions packages/arancini-react/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import babel from '@rollup/plugin-babel'
import commonjs from '@rollup/plugin-commonjs'
import { nodeResolve } 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'
Expand Down Expand Up @@ -38,9 +36,7 @@ export default [
},
],
plugins: [
terser(),
nodeResolve(),
commonjs(),
typescript({
tsconfig: path.resolve(__dirname, `tsconfig.json`),
emitDeclarationOnly: true,
Expand Down
2 changes: 0 additions & 2 deletions packages/arancini-systems/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
"@babel/preset-typescript": "^7.24.1",
"@isaac-mason/eslint-config-typescript": "^0.0.5",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@vitest/coverage-v8": "^1.2.1",
"eslint": "^8.56.0",
Expand Down
4 changes: 0 additions & 4 deletions packages/arancini-systems/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import babel from '@rollup/plugin-babel'
import commonjs from '@rollup/plugin-commonjs'
import { nodeResolve } 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'
Expand Down Expand Up @@ -36,9 +34,7 @@ export default [
},
],
plugins: [
terser(),
nodeResolve(),
commonjs(),
typescript({
tsconfig: path.resolve(__dirname, `tsconfig.json`),
emitDeclarationOnly: true,
Expand Down
2 changes: 0 additions & 2 deletions packages/arancini/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
"@react-three/drei": "^9.105.2",
"@react-three/fiber": "^8.15.13",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@storybook/addon-essentials": "^8.0.1",
"@storybook/addon-interactions": "^8.0.1",
Expand Down
4 changes: 0 additions & 4 deletions packages/arancini/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import babel from '@rollup/plugin-babel'
import commonjs from '@rollup/plugin-commonjs'
import { nodeResolve } 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'
Expand All @@ -25,9 +23,7 @@ const babelOptions = {
}

const plugins = [
terser(),
nodeResolve(),
commonjs(),
typescript({
tsconfig: path.resolve(__dirname, `tsconfig.json`),
emitDeclarationOnly: true,
Expand Down
89 changes: 5 additions & 84 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ __metadata:
"@babel/preset-typescript": "npm:^7.24.1"
"@isaac-mason/eslint-config-typescript": "npm:^0.0.5"
"@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.4"
"@rollup/plugin-typescript": "npm:^11.1.6"
"@vitest/coverage-v8": "npm:^1.2.1"
eslint: "npm:^8.56.0"
Expand All @@ -65,9 +63,7 @@ __metadata:
"@babel/preset-typescript": "npm:^7.24.1"
"@isaac-mason/eslint-config-typescript": "npm:^0.0.5"
"@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.4"
"@rollup/plugin-typescript": "npm:^11.1.6"
"@vitest/coverage-v8": "npm:^1.2.1"
eslint: "npm:^8.56.0"
Expand All @@ -93,9 +89,7 @@ __metadata:
"@babel/preset-typescript": "npm:^7.24.1"
"@isaac-mason/eslint-config-typescript": "npm:^0.0.5"
"@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.4"
"@rollup/plugin-typescript": "npm:^11.1.6"
"@testing-library/jest-dom": "npm:^6.2.0"
"@testing-library/react": "npm:^14.2.1"
Expand Down Expand Up @@ -129,9 +123,7 @@ __metadata:
"@babel/preset-typescript": "npm:^7.24.1"
"@isaac-mason/eslint-config-typescript": "npm:^0.0.5"
"@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.4"
"@rollup/plugin-typescript": "npm:^11.1.6"
"@vitest/coverage-v8": "npm:^1.2.1"
eslint: "npm:^8.56.0"
Expand Down Expand Up @@ -4414,25 +4406,6 @@ __metadata:
languageName: node
linkType: hard

"@rollup/plugin-commonjs@npm:^25.0.7":
version: 25.0.7
resolution: "@rollup/plugin-commonjs@npm:25.0.7"
dependencies:
"@rollup/pluginutils": "npm:^5.0.1"
commondir: "npm:^1.0.1"
estree-walker: "npm:^2.0.2"
glob: "npm:^8.0.3"
is-reference: "npm:1.2.1"
magic-string: "npm:^0.30.3"
peerDependencies:
rollup: ^2.68.0||^3.0.0||^4.0.0
peerDependenciesMeta:
rollup:
optional: true
checksum: 89b108e245d1af6e7878ac949bfcd44e48f7d0c1eda0cb0b7e89c231ae73de455ffe2ac65eb03a398da4e8c300ce404f997fe66f8dde3d4d4794ffd2c1241fc3
languageName: node
linkType: hard

"@rollup/plugin-node-resolve@npm:^15.0.1":
version: 15.2.3
resolution: "@rollup/plugin-node-resolve@npm:15.2.3"
Expand All @@ -4452,22 +4425,6 @@ __metadata:
languageName: node
linkType: hard

"@rollup/plugin-terser@npm:^0.4.4":
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: a5e066ddea55fc8c32188bc8b484cca619713516f10e3a06801881ec98bf37459ca24e5fe8711f93a5fa7f26a6e9132a47bc1a61c01e0b513dfd79a96cdc6eb7
languageName: node
linkType: hard

"@rollup/plugin-typescript@npm:^11.1.6":
version: 11.1.6
resolution: "@rollup/plugin-typescript@npm:11.1.6"
Expand Down Expand Up @@ -6046,7 +6003,7 @@ __metadata:
languageName: node
linkType: hard

"@types/estree@npm:*, @types/estree@npm:1.0.5, @types/estree@npm:^1.0.0":
"@types/estree@npm:1.0.5, @types/estree@npm:^1.0.0":
version: 1.0.5
resolution: "@types/estree@npm:1.0.5"
checksum: 7de6d928dd4010b0e20c6919e1a6c27b61f8d4567befa89252055fad503d587ecb9a1e3eab1b1901f923964d7019796db810b7fd6430acb26c32866d126fd408
Expand Down Expand Up @@ -7039,9 +6996,7 @@ __metadata:
"@react-three/drei": "npm:^9.105.2"
"@react-three/fiber": "npm:^8.15.13"
"@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.4"
"@rollup/plugin-typescript": "npm:^11.1.6"
"@storybook/addon-essentials": "npm:^8.0.1"
"@storybook/addon-interactions": "npm:^8.0.1"
Expand Down Expand Up @@ -9992,7 +9947,7 @@ __metadata:
languageName: node
linkType: hard

"glob@npm:^8.0.1, glob@npm:^8.0.3":
"glob@npm:^8.0.1":
version: 8.1.0
resolution: "glob@npm:8.1.0"
dependencies:
Expand Down Expand Up @@ -10804,15 +10759,6 @@ __metadata:
languageName: node
linkType: hard

"is-reference@npm:1.2.1":
version: 1.2.1
resolution: "is-reference@npm:1.2.1"
dependencies:
"@types/estree": "npm:*"
checksum: e7b48149f8abda2c10849ea51965904d6a714193d68942ad74e30522231045acf06cbfae5a4be2702fede5d232e61bf50b3183acdc056e6e3afe07fcf4f4b2bc
languageName: node
linkType: hard

"is-regex@npm:^1.1.4":
version: 1.1.4
resolution: "is-regex@npm:1.1.4"
Expand Down Expand Up @@ -11570,7 +11516,7 @@ __metadata:
languageName: node
linkType: hard

"magic-string@npm:^0.30.0, magic-string@npm:^0.30.3, magic-string@npm:^0.30.5":
"magic-string@npm:^0.30.0, magic-string@npm:^0.30.5":
version: 0.30.5
resolution: "magic-string@npm:0.30.5"
dependencies:
Expand Down Expand Up @@ -13188,15 +13134,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: 4efd1ad3d88db77c2d16588dc54c2b52fd2461e70fe5724611f38d283857094fe09040fa2c9776366803c3152cf133171b452ef717592b65631ce5dc3a2bdafc
languageName: node
linkType: hard

"range-parser@npm:~1.2.1":
version: 1.2.1
resolution: "range-parser@npm:1.2.1"
Expand Down Expand Up @@ -13986,7 +13923,7 @@ __metadata:
languageName: node
linkType: hard

"safe-buffer@npm:5.2.1, safe-buffer@npm:^5.1.0, safe-buffer@npm:~5.2.0":
"safe-buffer@npm:5.2.1, safe-buffer@npm:~5.2.0":
version: 5.2.1
resolution: "safe-buffer@npm:5.2.1"
checksum: 32872cd0ff68a3ddade7a7617b8f4c2ae8764d8b7d884c651b74457967a9e0e886267d3ecc781220629c44a865167b61c375d2da6c720c840ecd73f45d5d9451
Expand Down Expand Up @@ -14088,15 +14025,6 @@ __metadata:
languageName: node
linkType: hard

"serialize-javascript@npm:^6.0.1":
version: 6.0.1
resolution: "serialize-javascript@npm:6.0.1"
dependencies:
randombytes: "npm:^2.1.0"
checksum: f756b1ff34b655b2183c64dd6683d28d4d9b9a80284b264cac9fd421c73890491eafd6c5c2bbe93f1f21bf78b572037c5a18d24b044c317ee1c9dc44d22db94c
languageName: node
linkType: hard

"serve-static@npm:1.15.0":
version: 1.15.0
resolution: "serve-static@npm:1.15.0"
Expand Down Expand Up @@ -14290,13 +14218,6 @@ __metadata:
languageName: node
linkType: hard

"smob@npm:^1.0.0":
version: 1.4.1
resolution: "smob@npm:1.4.1"
checksum: bc6ffcb9a1c3c875f9354cf814487d44cd925e2917683e2bf6f66a267eedf895f4989079541b73dc0ddc163cb0fa26078fa95067f1503707758437e9308afc2f
languageName: node
linkType: hard

"socks-proxy-agent@npm:^7.0.0":
version: 7.0.0
resolution: "socks-proxy-agent@npm:7.0.0"
Expand Down Expand Up @@ -14818,7 +14739,7 @@ __metadata:
languageName: node
linkType: hard

"terser@npm:^5.17.4, terser@npm:^5.6.0":
"terser@npm:^5.6.0":
version: 5.26.0
resolution: "terser@npm:5.26.0"
dependencies:
Expand Down

0 comments on commit 0f7f882

Please sign in to comment.