Skip to content

Commit

Permalink
wip add esm project for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpza committed Jun 19, 2023
1 parent 06c3178 commit ea4a391
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/projects/esm/package.json
@@ -0,0 +1,9 @@
{
"name": "esm",
"type": "module",
"version": "0.0.0",
"private": true,
"devDependencies": {
"typescript-transform-paths": "link:../../../"
}
}
3 changes: 3 additions & 0 deletions test/projects/esm/src/a.ts
@@ -0,0 +1,3 @@
import { greet } from "@/b.js";

console.log(greet("World"));
3 changes: 3 additions & 0 deletions test/projects/esm/src/b.ts
@@ -0,0 +1,3 @@
export function greet(name: string): string {
return `Hello ${name}!`;
}
16 changes: 16 additions & 0 deletions test/projects/esm/tsconfig.json
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"rootDir": "./src",
"outDir": "./dist",
"paths": {
"@/*": ["./src/*"]
},
"plugins": [
{ "transform": "../../../src/index.ts" },
{ "transform": "../../../src/index.ts", "afterDeclarations": true }
]
}
}

0 comments on commit ea4a391

Please sign in to comment.