Skip to content

Commit

Permalink
Push
Browse files Browse the repository at this point in the history
  • Loading branch information
PuruVJ committed Jul 15, 2024
1 parent ca447cc commit 4311f39
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/try-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"license": "ISC",
"description": "",
"dependencies": {
"neotraverse": "0.6.9-test.1"
"neotraverse": "https://pkg.pr.new/PuruVJ/neotraverse@ca447cc"
}
}
11 changes: 6 additions & 5 deletions examples/try-esm/pnpm-lock.yaml

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

2 changes: 0 additions & 2 deletions src/legacy.cts

This file was deleted.

5 changes: 5 additions & 0 deletions src/legacy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const traverse = require('./index.ts');
// module.exports = traverse.default;

// @ts-ignore
export = traverse.default;
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default defineConfig([
outDir: 'dist/modern/min',
},
{
entry: ['src/legacy.cts'],
entry: ['src/legacy.ts'],
format: ['cjs', 'esm'],
outExtension(ctx) {
return { js: ctx.format === 'cjs' ? '.cjs' : '.mjs' };
Expand Down

0 comments on commit 4311f39

Please sign in to comment.