This commit is contained in:
Jay committed 2020-08-25 15:27:30 +08:00
1 parent 26772cadc6
commit fa3715c748
7 files changed
+18 -6

No files matched your search

+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', {