Skip to content

Commit

Permalink
Fix build with patch
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Apr 2, 2023
1 parent f4c9cf3 commit c6ac5bb
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 15 deletions.
2 changes: 1 addition & 1 deletion manifest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineManifest } from '@crxjs/vite-plugin/dist/index.js';
import { defineManifest } from '@crxjs/vite-plugin/dist/index.mjs';
import packageJson from './package.json' assert { type: 'json' };

// Convert from SemVer, eg. 0.1.0-beta6 becomes:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
},
"pnpm": {
"patchedDependencies": {
"@vitejs/[email protected]": "patches/@[email protected]"
"@vitejs/[email protected]": "patches/@[email protected]",
"@crxjs/[email protected]": "patches/@[email protected]"
}
}
}
4 changes: 4 additions & 0 deletions patches/@[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
diff --git a/dist/index.d.ts b/dist/index.d.mts
similarity index 100%
rename from dist/index.d.ts
rename to dist/index.d.mts
40 changes: 27 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c6ac5bb

Please sign in to comment.