update package.json

This commit is contained in:
Jay committed 2020-08-25 11:38:13 +08:00
1 parent 3de862d4c4
commit 26772cadc6
5 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ updatePackageJson(path.join(__dirname, '..', 'package.json'), {
for (const name of platforms) {
const pkgDir = path.join(__dirname, '..', 'npm', name)
const filename = `index.${name}.node`
const bindingFile = fs.readFileSync(path.join(__dirname, '..', `bindings-${name}`, filename))
const bindingFile = fs.readFileSync(path.join(__dirname, '..', filename))
fs.writeFileSync(path.join(pkgDir, filename), bindingFile)
execSync('npm publish', {
cwd: pkgDir,