|
@@ -9,6 +9,9 @@
|
|
"files": ["index.d.ts", "index.js"],
|
|
"files": ["index.d.ts", "index.js"],
|
|
"os": ["darwin", "linux", "win32"],
|
|
"os": ["darwin", "linux", "win32"],
|
|
"cpu": ["x64"],
|
|
"cpu": ["x64"],
|
|
|
|
+ "napi": {
|
|
|
|
+ "name": "package-template"
|
|
|
|
+ },
|
|
"engines": {
|
|
"engines": {
|
|
"node": ">= 8.9"
|
|
"node": ">= 8.9"
|
|
},
|
|
},
|
|
@@ -17,8 +20,9 @@
|
|
"access": "public"
|
|
"access": "public"
|
|
},
|
|
},
|
|
"scripts": {
|
|
"scripts": {
|
|
- "build": "cargo build --release && napi build --platform --release ./index",
|
|
|
|
- "build:debug": "cargo build && napi --platform ./index",
|
|
|
|
|
|
+ "artifacts": "napi artifacts",
|
|
|
|
+ "build": "cargo build --release && napi build --platform --release",
|
|
|
|
+ "build:debug": "cargo build && napi --platform",
|
|
"format": "run-p format:md format:json format:yaml format:source format:rs",
|
|
"format": "run-p format:md format:json format:yaml format:source format:rs",
|
|
"format:md": "prettier --parser markdown --write './**/*.md'",
|
|
"format:md": "prettier --parser markdown --write './**/*.md'",
|
|
"format:json": "prettier --parser json --write './**/*.json'",
|
|
"format:json": "prettier --parser json --write './**/*.json'",
|
|
@@ -26,15 +30,15 @@
|
|
"format:source": "prettier --config ./package.json --write './**/*.{js,ts}'",
|
|
"format:source": "prettier --config ./package.json --write './**/*.{js,ts}'",
|
|
"format:yaml": "prettier --parser yaml --write './**/*.{yml,yaml}'",
|
|
"format:yaml": "prettier --parser yaml --write './**/*.{yml,yaml}'",
|
|
"lint": "eslint . -c ./.eslintrc.yml './**/*.{ts,tsx,js}'",
|
|
"lint": "eslint . -c ./.eslintrc.yml './**/*.{ts,tsx,js}'",
|
|
- "prepublishOnly": "node ./scripts/publish.js",
|
|
|
|
|
|
+ "prepublishOnly": "napi prepublish -t npm",
|
|
"test": "ava",
|
|
"test": "ava",
|
|
- "version": "node ./scripts/version.js"
|
|
|
|
|
|
+ "version": "napi version"
|
|
},
|
|
},
|
|
"devDependencies": {
|
|
"devDependencies": {
|
|
"@octokit/rest": "^18.0.4",
|
|
"@octokit/rest": "^18.0.4",
|
|
"@swc-node/register": "^0.4.5",
|
|
"@swc-node/register": "^0.4.5",
|
|
- "@typescript-eslint/eslint-plugin": "^4.0.0",
|
|
|
|
- "@typescript-eslint/parser": "^3.10.1",
|
|
|
|
|
|
+ "@typescript-eslint/eslint-plugin": "^4.0.1",
|
|
|
|
+ "@typescript-eslint/parser": "^4.0.1",
|
|
"ava": "^3.12.1",
|
|
"ava": "^3.12.1",
|
|
"chalk": "^4.1.0",
|
|
"chalk": "^4.1.0",
|
|
"eslint": "^7.8.1",
|
|
"eslint": "^7.8.1",
|
|
@@ -46,7 +50,7 @@
|
|
"eslint-plugin-sonarjs": "^0.5.0",
|
|
"eslint-plugin-sonarjs": "^0.5.0",
|
|
"husky": "^4.2.5",
|
|
"husky": "^4.2.5",
|
|
"lint-staged": "^10.3.0",
|
|
"lint-staged": "^10.3.0",
|
|
- "napi-rs": "^0.2.6",
|
|
|
|
|
|
+ "napi-rs": "^0.3.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"npm-run-all": "^4.1.5",
|
|
"prettier": "^2.1.1",
|
|
"prettier": "^2.1.1",
|
|
"putasset": "^5.0.3",
|
|
"putasset": "^5.0.3",
|