|
|
@@ -36,20 +36,16 @@
|
|
|
"demo"
|
|
|
],
|
|
|
"scripts": {
|
|
|
- "build": "rimraf dist && pnpm build:src && pnpm build:types",
|
|
|
- "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs package",
|
|
|
- "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs",
|
|
|
- "dev": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node --watch",
|
|
|
- "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs",
|
|
|
- "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix",
|
|
|
- "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:browser && pnpm test:node && pnpm test:react-native && pnpm test:e2e && pnpm test:exports",
|
|
|
- "test:browser": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs browser",
|
|
|
+ "build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",
|
|
|
+ "dev": "vitest --project node",
|
|
|
+ "lint": "eslint . && prettier --check .",
|
|
|
+ "lint:fix": "eslint --fix . && prettier --write .",
|
|
|
+ "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:unit && pnpm test:e2e && pnpm test:exports",
|
|
|
"test:e2e": "./test/e2e/test.sh",
|
|
|
"test:exports": "node ./test/exports/module.mjs && node ./test/exports/commonjs.cjs",
|
|
|
- "test:node": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node",
|
|
|
- "test:react-native": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs react-native",
|
|
|
- "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs",
|
|
|
- "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs"
|
|
|
+ "test:treeshakability": "for file in dist/index.*.mjs; do agadoo $file; done",
|
|
|
+ "test:types": "tsc --noEmit",
|
|
|
+ "test:unit": "vitest run"
|
|
|
},
|
|
|
"dependencies": {
|
|
|
"@codama/errors": "workspace:*",
|