Skip to content

Commit

Permalink
Use tsup to bundle the library (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue authored Nov 27, 2022
1 parent 7a08544 commit 06a56b0
Show file tree
Hide file tree
Showing 4 changed files with 265 additions and 303 deletions.
14 changes: 0 additions & 14 deletions api-extractor.json

This file was deleted.

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
"prosemirror-view": "^1.13.3"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.33.6",
"@rollup/plugin-typescript": "^9.0.2",
"@types/mocha": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
Expand All @@ -53,9 +51,8 @@
"prosemirror-menu": "^1.1.0",
"prosemirror-schema-basic": "^1.1.1",
"prosemirror-test-builder": "^1.0.2",
"rollup": "^3.3.0",
"rollup-plugin-node-resolve": "^5.2.0",
"ts-node": "^10.9.1",
"tsup": "^6.5.0",
"typescript": "^4.0.0",
"vite": "^3.2.4"
},
Expand All @@ -64,8 +61,8 @@
"build_demo": "vite build demo",
"typecheck": "tsc --noEmit",
"test": "mocha test/test-*.ts",
"build": "rollup --configPlugin @rollup/plugin-typescript --config && api-extractor run",
"watch": "rollup --configPlugin @rollup/plugin-typescript --config --watch",
"build": "tsup",
"watch": "tsup --watch",
"build_readme": "builddocs --name tables --format markdown --main src/README.md src/*.js > README.md",
"format": "prettier --write .",
"lint": "eslint ./src/ ./test/ && prettier --check ."
Expand Down
10 changes: 10 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from 'tsup';

export default defineConfig({
entry: ['src/index.ts'],
format: ['esm', 'cjs'],
dts: true,
splitting: false,
sourcemap: false,
clean: true,
});
Loading

0 comments on commit 06a56b0

Please sign in to comment.