diff --git a/.eslintrc.json b/.eslintrc.json index 574c87f..5d7208e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -41,7 +41,7 @@ ["^\\u0000"], ["^node:"], ["^@?\\w"], - ["index.js"], + ["@makenew/tsmodule"], ["^lib/"], ["^"], ["^\\."] diff --git a/examples/todo.ts b/examples/todo.ts index 27c2f7e..32e1aaa 100644 --- a/examples/todo.ts +++ b/examples/todo.ts @@ -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 diff --git a/test/todo.test.ts b/test/todo.test.ts index 2007cbe..43331aa 100644 --- a/test/todo.test.ts +++ b/test/todo.test.ts @@ -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') diff --git a/tsconfig.json b/tsconfig.json index b8ac97b..47dee24 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,7 +23,7 @@ "noUnusedLocals": true, "forceConsistentCasingInFileNames": true, "paths": { - "index.js": ["./src/index.ts"], + "@makenew/tsmodule": ["./src/index.ts"], "lib/*": ["./src/lib/*"] } },