Skip to content

Commit

Permalink
Merge branch 'main' into feat/703-minute-support-in-duration
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv authored Mar 28, 2024
2 parents 2dd3d6d + 8a7a8fe commit 9529449
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 453 deletions.
393 changes: 0 additions & 393 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 0 additions & 5 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 Expand Up @@ -81,7 +77,6 @@
"prettier": "^3.2.5",
"tsd": "^0.30.7",
"typescript": "^5.4.3",
"webpod": "^1",
"which": "^4.0.0",
"yaml": "^2.4.1",
"zurk": "^0.0.32"
Expand Down
1 change: 0 additions & 1 deletion scripts/build-dts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const entry = {
'node-fetch-native',
'chalk',
'globby',
'webpod',
'@types/minimist',
'@types/which',
'zurk',
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 src/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ declare global {
var retry: typeof _.retry
var sleep: typeof _.sleep
var spinner: typeof _.spinner
var ssh: typeof _.ssh
var stdin: typeof _.stdin
var which: typeof _.which
var within: typeof _.within
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { ProcessPromise } from './core.js'

export * from './core.js'
export * from './goods.js'
export { minimist, chalk, fs, which, YAML, ssh, ps } from './vendor.js'
export { minimist, chalk, fs, which, YAML, ps } from './vendor.js'

export { type Duration, quote, quotePowerShell } from './util.js'

Expand Down
1 change: 0 additions & 1 deletion src/vendor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,3 @@ export { default as chalk, type ChalkInstance } from 'chalk'
export { default as which } from 'which'
export { default as minimist } from 'minimist'
export { default as ps } from '@webpod/ps'
export { ssh } from 'webpod'
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.

1 change: 0 additions & 1 deletion test/fixtures/js-project/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import {
fs,
which,
YAML,
ssh,
ps,
quote,
quotePowerShell,
Expand Down Expand Up @@ -88,7 +87,6 @@ describe('index', () => {
assert(fs)
assert(which)
assert(YAML)
assert(ssh)
assert(ps)

// utils
Expand Down

0 comments on commit 9529449

Please sign in to comment.