GeezerVison is showing github.com — refactor: rm experimental toggle (#751) · google/zx@8a7a8fe
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: package.json -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 13 | 13 | "globals": [ | 14 | 14 | "./build/globals.d.ts" | 15 | 15 | ], | 16 | | - "experimental": [ | 17 | | - "./build/experimental.d.ts" | 18 | | - ], | 19 | 16 | "cli": [ | 20 | 17 | "./build/cli.d.ts" | 21 | 18 | ], | | 27 | 24 | "exports": { | 28 | 25 | ".": "./build/index.js", | 29 | 26 | "./globals": "./build/globals.js", | 30 | | - "./experimental": "./build/experimental.js", | 31 | 27 | "./cli": "./build/cli.js", | 32 | 28 | "./core": "./build/core.js", | 33 | 29 | "./package.json": "./package.json" | |
Collapse file Copy file name to clipboardExpand all lines: src/cli.ts +1-13Lines changed: 1 addition & 13 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -44,7 +44,6 @@ function printUsage() { | 44 | 44 | --prefix=<command> prefix all commands | 45 | 45 | --eval=<js>, -e evaluate script | 46 | 46 | --install, -i install dependencies | 47 | | - --experimental enable experimental features | 48 | 47 | --version, -v print current zx version | 49 | 48 | --help, -h print help | 50 | 49 | --repl start repl | @@ -53,15 +52,7 @@ function printUsage() { | 53 | 52 |
| 54 | 53 | const argv = minimist(process.argv.slice(2), { | 55 | 54 | string: ['shell', 'prefix', 'eval'], | 56 | | - boolean: [ | 57 | | - 'version', | 58 | | - 'help', | 59 | | - 'quiet', | 60 | | - 'verbose', | 61 | | - 'install', | 62 | | - 'repl', | 63 | | - 'experimental', | 64 | | - ], | | 55 | + boolean: ['version', 'help', 'quiet', 'verbose', 'install', 'repl'], | 65 | 56 | alias: { e: 'eval', i: 'install', v: 'version', h: 'help' }, | 66 | 57 | stopEarly: true, | 67 | 58 | }) | @@ -73,9 +64,6 @@ await (async function main() { | 73 | 64 | if (argv.quiet) $.verbose = false | 74 | 65 | if (argv.shell) $.shell = argv.shell | 75 | 66 | if (argv.prefix) $.prefix = argv.prefix | 76 | | - if (argv.experimental) { | 77 | | - Object.assign(global, await import('./experimental.js')) | 78 | | - } | 79 | 67 | if (argv.version) { | 80 | 68 | console.log(getVersion()) | 81 | 69 | return | |
Collapse file Copy file name to clipboardExpand all lines: src/experimental.ts -16Lines changed: 0 additions & 16 deletions Collapse file Copy file name to clipboardExpand all lines: test/all.test.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 15 | 15 | import './cli.test.js' | 16 | 16 | import './core.test.js' | 17 | 17 | import './deps.test.js' | 18 | | -import './experimental.test.js' | 19 | 18 | import './extra.test.js' | 20 | 19 | import './global.test.js' | 21 | 20 | import './goods.test.js' | |
Collapse file Copy file name to clipboardExpand all lines: test/experimental.test.js -18Lines changed: 0 additions & 18 deletions
|