secrez 2.1.12-beta.0 → 2.1.12-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secrez",
3
- "version": "2.1.12-beta.0",
3
+ "version": "2.1.12-beta.1",
4
4
  "license": "MIT",
5
5
  "nyc": {
6
6
  "include": "src",
@@ -66,6 +66,6 @@
66
66
  "test": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text mocha test/*.test.js test/**/*.test.js test/**/**/*.js --exit",
67
67
  "posttest": "nyc check-coverage --statements 65 --branches 50 --functions 65 --lines 65",
68
68
  "build-helpers": "cd test/helpers/os && ./build.sh",
69
- "preinstall": "scripts/pre-install.sh"
69
+ "preinstall": "node scripts/preinstall.js"
70
70
  }
71
71
  }
@@ -0,0 +1,7 @@
1
+ if (process.env.npm_execpath.indexOf("pnpm") === -1) {
2
+ console.error(
3
+ "\x1b[31m\x1b[1m%s\x1b[0m",
4
+ '\nThis project requires pnpm as a package manager.\n'
5
+ );
6
+ process.exit(1);
7
+ }
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # Check if pnpm is installed
4
- if ! command -v pnpm &> /dev/null; then
5
- echo "pnpm not found, installing..."
6
- npm i -g pnpm
7
- #else
8
- # echo "pnpm is already installed"
9
- fi
10
-
11
- set -e
12
-
13
- if [[ "$npm_execpath" != *pnpm* ]]; then
14
- echo -e "\033[1;31m\nThis project requires pnpm as a package manager.\n\033[0m"
15
- exit 1
16
- fi