Skip to content

Commit

Permalink
bug: fix export types with correct dir
Browse files Browse the repository at this point in the history
  • Loading branch information
taozhi8833998 committed Apr 29, 2021
1 parent ced6b6d commit be0e95d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './types';
export * from '../types';
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "3.1.0",
"description": "simple node sql parser",
"main": "index.js",
"types": "index.d.ts",
"types": "types.d.ts",
"scripts": {
"start": "webpack --config webpack.config.js",
"build": "npm run lint && npm run compile && webpack --config webpack.config.js --prod",
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ const getPlugins = (parserName, target, plugins) => [
delete: [
`${outputPath}/*.umd.d.ts`,
`${outputPath}/*.umd.js`,
`${outputPath}/*.umd.js.map`
`${outputPath}/*.umd.js.map`,
`${outputPath}/index.d.ts`
]
}
})
Expand Down

0 comments on commit be0e95d

Please sign in to comment.