We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 643f581 commit dc542d1Copy full SHA for dc542d1
package.json
@@ -32,6 +32,7 @@
32
"lint-staged": {
33
"*": "prettier --ignore-unknown --write"
34
},
35
+ "main": "./dist/index.js",
36
"name": "template-typescript-node-package",
37
"scripts": {
38
"build": "tsc",
src/greet.ts
@@ -1,4 +1,4 @@
1
-import { GreetOptions } from "./types";
+import { GreetOptions } from "./types.js";
2
3
export function greet(options: GreetOptions | string) {
4
const {
src/index.ts
@@ -1,2 +1,2 @@
export * from "./greet.js";
-export * from "./types";
+export * from "./types.js";
0 commit comments