This commit is contained in:
Jay
2020-08-25 15:27:30 +08:00
parent 26772cadc6
commit fa3715c748
7 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -1 +1 @@
module.exports = ['darwin', 'linux', 'win32']
module.exports = ['darwin', 'linux']
+1
View File
@@ -17,6 +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`
if (!fs.existsSync(path.join(__dirname, '..', filename))) continue
const bindingFile = fs.readFileSync(path.join(__dirname, '..', filename))
fs.writeFileSync(path.join(pkgDir, filename), bindingFile)
execSync('npm publish', {