chore: update version to 2025.0.4, modify build scripts, and add type definitions for exports

This commit is contained in:
Alexander Zinn
2025-08-19 12:13:06 -04:00
parent 6ef0b5cf38
commit c8289e90c9

View File

@@ -1,7 +1,7 @@
{ {
"name": "@techniker-me/pcast-api", "name": "@techniker-me/pcast-api",
"version": "2025.0.3", "version": "2025.0.4",
"module": "src/index.ts", "module": "dist/node/index.js",
"type": "module", "type": "module",
"scripts": { "scripts": {
"format": "prettier --write ./", "format": "prettier --write ./",
@@ -10,32 +10,39 @@
"test:coverage": "bun test --coverage", "test:coverage": "bun test --coverage",
"build": "bun run build:node && bun run build:browser && bun run build:types", "build": "bun run build:node && bun run build:browser && bun run build:types",
"ci-build": "bun run build:node && bun run build:browser && bun run build:types", "ci-build": "bun run build:node && bun run build:browser && bun run build:types",
"build:node": "bun build src/index.ts --outdir dist/node --target node --format esm --minify --production", "build:node": "bun build src/index.ts --outdir dist/node --target node --format esm --production",
"build:browser": "bun build src/index.ts --outdir dist/browser --target browser --format esm --minify --production", "build:browser": "bun build src/index.ts --outdir dist/browser --target browser --format esm --production",
"build:types": "tsc --outDir dist/types", "build:types": "tsc --outDir dist/types",
"clean": "rm -rf dist" "clean": "rm -rf dist"
}, },
"devDependencies": { "devDependencies": {
"@types/bun": "latest", "@types/bun": "latest",
"@types/node": "24.3.0",
"chai": "5.3.1", "chai": "5.3.1",
"chai-as-promised": "8.0.1", "chai-as-promised": "8.0.1",
"mocha": "11.7.1", "mocha": "11.7.1",
"prettier": "3.6.2", "prettier": "3.6.2",
"typescript": "5.9.2" "typescript": "5.9.2"
}, },
"dependencies": {
"phenix-edge-auth": "1.2.7"
},
"main": "./dist/node/index.js",
"types": "./dist/types/index.d.ts",
"exports": { "exports": {
".": { ".": {
"types": "./dist/types/index.d.ts", "types": "./dist/types/index.d.ts",
"browser": "./dist/browser/index.js",
"node": "./dist/node/index.js",
"import": "./dist/node/index.js", "import": "./dist/node/index.js",
"default": "./dist/node/index.js" "default": "./dist/node/index.js"
}, }
"./browser": "./dist/browser/index.js"
}, },
"publishConfig": { "publishConfig": {
"registry": "https://registry-node.techniker.me" "registry": "https://registry-node.techniker.me"
}, },
"dependencies": {
"@types/node": "24.3.0", "files": [
"phenix-edge-auth": "1.2.7" "dist"
} ]
} }