Skip to content

Commit

Permalink
fix(preset-rollup): replace rollup-plugin-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
alvis committed Nov 23, 2024
1 parent 0674a49 commit d45ea6c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 159 deletions.
2 changes: 1 addition & 1 deletion packages/preset-rollup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
- `@rollup/plugin-graphql`
- `@rollup/plugin-image`
- `@rollup/plugin-json`
- `@rollup/plugin-typescript`
- `@rollup/plugin-yaml`
- `rollup` <~ of course including rollup itself
- `rollup-plugin-postcss`
- `rollup-plugin-ts`
- `rollup-plugin-tsconfig-paths`
- `rollup-plugin-visualizer`

Expand Down
2 changes: 1 addition & 1 deletion packages/preset-rollup/configs/rollup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ output:
format: es
sourcemap: true
plugins:
- '@apply rollup-plugin-ts[default]'
- '@apply @rollup/plugin-typescript[default]'
- '@apply rollup-plugin-tsconfig-paths[default]'
- '@apply @rollup/plugin-node-resolve[default]'
- - '@apply @rollup/plugin-commonjs[default]'
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"@rollup/plugin-image": "^3.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-typescript": "^12.0.0",
"@rollup/plugin-yaml": "^4.0.0",
"presetter": "workspace:*",
"rollup": "^4.0.0",
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-ts": "^3.0.0",
"rollup-plugin-tsconfig-paths": "^1.0.0",
"rollup-plugin-visualizer": "^5.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-rollup/templates/scripts.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# replace the `prepare` template from presetter-preset
# so that the build procedure will not be triggered upon package installation
build: cross-env NODE_ENV=production run-s clean build:rollup
build:rollup: rollup --config rollup.config.ts --configPlugin rollup-plugin-ts
build:rollup: rollup --config rollup.config.ts --configPlugin typescript
develop: cross-env NODE_ENV=development run-s "build:rollup -- --watch {@}" --
Loading

0 comments on commit d45ea6c

Please sign in to comment.