Skip to content

Commit

Permalink
feat(ts-types): exported the new types declarations for the new produ…
Browse files Browse the repository at this point in the history
…ction bundle

types file included into package distribution
  • Loading branch information
codejedi365 committed Nov 6, 2021
1 parent 0ba2835 commit ae9997e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0-semantically-versioned",
"description": "ESLint rules & globals for TestCafe, from the TestCafe community",
"main": "dist/plugin.min.cjs",
"types": "dist/plugin.d.ts",
"files": [
"dist/**"
],
Expand Down
9 changes: 9 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ function buildConfig() {
}
}
}
],
copy: [
{
source: resolve(pkgDir, "lib", "globals.d.ts"),
destination: resolve(
outDir,
basename(thisModule.types)
)
}
]
}
}
Expand Down

0 comments on commit ae9997e

Please sign in to comment.