chore(json-schema-to-zod): remove postesm and postcjs

haivng a nested package.json causes issues with vitest resolving the
correct files. the root level package.json already uses the module,
main, and export fields.
This commit is contained in:
max 2025-02-26 12:18:34 -08:00
parent 83d03d53eb
commit 47ee875b69
3 changed files with 2 additions and 4 deletions

View file

@ -24,8 +24,8 @@
"lint": "eslint . --quiet",
"lintfix": "eslint . --fix",
"build:types": "tsc -p tsconfig.types.json",
"build:cjs": "tsc -p tsconfig.cjs.json && node postcjs.js",
"build:esm": "tsc -p tsconfig.esm.json && node postesm.js",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build": "rimraf ./dist && pnpm run build:types && pnpm run build:cjs && pnpm run build:esm",
"dry": "pnpm run build && pnpm pub --dry-run",
"test": "jest",

View file

@ -1 +0,0 @@
require('fs').writeFileSync('./dist/cjs/package.json', '{"type":"commonjs"}', 'utf-8');

View file

@ -1 +0,0 @@
require('fs').writeFileSync('./dist/esm/package.json', '{"type":"module"}', 'utf-8');