pear-build
Advanced tools
+2
-1
@@ -16,3 +16,4 @@ 'use strict' | ||
| const pkgPath = path.resolve(opts.package) | ||
| const pkg = require(pkgPath) | ||
| const pkgFile = await fs.promises.readFile(pkgPath, 'utf-8') | ||
| const pkg = JSON.parse(pkgFile) | ||
| const { target = path.resolve(pkg.name + '-' + pkg.version) } = opts | ||
@@ -19,0 +20,0 @@ const darwinArm64App = opts.darwinArm64App |
+21
-7
| { | ||
| "name": "pear-build", | ||
| "version": "1.1.0", | ||
| "version": "1.1.1", | ||
| "main": "index.js", | ||
| "type": "commonjs", | ||
| "bin": "bin.js", | ||
| "bin": { | ||
| "pear-build": "bin.js" | ||
| }, | ||
| "description": "Create project deployment folder", | ||
@@ -47,5 +49,6 @@ "author": "Holepunch Inc", | ||
| "lint": "prettier --check . && lunte", | ||
| "make:test": "brittle-make-test test/all.mjs test/*.test.js", | ||
| "test": "npm run test:node && npm run test:bare", | ||
| "test:bare": "brittle-bare --coverage test/all.js", | ||
| "test:node": "brittle-node --coverage test/all.js" | ||
| "test:bare": "brittle-bare --coverage test/all.mjs", | ||
| "test:node": "brittle-node --coverage test/all.mjs" | ||
| }, | ||
@@ -60,4 +63,3 @@ "dependencies": { | ||
| "devDependencies": { | ||
| "bare-fs": "^4.5.3", | ||
| "brittle": "^3.19.1", | ||
| "brittle": "^4.0.0", | ||
| "lunte": "^1.6.0", | ||
@@ -68,3 +70,15 @@ "mirror-drive": "^1.13.0", | ||
| "test-tmp": "^1.4.0" | ||
| } | ||
| }, | ||
| "directories": { | ||
| "test": "test" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/holepunchto/pear-build.git" | ||
| }, | ||
| "keywords": [], | ||
| "bugs": { | ||
| "url": "https://github.com/holepunchto/pear-build/issues" | ||
| }, | ||
| "homepage": "https://github.com/holepunchto/pear-build#readme" | ||
| } |
+12
-0
@@ -9,2 +9,10 @@ # pear-build | ||
| ## Supported Platforms | ||
| - Linux: `linux-arm64`, `linux-x64` | ||
| - macOS: `darwin-arm64`, `darwin-x64` | ||
| - Windows: `win32-arm64`, `win32-x64` | ||
| - iOS: `ios-arm64`, `ios-arm64-simulator`, `ios-x64-simulator` | ||
| - Android: `android-arm64` | ||
| ## Usage | ||
@@ -32,2 +40,3 @@ | ||
| --win32-x64-app ./test/fixtures/hello-pear-electron/out/HelloPear-win32-x64/HelloPear.msix \ | ||
| --win32-arm64-app ./test/fixtures/hello-pear-electron/out/HelloPear-win32-arm64/HelloPear.msix \ | ||
| --ios-arm64 ./test/fixtures/hello-pear-react-native/ota/ios/HelloPear \ | ||
@@ -73,2 +82,5 @@ --ios-arm64-simulator ./test/fixtures/hello-pear-react-native/ota/ios/HelloPear \ | ||
| │ │ └── HelloPear.AppImage | ||
| │ ├── win32-arm64 | ||
| │ │ └── app | ||
| │ │ └── HelloPear.msix | ||
| │ └── win32-x64 | ||
@@ -75,0 +87,0 @@ │ └── app |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
No website
QualityPackage does not have a website.
20753
4.42%6
-14.29%106
0.95%0
-100%0
-100%92
15%1
-66.67%