From 3de05dad47aa4e126039f81d22e81f21f5bf5722 Mon Sep 17 00:00:00 2001 From: Matthew McEachen Date: Sat, 21 Dec 2024 21:32:19 -0800 Subject: [PATCH] fix: update tests script to run tsup --- package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 55c15cc..1460af8 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "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", @@ -36,11 +36,10 @@ "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",