Skip to content

Commit

Permalink
Use package name as alias over index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed May 3, 2023
1 parent fd36f57 commit fef219f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
["^\\u0000"],
["^node:"],
["^@?\\w"],
["index.js"],
["@makenew/tsmodule"],
["^lib/"],
["^"],
["^\\."]
Expand Down
2 changes: 1 addition & 1 deletion examples/todo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Builder, Command, Describe, Handler } from 'landlubber'

import { todo } from 'index.js'
import { todo } from '@makenew/tsmodule'

interface Options {
x: string
Expand Down
2 changes: 1 addition & 1 deletion test/todo.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava'

import { todo } from 'index.js'
import { todo } from '@makenew/tsmodule'

test('todo: returns argument', (t) => {
t.is(todo('todo'), 'todo', 'returns input')
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"noUnusedLocals": true,
"forceConsistentCasingInFileNames": true,
"paths": {
"index.js": ["./src/index.ts"],
"@makenew/tsmodule": ["./src/index.ts"],
"lib/*": ["./src/lib/*"]
}
},
Expand Down

0 comments on commit fef219f

Please sign in to comment.