mirror of
https://github.com/jwetzell/osc-js.git
synced 2026-08-17 05:03:26 +00:00
switch to tsdown for building library
This commit is contained in:
+10
-12
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user