File tree Expand file tree Collapse file tree 6 files changed +17
-12
lines changed
Expand file tree Collapse file tree 6 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ _clean_dist:
1818
1919init : _clean_dist
2020 cargo binstall watchexec-cli cargo-insta typos-cli cargo-shear dprint taplo-cli -y
21- node packages/ tools/ src/ bin.js sync-remote
21+ node packages/ tools/ src/ index.ts sync-remote
2222 pnpm install
2323 pnpm -C docs install
2424
Original file line number Diff line number Diff line change @@ -725,13 +725,17 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
725725 wasiBindingError = err ;
726726 }
727727 }
728- if ( ! nativeBinding ) {
728+ if ( ! nativeBinding || process . env . NAPI_RS_FORCE_WASI ) {
729729 try {
730730 wasiBinding = require ( '@voidzero-dev/vite-plus-wasm32-wasi' ) ;
731731 nativeBinding = wasiBinding ;
732732 } catch ( err ) {
733733 if ( process . env . NAPI_RS_FORCE_WASI ) {
734- wasiBindingError . cause = err ;
734+ if ( ! wasiBindingError ) {
735+ wasiBindingError = err ;
736+ } else {
737+ wasiBindingError . cause = err ;
738+ }
735739 loadErrors . push ( err ) ;
736740 }
737741 }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import path from 'node:path';
55
66import { describe , expect , test } from '@voidzero-dev/vite-plus-test' ;
77
8- import { isPassThroughEnv , replaceUnstableOutput } from '../utils.js ' ;
8+ import { isPassThroughEnv , replaceUnstableOutput } from '../utils.ts ' ;
99
1010describe ( 'replaceUnstableOutput()' , ( ) => {
1111 test ( 'strip ANSI escape sequences' , ( ) => {
Original file line number Diff line number Diff line change @@ -2,31 +2,31 @@ const subcommand = process.argv[2];
22
33switch ( subcommand ) {
44 case 'snap-test' :
5- const { snapTest } = await import ( './snap-test.js ' ) ;
5+ const { snapTest } = await import ( './snap-test.ts ' ) ;
66 await snapTest ( ) ;
77 break ;
88 case 'replace-file-content' :
9- const { replaceFileContent } = await import ( './replace-file-content.js ' ) ;
9+ const { replaceFileContent } = await import ( './replace-file-content.ts ' ) ;
1010 replaceFileContent ( ) ;
1111 break ;
1212 case 'sync-remote' :
13- const { syncRemote } = await import ( './sync-remote-deps.js ' ) ;
13+ const { syncRemote } = await import ( './sync-remote-deps.ts ' ) ;
1414 await syncRemote ( ) ;
1515 break ;
1616 case 'json-sort' :
17- const { jsonSort } = await import ( './json-sort.js ' ) ;
17+ const { jsonSort } = await import ( './json-sort.ts ' ) ;
1818 jsonSort ( ) ;
1919 break ;
2020 case 'merge-peer-deps' :
21- const { mergePeerDeps } = await import ( './merge-peer-deps.js ' ) ;
21+ const { mergePeerDeps } = await import ( './merge-peer-deps.ts ' ) ;
2222 mergePeerDeps ( ) ;
2323 break ;
2424 case 'install-global-cli' :
25- const { installGlobalCli } = await import ( './install-global-cli.js ' ) ;
25+ const { installGlobalCli } = await import ( './install-global-cli.ts ' ) ;
2626 installGlobalCli ( ) ;
2727 break ;
2828 case 'brand-vite' :
29- const { brandVite } = await import ( './brand-vite.js ' ) ;
29+ const { brandVite } = await import ( './brand-vite.ts ' ) ;
3030 brandVite ( ) ;
3131 break ;
3232 default :
Original file line number Diff line number Diff line change @@ -773,7 +773,7 @@ export async function syncRemote() {
773773 log ( '✓ package.json exports updated successfully!' ) ;
774774
775775 // Apply Vite+ branding patches to vite source
776- const { brandVite } = await import ( './brand-vite.js ' ) ;
776+ const { brandVite } = await import ( './brand-vite.ts ' ) ;
777777 brandVite ( rootDir ) ;
778778
779779 log ( '✓ Done!' ) ;
Original file line number Diff line number Diff line change 11{
22 "compilerOptions" : {
3+ "allowImportingTsExtensions" : true ,
34 "declaration" : true ,
45 "esModuleInterop" : true ,
56 "module" : " nodenext" ,
You can’t perform that action at this time.
0 commit comments