Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukairo-02 committed May 15, 2024
1 parent 5dabaaa commit 11722e3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
dist
package.tgz
File renamed without changes.
17 changes: 14 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,20 @@
"ts",
"schema"
],
"main": "./index.cjs",
"module": "./index.js",
"types": "./index.d.ts",
"exports": {
".": {
"import": {
"types": "./index.d.ts",
"default": "./index.js"
},
"require": {
"types": "./index.d.cjs",
"default": "./index.cjs"
},
"types": "./index.d.ts",
"default": "./index.js"
}
},
"sideEffects": false,
"publishConfig": {
"provenance": true
Expand Down
3 changes: 1 addition & 2 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ await build({
sourcemap: true,
dts: true,
format: ['cjs', 'esm'],
external: ['drizzle-kit', '../drizzle-kit', '../drizzle-kit/**'],
outExtension(ctx) {
if (ctx.format === 'cjs') {
return {
Expand All @@ -26,4 +25,4 @@ await build({
});

fs.copyFileSync('package.json', 'dist/package.json');
// fs.copyFileSync('README.md', 'dist/README.md');
fs.copyFileSync('README.md', 'dist/README.md');

0 comments on commit 11722e3

Please sign in to comment.