Skip to content

Commit be0e95d

Browse files
committed
bug: fix export types with correct dir
1 parent ced6b6d commit be0e95d

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './types';
1+
export * from '../types';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "3.1.0",
44
"description": "simple node sql parser",
55
"main": "index.js",
6-
"types": "index.d.ts",
6+
"types": "types.d.ts",
77
"scripts": {
88
"start": "webpack --config webpack.config.js",
99
"build": "npm run lint && npm run compile && webpack --config webpack.config.js --prod",

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ const getPlugins = (parserName, target, plugins) => [
9292
delete: [
9393
`${outputPath}/*.umd.d.ts`,
9494
`${outputPath}/*.umd.js`,
95-
`${outputPath}/*.umd.js.map`
95+
`${outputPath}/*.umd.js.map`,
96+
`${outputPath}/index.d.ts`
9697
]
9798
}
9899
})

0 commit comments

Comments
 (0)