Skip to content

Commit f30142a

Browse files
committed
File extensions bed
1 parent 5cbdc76 commit f30142a

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

src/defaultTypes.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-expect-error
2-
import { parse } from './autoSql'
3-
import { AutoSqlPreSchema } from './util'
4-
import * as types from './as/autoSqlSchemas'
2+
import { parse } from './autoSql.js'
3+
import { AutoSqlPreSchema } from './util.ts'
4+
import * as types from './as/autoSqlSchemas.ts'
55

66
export default Object.fromEntries(
77
Object.entries(types).map(([key, value]) => [

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { default } from './parser'
1+
export { default } from './parser.ts'

src/parser.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-expect-error
2-
import parser from './autoSql'
3-
import types from './defaultTypes'
4-
import { detectTypes, AutoSqlSchema, AutoSqlPreSchema } from './util'
2+
import parser from './autoSql.js'
3+
import types from './defaultTypes.ts'
4+
import { detectTypes, AutoSqlSchema, AutoSqlPreSchema } from './util.ts'
55

66
const strandMap = { '.': 0, '-': -1, '+': 1 }
77

test/autosql.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, test, expect } from 'vitest'
2-
import parser from '../src/autoSql'
2+
import parser from '../src/autoSql.js'
33

44
describe('autoSql parser', () => {
55
it('simple example', () => {

test/parse.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { test, expect } from 'vitest'
2-
import BED from '../src'
2+
import BED from '../src/index.ts'
33

44
test('BED3', () => {
55
const p = new BED()

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"outDir": "dist",
77
"strict": true,
88
"sourceMap": true,
9+
"allowImportingTsExtensions": true,
10+
"rewriteRelativeImportExtensions": true,
911
"esModuleInterop": true
1012
},
1113
"include": ["src"]

0 commit comments

Comments
 (0)