-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
401 additions
and
599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,23 +5,23 @@ | |
}, | ||
"tasks": { | ||
// runs this source checkout, args will be passed | ||
"run": "deno run --unstable -A ./entrypoint.ts", | ||
"run": "deno run --unstable-fs --unstable-ffi -A ./entrypoint.ts", | ||
|
||
// you can specify paths to specific tests if you need | ||
// follows is the ideal permissions lines, unfortunately deno considers making symlinks to require full read/write permissions for fuck knows why reasons | ||
//"test": "deno test --allow-read=$PWD,$TMPDIR,$HOME,/ --allow-env --allow-write=$TMPDIR --allow-ffi --unstable", | ||
"test": "deno test --allow-read --allow-env --allow-write --allow-ffi --unstable", | ||
"test": "deno test --unstable-ffi --allow-ffi --allow-read --allow-env --allow-write", | ||
// ^^ ffi & unstable needed for execve.ts | ||
|
||
// installs to /usr/local/bin/pkgx | ||
"install": "deno task compile && ./pkgx +gnu.org/coreutils /usr/bin/sudo install -D ./pkgx /usr/local/bin/pkgx", | ||
|
||
//--------------------------------------- ci/cd/admin | ||
"coverage" : "scripts/run-coverage.sh", | ||
"typecheck": "deno check --unstable ./entrypoint.ts", | ||
"compile": "deno compile --lock=deno.lock --allow-read --allow-write --allow-net --allow-run --allow-env --allow-ffi --unstable --output $INIT_CWD/pkgx ./entrypoint.ts" | ||
"coverage": "scripts/run-coverage.sh", | ||
"typecheck": "deno check ./entrypoint.ts", | ||
"compile": "deno compile --lock=deno.lock --allow-read --allow-write --allow-net --allow-run --allow-env --allow-ffi --unstable-ffi --unstable-fs --output \"$INIT_CWD/pkgx\" ./entrypoint.ts" | ||
}, | ||
"pkgx": "deno~1.39", | ||
"pkgx": "deno~1.45.5", | ||
"lint": { | ||
"exclude": ["src/**/*.test.ts"] | ||
}, | ||
|
@@ -33,7 +33,7 @@ | |
"pkgx": "https://deno.land/x/[email protected]/mod.ts", | ||
"pkgx/": "https://deno.land/x/[email protected]/src/", | ||
"outdent": "https://deno.land/x/[email protected]/mod.ts", | ||
"cliffy/": "https://deno.land/x/[email protected].3/", | ||
"deno/": "https://deno.land/std@0.196.0/" // cliffy is on 196 so we standardized on it | ||
"cliffy/": "https://deno.land/x/[email protected].4/", | ||
"deno/": "https://deno.land/std@0.221.0/" // cliffy is on 221 so we standardized on it | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"engines": { | ||
"node": "~16.16.1", | ||
"npm": "~9.7.1" | ||
"npm": "~9.7.1", | ||
"yarn": "~1.22.10", | ||
"pnpm": "~7.33.7" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"packageManager": "[email protected]+sha256.d1581d46ed10f54ff0cbdd94a2373b1f070202b0fbff29f27c2ce01460427043" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"volta": { | ||
"node": "16.16.1", | ||
"npm": "9.7.1", | ||
"yarn": "1.22.10", | ||
"pnpm": "7.33.7" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
export default function(dst = Deno.stdout.rid, env = Deno.env.toObject()) { | ||
export default function(dst = Deno.stdout, env = Deno.env.toObject()) { | ||
// interprets https://no-color.org | ||
// see: https://deno.land/[email protected]?s=Deno.noColor | ||
if (Deno.noColor) { | ||
|
@@ -8,9 +8,9 @@ export default function(dst = Deno.stdout.rid, env = Deno.env.toObject()) { | |
|
||
//https://bixense.com/clicolors/ | ||
|
||
//NOTE we (mostly) only output colors to stderr hence the isatty check for that | ||
//NOTE we (mostly) only output colors to stderr hence the isTerminal() check for that | ||
//FIXME not true for --help tho | ||
if (env.CLICOLOR !== '0' && Deno.isatty(dst)) { | ||
if (env.CLICOLOR !== '0' && dst.isTerminal()) { | ||
return true | ||
} | ||
if ((env.CLICOLOR_FORCE ?? '0') != '0') { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,20 @@ Deno.test("devenv.ts", async runner => { | |
'package.json/engines/package.json', | ||
'nodejs.org~16.16.1', | ||
'npmjs.com~9.7.1', | ||
'yarnpkg.com~1.22.10', | ||
'pnpm.io~7.33.7', | ||
], | ||
[ | ||
'package.json/packageManager/package.json', | ||
'[email protected]', | ||
'nodejs.org' | ||
], | ||
[ | ||
'package.json/volta/package.json', | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
], | ||
[".node-version", "[email protected]"], | ||
["python-version/std/.python-version", "python.org~3.10"], | ||
|
Oops, something went wrong.