Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rm experimental toggle #751

Merged
merged 3 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"globals": [
"./build/globals.d.ts"
],
"experimental": [
"./build/experimental.d.ts"
],
"cli": [
"./build/cli.d.ts"
],
Expand All @@ -27,7 +24,6 @@
"exports": {
".": "./build/index.js",
"./globals": "./build/globals.js",
"./experimental": "./build/experimental.js",
"./cli": "./build/cli.js",
"./core": "./build/core.js",
"./package.json": "./package.json"
Expand Down
14 changes: 1 addition & 13 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ function printUsage() {
--prefix=<command> prefix all commands
--eval=<js>, -e evaluate script
--install, -i install dependencies
--experimental enable experimental features
--version, -v print current zx version
--help, -h print help
--repl start repl
Expand All @@ -53,15 +52,7 @@ function printUsage() {

const argv = minimist(process.argv.slice(2), {
string: ['shell', 'prefix', 'eval'],
boolean: [
'version',
'help',
'quiet',
'verbose',
'install',
'repl',
'experimental',
],
boolean: ['version', 'help', 'quiet', 'verbose', 'install', 'repl'],
alias: { e: 'eval', i: 'install', v: 'version', h: 'help' },
stopEarly: true,
})
Expand All @@ -73,9 +64,6 @@ await (async function main() {
if (argv.quiet) $.verbose = false
if (argv.shell) $.shell = argv.shell
if (argv.prefix) $.prefix = argv.prefix
if (argv.experimental) {
Object.assign(global, await import('./experimental.js'))
}
if (argv.version) {
console.log(getVersion())
return
Expand Down
16 changes: 0 additions & 16 deletions src/experimental.ts

This file was deleted.

1 change: 0 additions & 1 deletion test/all.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import './cli.test.js'
import './core.test.js'
import './deps.test.js'
import './experimental.test.js'
import './extra.test.js'
import './global.test.js'
import './goods.test.js'
Expand Down
18 changes: 0 additions & 18 deletions test/experimental.test.js

This file was deleted.

Loading