Skip to content

Commit ef4d285

Browse files
Improving pre-build and build steps.
1 parent 0de3dbf commit ef4d285

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
},
1111
"scripts": {
1212
"test": "jest",
13-
"build": "yarn cjs-build && yarn rollup-build && yarn copy-files-from-to",
13+
"pre-build-setup": "rimraf ./demo && rimraf ./dist",
14+
"build": "yarn pre-build-setup && yarn cjs-build && yarn rollup-build && yarn copy-files-from-to",
1415
"cjs-build": "tsc",
1516
"rollup-build": "rollup src/index.ts -c -f umd -o dist/umd/xslt-processor.js",
1617
"lint": "eslint src/**/*"
@@ -57,6 +58,7 @@
5758
"npm-check-updates": "^16.10.13",
5859
"react": "^18.2.0",
5960
"release-it": "^15.11.0",
61+
"rimraf": "^5.0.1",
6062
"rollup": "^1.1.2",
6163
"rollup-plugin-buble": "^0.19.6",
6264
"rollup-plugin-commonjs": "^9.2.0",
@@ -74,10 +76,6 @@
7476
"from": "LICENSE",
7577
"to": "dist/LICENSE"
7678
},
77-
{
78-
"from": "package.json",
79-
"to": "dist/package.json"
80-
},
8179
{
8280
"from": "README.md",
8381
"to": "dist/README.md"

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"babel.config.js",
1818
"jest.config.ts",
1919
"rollup.config.js",
20+
"demo/**/*",
2021
"dist/**/*",
2122
"interactive-tests/js/**/*",
2223
"tests/**/*"

tsconfig.rollup.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"babel.config.js",
1717
"jest.config.ts",
1818
"rollup.config.js",
19+
"demo/**/*",
1920
"dist/**/*",
2021
"test_src/**/*",
2122
"tests/**/*"

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6330,7 +6330,7 @@ rimraf@^3.0.2:
63306330
dependencies:
63316331
glob "^7.1.3"
63326332

6333-
rimraf@^5.0.0:
6333+
rimraf@^5.0.0, rimraf@^5.0.1:
63346334
version "5.0.1"
63356335
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-5.0.1.tgz#0881323ab94ad45fec7c0221f27ea1a142f3f0d0"
63366336
integrity sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg==

0 commit comments

Comments
 (0)