mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
Revert "feat(flags): script arguments come after '--'" (#3681)
Due to complaints about ergonomics and because it breaks shebang on
linux.
This reverts commit 2d5457df15
.
BREAKING CHANGE
This commit is contained in:
parent
3eab20ce42
commit
a4dde552de
14 changed files with 82 additions and 78 deletions
|
@ -25,8 +25,7 @@ const cmd = [
|
|||
"--allow-run",
|
||||
"--allow-write",
|
||||
"--allow-read",
|
||||
"./prettier/main.ts",
|
||||
"--"
|
||||
"./prettier/main.ts"
|
||||
];
|
||||
|
||||
const testdata = join("prettier", "testdata");
|
||||
|
@ -403,7 +402,6 @@ test(async function testPrettierWithAutoConfig(): Promise<void> {
|
|||
"--allow-read",
|
||||
"--allow-env",
|
||||
prettierFile,
|
||||
"--",
|
||||
"../5.ts",
|
||||
"--config",
|
||||
"auto"
|
||||
|
@ -470,7 +468,6 @@ test(async function testPrettierWithSpecifiedConfig(): Promise<void> {
|
|||
"--allow-read",
|
||||
"--allow-env",
|
||||
prettierFile,
|
||||
"--",
|
||||
"../5.ts",
|
||||
"--config",
|
||||
config.name
|
||||
|
@ -506,7 +503,6 @@ test(async function testPrettierWithAutoIgnore(): Promise<void> {
|
|||
"--allow-read",
|
||||
"--allow-env",
|
||||
prettierFile,
|
||||
"--",
|
||||
"**/*",
|
||||
"--ignore-path",
|
||||
"auto"
|
||||
|
@ -535,7 +531,6 @@ test(async function testPrettierWithSpecifiedIgnore(): Promise<void> {
|
|||
"--allow-read",
|
||||
"--allow-env",
|
||||
prettierFile,
|
||||
"--",
|
||||
"**/*",
|
||||
"--ignore-path",
|
||||
"typescript.prettierignore"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue