update package.json
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user