Skip to content

Commit 321fb7b

Browse files
angeloashmoreclaude
andcommitted
fix: switch to ESM-only output
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fa81d17 commit 321fb7b

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

bin/prismic-ts-codegen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env node
22

3-
import("../dist/cli.cjs");
3+
import("../dist/cli.mjs");

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,9 @@
2121
"bin"
2222
],
2323
"type": "module",
24-
"main": "./dist/index.cjs",
25-
"module": "./dist/index.js",
2624
"types": "./dist/index.d.cts",
2725
"exports": {
28-
".": {
29-
"import": "./dist/index.js",
30-
"require": "./dist/index.cjs"
31-
},
26+
".": "./dist/index.mjs",
3227
"./package.json": "./package.json"
3328
},
3429
"publishConfig": {

tsdown.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export default defineConfig({
55
index: "./src/index.ts",
66
cli: "./src/cli/index.ts",
77
},
8-
format: ["esm", "cjs"],
9-
platform: "neutral",
8+
format: "esm",
9+
platform: "node",
1010
unbundle: true,
1111
sourcemap: true,
1212
exports: {

0 commit comments

Comments
 (0)