Skip to content

Commit

Permalink
fix: disable multiline feature (#767)
Browse files Browse the repository at this point in the history
* fix: disable multiline hook

* chore: up dev deps

* chore: linting
  • Loading branch information
antongolub authored Apr 5, 2024
1 parent 0844b88 commit 8c4d0c7
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 35 deletions.
42 changes: 18 additions & 24 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
"optionalDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/node": ">=20.11.30"
"@types/node": ">=20.12.4"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
Expand All @@ -68,16 +68,16 @@
"dts-bundle-generator": "^9.3.1",
"esbuild": "^0.20.2",
"esbuild-node-externals": "^1.13.0",
"esbuild-plugin-entry-chunks": "^0.1.11",
"esbuild-plugin-entry-chunks": "^0.1.12",
"fs-extra": "^11.2.0",
"fx": "*",
"globby": "^14.0.1",
"madge": "^6.1.0",
"minimist": "^1.2.8",
"node-fetch-native": "^1.6.4",
"prettier": "^3.2.5",
"tsd": "^0.30.7",
"typescript": "^5.4.3",
"tsd": "^0.31.0",
"typescript": "^5.4.4",
"which": "^4.0.0",
"yaml": "^2.4.1",
"zurk": "^0.0.32"
Expand Down
3 changes: 1 addition & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import {
formatCmd,
getCallerLocation,
noop,
normalizeMultilinePieces,
parseDuration,
quote,
quotePowerShell,
Expand Down Expand Up @@ -150,7 +149,7 @@ export const $: Shell & Options = new Proxy<Shell & Options>(
const promise = new ProcessPromise((...args) => ([resolve, reject] = args))
const cmd = buildCmd(
$.quote,
normalizeMultilinePieces(pieces as TemplateStringsArray),
pieces as TemplateStringsArray,
args
) as string
const snapshot = getStore()
Expand Down
2 changes: 1 addition & 1 deletion test/core.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('core', () => {
assert.equal((await $`echo -n ${''}`).toString(), '')
})

test('handles multiline literals', async () => {
test.skip('handles multiline literals', async () => {
assert.equal(
(
await $`echo foo
Expand Down
8 changes: 4 additions & 4 deletions test/fixtures/js-project/package-lock.json

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

0 comments on commit 8c4d0c7

Please sign in to comment.