some node16 module resolution compliance

pull/8504/head
gtmnayan 3 years ago
parent edd3e31860
commit df4cad404f

@ -22,7 +22,7 @@ const ts_plugin = is_publish
fs.writeFileSync(
`./compiler.d.ts`,
`export { compile, parse, preprocess, walk, VERSION } from './types/compiler/index';`
`export { compile, parse, preprocess, walk, VERSION } from './types/compiler/index.js';`
);
const runtime_entrypoints = Object.fromEntries(
@ -103,7 +103,7 @@ export default [
fs.writeFileSync(
`${dir}/index.d.ts`,
`export * from '../types/runtime/${dir}/index';`
`export * from '../types/runtime/${dir}/index.js';`
);
}
},

Loading…
Cancel
Save