fix: wrong platform field for musl packages

This commit is contained in:
LongYinan 2020-09-10 10:55:39 +08:00
parent afbaf512d0
commit a1bff49ef9
No known key found for this signature in database
GPG key ID: A3FFE134A3E20881
2 changed files with 2 additions and 1 deletions

View file

@ -29,6 +29,7 @@
"format:source": "prettier --config ./package.json --write './**/*.{js,ts}'",
"format:yaml": "prettier --parser yaml --write './**/*.{yml,yaml}'",
"lint": "eslint -c .eslintrc.yml './src/**/*.ts' './test_module/**/*.{ts,js}'",
"prepublishOnly": "npm run build",
"test": "ava"
},
"bugs": {

View file

@ -40,7 +40,7 @@ export class CreateNpmDirCommand extends Command {
{
name: `${packageName}-${platform}`,
version,
os: [platform],
os: [platform.replace('-musl', '')],
main: binaryFileName,
files: [binaryFileName],
...pick(