diff --git a/cli/src/create-npm-dir.ts b/cli/src/create-npm-dir.ts index 28cbfe44..d7b57f03 100644 --- a/cli/src/create-npm-dir.ts +++ b/cli/src/create-npm-dir.ts @@ -24,13 +24,8 @@ export class CreateNpmDirCommand extends Command { ) => { const pkgJsonDir = config debug(`Read content from [${chalk.yellowBright(pkgJsonDir)}]`) - const { - platforms, - packageName, - version, - binaryName, - content, - } = getNapiConfig(pkgJsonDir, cwd) + const { platforms, packageName, version, binaryName, content } = + getNapiConfig(pkgJsonDir, cwd) for (const platformDetail of platforms) { const targetDir = join( diff --git a/cli/src/pre-publish.ts b/cli/src/pre-publish.ts index 9846c7fe..45a00e1b 100644 --- a/cli/src/pre-publish.ts +++ b/cli/src/pre-publish.ts @@ -39,13 +39,8 @@ export class PrePublishCommand extends Command { @Command.Path('prepublish') async execute() { - const { - packageJsonPath, - platforms, - version, - packageName, - binaryName, - } = getNapiConfig(this.configFileName) + const { packageJsonPath, platforms, version, packageName, binaryName } = + getNapiConfig(this.configFileName) debug(`Update optionalDependencies in [${packageJsonPath}]`) if (!this.isDryRun) { await VersionCommand.updatePackageJson(this.prefix, this.configFileName) diff --git a/package.json b/package.json index a4f4b74b..aa6b75b8 100644 --- a/package.json +++ b/package.json @@ -18,12 +18,12 @@ "build:test:android": "yarn --cwd ./test_module build --target aarch64-linux-android", "build:test:armv7": "yarn --cwd ./test_module build-armv7", "format": "run-p format:md format:json format:yaml format:source format:rs", - "format:md": "prettier --parser markdown --write './**/*.md'", - "format:json": "prettier --parser json --write './**/*.json'", + "format:md": "prettier --parser markdown --write ./**/*.md", + "format:json": "prettier --parser json --write ./**/*.json", "format:rs": "cargo fmt", - "format:source": "prettier --config ./package.json --write './**/*.{js,ts}'", - "format:yaml": "prettier --parser yaml --write './**/*.{yml,yaml}'", - "lint": "eslint -c .eslintrc.yml './cli/**/*.ts' './test_module/**/*.{ts,js}'", + "format:source": "prettier --config ./package.json --write ./**/*.{js,ts}", + "format:yaml": "prettier --parser yaml --write ./**/*.{yml,yaml}", + "lint": "eslint -c .eslintrc.yml ./cli/**/*.ts ./test_module/**/*.{ts,js}", "prepublishOnly": "npm run build && pinst --disable", "test": "ava", "postinstall": "husky install",