Commit b9f78c3

Anton Golub <antongolub@antongolub.com>
2024-10-29 15:44:20
ci: add node `--strip-types` smoke test (#920)
1 parent 411655b
Changed files (2)
.github
workflows
.github/workflows/test.yml
@@ -170,6 +170,9 @@ jobs:
         run: npm run test:smoke:cjs
       - name: mjs smoke test
         run: npm run test:smoke:mjs
+      - name: strip-types
+        if: matrix.node-version >= 22
+        run: npm run test:smoke:strip-types
 
   smoke-ts:
     runs-on: ubuntu-latest
package.json
@@ -76,6 +76,7 @@
     "test:license": "node ./test/extra.test.js",
     "test:audit": "npm audit fix",
     "test:size": "size-limit",
+    "test:smoke:strip-types": "node --experimental-strip-types test/smoke/ts.test.ts",
     "test:smoke:tsx": "tsx test/smoke/ts.test.ts",
     "test:smoke:tsc": "cd test/smoke && mkdir -p node_modules && ln -s ../../../  ./node_modules/zx; ../../node_modules/typescript/bin/tsc -v && ../../node_modules/typescript/bin/tsc --esModuleInterop --module node16 --rootDir . --outdir ./temp ts.test.ts && node ./temp/ts.test.js",
     "test:smoke:ts-node": "node --loader ts-node/esm test/smoke/ts.test.ts",