Skip to content

Commit

Permalink
fix(bindgen): Pack .npmignore resource into the package
Browse files Browse the repository at this point in the history
npm pack ignores this file by default so rename.
  • Loading branch information
thewtex committed Feb 10, 2023
1 parent b7c2a54 commit 9464f56
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/bindgen/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function typescriptBindings(outputDir, buildDir, wasmBinaries, options, forNode=

const npmIgnorePath = path.join(outputDir, '.npmignore')
if (!fs.existsSync(npmIgnorePath)) {
fs.copyFileSync(bindgenResource('.npmignore'), npmIgnorePath)
fs.copyFileSync(bindgenResource('npmignore.bindgen'), npmIgnorePath)
}

const docsIndexPath = path.join(outputDir, 'index.html')
Expand Down

0 comments on commit 9464f56

Please sign in to comment.