Skip to content

Commit fa8e556

Browse files
committed
fix: update module and build script extensions to use .mjs for ES modules - fixes #1
1 parent 2d44415 commit fa8e556

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
registry = 'https://registry.npmjs.org/'
1+
registry = 'https://registry.npmjs.org/'

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"name": "xml-trueformat",
3-
"version": "0.9.0",
3+
"version": "0.9.1",
44
"description": "XML parser that 100% retains all formatting for creating identical XML on roundtrips",
55
"main": "./dist/cjs/index.js",
6-
"module": "./dist/esm/index.js",
6+
"module": "./dist/esm/index.mjs",
77
"types": "./dist/types/index.d.ts",
88
"exports": {
99
".": {
10-
"import": "./dist/esm/index.js",
10+
"import": "./dist/esm/index.mjs",
1111
"require": "./dist/cjs/index.js",
1212
"types": "./dist/types/index.d.ts"
1313
}
1414
},
1515
"scripts": {
1616
"build:types": "tsc --emitDeclarationOnly",
17-
"build:esm": "bun build index.ts --outdir dist/esm --format=esm --dts",
17+
"build:esm": "bun build index.ts --outfile=dist/esm/index.mjs --format=esm --dts",
1818
"build:cjs": "bun build index.ts --outdir dist/cjs --format=cjs",
1919
"test": "bun test --coverage",
2020
"format": "prettier --write .",

0 commit comments

Comments
 (0)