Skip to content

Commit

Permalink
Change to @rollup/plugin-typescript plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjerleke committed Mar 29, 2023
1 parent 7e0c3e4 commit 25f74e6
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 96 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
"@babel/core": "7.17.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "13.1.3",
"@rollup/plugin-typescript": "^11.0.0",
"husky": "^4.3.8",
"npm-run-all": "^4.1.5",
"prettier": "2.5.1",
"rollup": "^2.68.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.2",
"typescript": "^4.5.5"
},
"husky": {
Expand Down
1 change: 0 additions & 1 deletion packages/embla-carousel-auto-height/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"module": "esnext",
"lib": ["dom", "esnext"],
"esModuleInterop": true,
"sourceMap": true,
"strict": true,
"declaration": true,
"declarationDir": "./",
Expand Down
1 change: 0 additions & 1 deletion packages/embla-carousel-autoplay/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"module": "esnext",
"lib": ["dom", "esnext"],
"esModuleInterop": true,
"sourceMap": true,
"strict": true,
"declaration": true,
"declarationDir": "./",
Expand Down
1 change: 0 additions & 1 deletion packages/embla-carousel-class-names/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"module": "esnext",
"lib": ["dom", "esnext"],
"esModuleInterop": true,
"sourceMap": true,
"strict": true,
"declaration": true,
"declarationDir": "./",
Expand Down
1 change: 0 additions & 1 deletion packages/embla-carousel-react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"module": "esnext",
"lib": ["dom", "esnext"],
"esModuleInterop": true,
"sourceMap": true,
"strict": true,
"declaration": true,
"declarationDir": "./",
Expand Down
1 change: 0 additions & 1 deletion packages/embla-carousel-reactive-utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"module": "esnext",
"lib": ["dom", "esnext"],
"esModuleInterop": true,
"sourceMap": true,
"strict": true,
"declaration": true,
"declarationDir": "./",
Expand Down
1 change: 0 additions & 1 deletion packages/embla-carousel-svelte/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"module": "esnext",
"lib": ["dom", "esnext"],
"esModuleInterop": true,
"sourceMap": true,
"strict": true,
"declaration": true,
"declarationDir": "./",
Expand Down
1 change: 0 additions & 1 deletion packages/embla-carousel-vue/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"module": "esnext",
"lib": ["dom", "esnext"],
"esModuleInterop": true,
"sourceMap": true,
"strict": true,
"declaration": true,
"declarationDir": "./",
Expand Down
10 changes: 1 addition & 9 deletions packages/embla-carousel/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,13 @@ export default [
strict: true,
sourcemap: true,
},
],
plugins: [resolve(), typescript(CONFIG_TYPESCRIPT), babel(CONFIG_BABEL)],
},
{
input: 'src/index.ts',
output: [
{
file: `${packageJson.name}.umd.js`,
format: 'umd',
strict: true,
sourcemap: false,
name: kebabToPascalCase(packageJson.name),
plugins: [
/*, terser() */
],
plugins: [terser()],
},
],
plugins: [resolve(), typescript(CONFIG_TYPESCRIPT), babel(CONFIG_BABEL)],
Expand Down
1 change: 0 additions & 1 deletion packages/embla-carousel/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"module": "esnext",
"lib": ["dom", "esnext"],
"esModuleInterop": true,
"sourceMap": true,
"strict": true,
"declaration": true,
"declarationDir": "./",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import emblaPackageJson from 'embla-carousel/package.json'
import utilsPackageJson from 'embla-carousel-reactive-utils/package.json'
import localTypescript from 'typescript'
import babel from '@rollup/plugin-babel'
import typescript from 'rollup-plugin-typescript2'
import typescript from '@rollup/plugin-typescript'
import resolve from '@rollup/plugin-node-resolve'
import { terser } from 'rollup-plugin-terser'

Expand Down
121 changes: 44 additions & 77 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3163,6 +3163,25 @@ __metadata:
languageName: node
linkType: hard

"@rollup/plugin-typescript@npm:^11.0.0":
version: 11.0.0
resolution: "@rollup/plugin-typescript@npm:11.0.0"
dependencies:
"@rollup/pluginutils": ^5.0.1
resolve: ^1.22.1
peerDependencies:
rollup: ^2.14.0||^3.0.0
tslib: "*"
typescript: ">=3.7.0"
peerDependenciesMeta:
rollup:
optional: true
tslib:
optional: true
checksum: b0d34ff0ad6bfc681c437ef42df7b02f04c361465be5a2044cd30cac5b003045c54e4377d58ab91925e296076b792bbb5ddded72cacdd21092bc8694a95b046f
languageName: node
linkType: hard

"@rollup/pluginutils@npm:^3.1.0":
version: 3.1.0
resolution: "@rollup/pluginutils@npm:3.1.0"
Expand All @@ -3176,13 +3195,19 @@ __metadata:
languageName: node
linkType: hard

"@rollup/pluginutils@npm:^4.1.2":
version: 4.2.1
resolution: "@rollup/pluginutils@npm:4.2.1"
"@rollup/pluginutils@npm:^5.0.1":
version: 5.0.2
resolution: "@rollup/pluginutils@npm:5.0.2"
dependencies:
estree-walker: ^2.0.1
picomatch: ^2.2.2
checksum: 6bc41f22b1a0f1efec3043899e4d3b6b1497b3dea4d94292d8f83b4cf07a1073ecbaedd562a22d11913ff7659f459677b01b09e9598a98936e746780ecc93a12
"@types/estree": ^1.0.0
estree-walker: ^2.0.2
picomatch: ^2.3.1
peerDependencies:
rollup: ^1.20.0||^2.0.0||^3.0.0
peerDependenciesMeta:
rollup:
optional: true
checksum: edea15e543bebc7dcac3b0ac8bc7b8e8e6dbd46e2864dbe5dd28072de1fbd5b0e10d545a610c0edaa178e8a7ac432e2a2a52e547ece1308471412caba47db8ce
languageName: node
linkType: hard

Expand Down Expand Up @@ -4454,17 +4479,6 @@ __metadata:
languageName: node
linkType: hard

"@yarn-tool/resolve-package@npm:^1.0.40":
version: 1.0.47
resolution: "@yarn-tool/resolve-package@npm:1.0.47"
dependencies:
pkg-dir: < 6 >= 5
tslib: ^2
upath2: ^3.1.13
checksum: 86208b0881c9b262ee9545cc99deec7764f268d4b2fd82b4555d9ef3ec8cdc00a27c81e2c4fb01377052648353d40a515530caf319431637e1146bdd948947a6
languageName: node
linkType: hard

"abab@npm:^2.0.3, abab@npm:^2.0.5":
version: 2.0.6
resolution: "abab@npm:2.0.6"
Expand Down Expand Up @@ -7675,12 +7689,12 @@ __metadata:
"@babel/core": 7.17.0
"@rollup/plugin-babel": ^5.3.0
"@rollup/plugin-node-resolve": 13.1.3
"@rollup/plugin-typescript": ^11.0.0
husky: ^4.3.8
npm-run-all: ^4.1.5
prettier: 2.5.1
rollup: ^2.68.0
rollup-plugin-terser: ^7.0.2
rollup-plugin-typescript2: ^0.31.2
typescript: ^4.5.5
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -8899,7 +8913,7 @@ __metadata:
languageName: node
linkType: hard

"estree-walker@npm:^2.0.1, estree-walker@npm:^2.0.2":
"estree-walker@npm:^2.0.2":
version: 2.0.2
resolution: "estree-walker@npm:2.0.2"
checksum: 6151e6f9828abe2259e57f5fd3761335bb0d2ebd76dc1a01048ccee22fabcfef3c0859300f6d83ff0d1927849368775ec5a6d265dde2f6de5a1be1721cd94efc
Expand Down Expand Up @@ -9564,7 +9578,7 @@ __metadata:
languageName: node
linkType: hard

"fs-extra@npm:^10.0.0, fs-extra@npm:^10.1.0":
"fs-extra@npm:^10.1.0":
version: 10.1.0
resolution: "fs-extra@npm:10.1.0"
dependencies:
Expand Down Expand Up @@ -15546,15 +15560,6 @@ __metadata:
languageName: node
linkType: hard

"path-is-network-drive@npm:^1.0.20":
version: 1.0.20
resolution: "path-is-network-drive@npm:1.0.20"
dependencies:
tslib: ^2
checksum: 4281a5b79cc6aa2837d25643a579d7abfb2a6c57fcb640a45c82abb9d459e9f04cd194fe8efb146d9835fcd1758e32e16c2826a34e59d63764af46928ebaa9c2
languageName: node
linkType: hard

"path-key@npm:^2.0.0, path-key@npm:^2.0.1":
version: 2.0.1
resolution: "path-key@npm:2.0.1"
Expand Down Expand Up @@ -15592,15 +15597,6 @@ __metadata:
languageName: node
linkType: hard

"path-strip-sep@npm:^1.0.17":
version: 1.0.17
resolution: "path-strip-sep@npm:1.0.17"
dependencies:
tslib: ^2
checksum: 79b257bd208b196476109cc82dbc60fc8b62fa77f1d9d7a248f9d87e086805c53854def6e5f3ff8cc9616d87827c3c4a005984809cbd7f41bdd91d3bc7bb888a
languageName: node
linkType: hard

"path-to-regexp@npm:0.1.7":
version: 0.1.7
resolution: "path-to-regexp@npm:0.1.7"
Expand Down Expand Up @@ -15685,15 +15681,6 @@ __metadata:
languageName: node
linkType: hard

"pkg-dir@npm:< 6 >= 5, pkg-dir@npm:^5.0.0":
version: 5.0.0
resolution: "pkg-dir@npm:5.0.0"
dependencies:
find-up: ^5.0.0
checksum: b167bb8dac7bbf22b1d5e30ec223e6b064b84b63010c9d49384619a36734caf95ed23ad23d4f9bd975e8e8082b60a83395f43a89bb192df53a7c25a38ecb57d9
languageName: node
linkType: hard

"pkg-dir@npm:^4.1.0, pkg-dir@npm:^4.2.0":
version: 4.2.0
resolution: "pkg-dir@npm:4.2.0"
Expand All @@ -15703,6 +15690,15 @@ __metadata:
languageName: node
linkType: hard

"pkg-dir@npm:^5.0.0":
version: 5.0.0
resolution: "pkg-dir@npm:5.0.0"
dependencies:
find-up: ^5.0.0
checksum: b167bb8dac7bbf22b1d5e30ec223e6b064b84b63010c9d49384619a36734caf95ed23ad23d4f9bd975e8e8082b60a83395f43a89bb192df53a7c25a38ecb57d9
languageName: node
linkType: hard

"pkg-up@npm:^3.1.0":
version: 3.1.0
resolution: "pkg-up@npm:3.1.0"
Expand Down Expand Up @@ -17221,23 +17217,6 @@ __metadata:
languageName: node
linkType: hard

"rollup-plugin-typescript2@npm:^0.31.2":
version: 0.31.2
resolution: "rollup-plugin-typescript2@npm:0.31.2"
dependencies:
"@rollup/pluginutils": ^4.1.2
"@yarn-tool/resolve-package": ^1.0.40
find-cache-dir: ^3.3.2
fs-extra: ^10.0.0
resolve: ^1.20.0
tslib: ^2.3.1
peerDependencies:
rollup: ">=1.26.3"
typescript: ">=2.4.0"
checksum: ceebc686195f8140ee64b89cbd3a284bda50435081bea8f55f404ea293c02ec9787e9147e33f8e078b2c4772d9f198e66f900f54ca77ccda63db9ec2511db665
languageName: node
linkType: hard

"rollup@npm:^2.68.0, rollup@npm:^2.79.1":
version: 2.79.1
resolution: "rollup@npm:2.79.1"
Expand Down Expand Up @@ -18950,7 +18929,7 @@ __metadata:
languageName: node
linkType: hard

"tslib@npm:^2, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.1, tslib@npm:^2.4.0, tslib@npm:~2.4.0":
"tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.4.0, tslib@npm:~2.4.0":
version: 2.4.1
resolution: "tslib@npm:2.4.1"
checksum: 19480d6e0313292bd6505d4efe096a6b31c70e21cf08b5febf4da62e95c265c8f571f7b36fcc3d1a17e068032f59c269fab3459d6cd3ed6949eafecf64315fca
Expand Down Expand Up @@ -19439,18 +19418,6 @@ __metadata:
languageName: node
linkType: hard

"upath2@npm:^3.1.13":
version: 3.1.19
resolution: "upath2@npm:3.1.19"
dependencies:
"@types/node": "*"
path-is-network-drive: ^1.0.20
path-strip-sep: ^1.0.17
tslib: ^2
checksum: 043e48f161af8bc246512e19695366959a7ce617ccf4b89527b7736b90c275eef9dc20a82eea091021c18deed31c5ab34f0cfc5924917fa2babfc6bcecd5786e
languageName: node
linkType: hard

"update-browserslist-db@npm:^1.0.9":
version: 1.0.10
resolution: "update-browserslist-db@npm:1.0.10"
Expand Down

0 comments on commit 25f74e6

Please sign in to comment.