Browse Source

Replaced the JS minifier

tags/v1.0.0
Cédric Belin 2 weeks ago
parent
commit
f1f32d2b28
4 changed files with 9 additions and 4 deletions
  1. +1
    -1
      bin/which.js
  2. +5
    -0
      etc/terser.json
  3. +2
    -2
      package.json
  4. +1
    -1
      tool/dist.ps1

+ 1
- 1
bin/which.js
File diff suppressed because it is too large
View File


+ 5
- 0
etc/terser.json View File

@@ -0,0 +1,5 @@
{
"compress": true,
"ecma": 2020,
"mangle": true
}

+ 2
- 2
package.json View File

@@ -18,7 +18,7 @@
},
"devDependencies": {
"@cedx/coveralls": "^10.1.0",
"@zeit/ncc": "^0.22.3"
"terser": "^4.8.0"
},
"engines": {
"node": ">=14.4.0"
@@ -47,7 +47,7 @@
},
"scripts": {
"coverage": "coveralls var/lcov.info",
"dist": "ncc build bin/which.js --minify --out=var",
"dist": "terser --config-file=etc/terser.json --output=bin/which.js bin/which.js",
"prepack": "pwsh tool/dist.ps1"
}
}

+ 1
- 1
tool/dist.ps1 View File

@@ -7,7 +7,7 @@ tool/version.ps1
tool/build.ps1

npm run dist
@("#!/usr/bin/env node") + (Get-Content var/index.js) | Out-File bin/which.js
@("#!/usr/bin/env node") + (Get-Content bin/which.js) | Out-File bin/which.js
if (-not $IsWindows) { chmod +x bin/which.js }

Remove-Item lib/index.php


Loading…
Cancel
Save