Skip to content

Commit

Permalink
fix: update tests script to run tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Dec 22, 2024
1 parent 67091d3 commit 3de05da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,18 @@
"tsc:types": "tsc -p tsconfig.types.json",
"posttsc:types": "mv dist/types/index.d.mts dist/types/index.d.ts",
"watch": "tsc --watch",
"pretsup": "run-s clean:dist",
"pretsup": "npm run clean:dist",
"tsup": "run-p tsup:* tsc:types",
"tsup:cjs": "tsup src/index.cts --format cjs --tsconfig tsconfig.cjs.json",
"tsup:esm": "tsup src/index.mts --format esm --tsconfig tsconfig.esm.json",
"docs": "typedoc --out docs src/index.ts",
"jest:coverage": "jest --coverage",
"jest:watch": "npm t -- --watch",
"jest:clear": "jest --clearCache",
"pretests": "npm run tsup",
"tests": "run-s lint test:*",
"test": "npm run test:cjs",
"pretest:cjs": "npm run tsup:cjs",
"test:cjs": "jest --config jest.config.cjs",
"pretest:esm": "npm run tsup:esm",
"test:esm": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --config jest.config.mjs",
"// test:memory:todo": "set up valgrind or similar",
"test:memory": "cross-env TEST_MEMORY=1 node --expose-gc --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --config jest.config.mjs --no-coverage src/memory.test.ts",
Expand Down

0 comments on commit 3de05da

Please sign in to comment.