diff --git a/src/bindgen/typescript-resources/.npmignore b/src/bindgen/typescript-resources/npmignore.bindgen similarity index 100% rename from src/bindgen/typescript-resources/.npmignore rename to src/bindgen/typescript-resources/npmignore.bindgen diff --git a/src/bindgen/typescript.js b/src/bindgen/typescript.js index afa5259eb..8a1f88331 100644 --- a/src/bindgen/typescript.js +++ b/src/bindgen/typescript.js @@ -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')