Skip to content

Commit

Permalink
fix(cli-helpers): Fix CJS support (#10936)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Jul 10, 2024
1 parent d0bb26e commit 1f51e1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/cli-helpers/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ await build({
await build({
buildOptions: {
...defaultBuildOptions,
bundle: true,
entryPoints: ['./src/index.ts'],
outdir: 'dist/cjs',
packages: 'external',
},
Expand Down
5 changes: 5 additions & 0 deletions packages/cli-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
"types": "./dist/lib/loadEnvFiles.d.ts",
"import": "./dist/lib/loadEnvFiles.js",
"default": "./dist/cjs/lib/loadEnvFiles.js"
},
"./dist/lib/loadEnvFiles.js": {
"types": "./dist/lib/loadEnvFiles.d.ts",
"import": "./dist/lib/loadEnvFiles.js",
"default": "./dist/cjs/lib/loadEnvFiles.js"
}
},
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit 1f51e1e

Please sign in to comment.