Skip to content

Commit f0a80d1

Browse files
authored
Re-enable TypeScript test (#6174)
1 parent d8b0150 commit f0a80d1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/actions/install-and-cache-node-deps/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
restore-keys: node-modules-${{ runner.os }}-${{ runner.arch }}
1515
- name: Install Node dependencies
1616
if: steps.cache-node-modules.outputs.cache-hit != 'true'
17-
run: npm ${{ github.ref == 'refs/heads/master' && 'ci' || 'install' }} --ignore-scripts && npm run prepare --if-present
17+
run: npm ${{ github.ref == 'refs/heads/master' && 'ci' || 'install' }} --ignore-scripts && npm run prepare:patch
1818
shell: bash
1919
- name: Save Node dependencies cache
2020
if: steps.cache-node-modules.outputs.cache-hit != 'true' && github.ref == 'refs/heads/master'

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
"lint:rust": "cd rust && cargo fmt && cargo clippy --fix --allow-dirty",
7070
"lint:rust:nofix": "cd rust && cargo fmt --check && cargo clippy",
7171
"perf": "npm run build:bootstrap:cjs && node --expose-gc scripts/perf-report/index.js",
72-
"prepare": "husky && patch-package && node scripts/check-release.js || npm run build:prepare",
72+
"prepare": "husky && npm run prepare:patch && node scripts/check-release.js || npm run build:prepare",
73+
"prepare:patch": "patch-package",
7374
"prepublishOnly": "node scripts/check-release.js && node scripts/prepublish.js",
7475
"postpublish": "node scripts/postpublish.js",
7576
"prepublish:napi": "napi prepublish --no-gh-release",
@@ -86,7 +87,7 @@
8687
"test:package": "node scripts/test-package.js",
8788
"test:options": "node scripts/test-options.js",
8889
"test:only": "mocha test/test.js",
89-
"test:typescript": "echo skipped",
90+
"test:typescript": "shx rm -rf test/typescript/dist && shx cp -r dist test/typescript/ && tsc --noEmit -p test/typescript && tsc --noEmit -p . && tsc --noEmit -p scripts && vue-tsc --noEmit -p docs",
9091
"test:browser": "mocha test/browser/index.js",
9192
"watch": "rollup --config rollup.config.ts --configPlugin typescript --watch"
9293
},

0 commit comments

Comments
 (0)