Skip to content

Commit e021cd3

Browse files
committed
Rename dist/cjs to dist/ output
1 parent 8ac22af commit e021cd3

File tree

4 files changed

+89
-93
lines changed

4 files changed

+89
-93
lines changed

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ This is a TypeScript implementation of the Package URL (purl) specification for
142142
- **Types**: Type-specific handling for npm, pypi, maven, etc.
143143
- **Scripts**: `scripts/` - Build and utility scripts
144144
- **Tests**: `test/` - Comprehensive test suite
145-
- **Build output**: `dist/cjs/` - CommonJS TypeScript compilation output
145+
- **Build output**: `dist/` - CommonJS TypeScript compilation output
146146

147147
### Key Features
148148
- Full purl specification compliance

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
"type": "git",
1313
"url": "git+https://github.com/SocketDev/socket-packageurl-js.git"
1414
},
15-
"main": "./dist/cjs/package-url.js",
16-
"types": "./dist/cjs/package-url.d.ts",
15+
"main": "./dist/package-url.js",
16+
"types": "./dist/package-url.d.ts",
1717
"exports": {
1818
".": {
19-
"types": "./dist/cjs/package-url.d.ts",
20-
"default": "./dist/cjs/package-url.js"
19+
"types": "./dist/package-url.d.ts",
20+
"default": "./dist/package-url.js"
2121
},
2222
"./data/npm/builtin-names.json": "./data/npm/builtin-names.json",
2323
"./data/npm/legacy-names.json": "./data/npm/legacy-names.json",
24-
"./dist/cjs/*": {
25-
"types": "./dist/cjs/*.d.ts",
26-
"default": "./dist/cjs/*.js"
24+
"./dist/*": {
25+
"types": "./dist/*.d.ts",
26+
"default": "./dist/*.js"
2727
},
2828
"./package.json": "./package.json"
2929
},
@@ -57,6 +57,7 @@
5757
"precommit": "lint-staged",
5858
"prepare": "husky",
5959
"test": "run-s check test:*",
60+
"pretest:unit": "pnpm build:cjs",
6061
"test:unit": "dotenvx -q run -f .env.test -- vitest --run",
6162
"test:unit:coverage": "dotenvx -q run -f .env.test -- vitest run --coverage",
6263
"test:unit:update": "dotenvx -q run -f .env.test -- vitest --run --update",

0 commit comments

Comments
 (0)