switch to tsdown for building library

This commit is contained in:
Joel Wetzell
2026-05-15 11:29:42 -05:00
parent a2fbd2a2b0
commit 3ab3fcbcd8
16 changed files with 923 additions and 57 deletions
+10 -12
View File
@@ -2,22 +2,17 @@
"name": "@jwetzell/osc",
"version": "1.7.0",
"description": "",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"types": "./dist/index.d.cts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts"
}
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./package.json": "./package.json"
},
"scripts": {
"prebuild": "rimraf dist",
"build": "npm run build:cjs && npm run build:esm && npm run build:types",
"build:cjs": "tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
"build:esm": "tsc -p tsconfig.esm.json && echo '{\"type\": \"module\"}' > dist/esm/package.json",
"build:types": "tsc -p tsconfig.types.json",
"build": "tsdown",
"prepublishOnly": "npm run build",
"pretest": "npm run build",
"test": "node --test --experimental-test-coverage"
@@ -38,6 +33,9 @@
"devDependencies": {
"@types/node": "24.5.2",
"rimraf": "6.1.3",
"tsdown": "0.22.0",
"typescript": "5.9.3"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs"
}