Skip to content

Commit 379c637

Browse files
committed
Use package name over index.js
1 parent efe173a commit 379c637

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
["^\\u0000"],
2828
["^node:"],
2929
["^@?\\w"],
30-
["index.js"],
30+
["@seamapi/makenew-tsmodule"],
3131
["^lib/"],
3232
["^"],
3333
["^\\."]

examples/todo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Builder, Command, Describe, Handler } from 'landlubber'
22

3-
import { todo } from 'index.js'
3+
import { todo } from '@seamapi/makenew-tsmodule'
44

55
interface Options {
66
x: string

test/todo.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from 'ava'
22

3-
import { todo } from 'index.js'
3+
import { todo } from '@seamapi/makenew-tsmodule'
44

55
test('todo: returns argument', (t) => {
66
t.is(todo('todo'), 'todo', 'returns input')

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"forceConsistentCasingInFileNames": true,
2525
"baseUrl": "./",
2626
"paths": {
27-
"index.js": ["./src/index.ts"],
27+
"@seamapi/makenew-tsmodule": ["./src/index.ts"],
2828
"lib/*": ["./src/lib/*"]
2929
}
3030
},

0 commit comments

Comments
 (0)