update package.json

This commit is contained in:
Jay
2020-08-25 11:38:13 +08:00
parent 3de862d4c4
commit 26772cadc6
5 changed files with 10 additions and 1 deletions
+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,