Skip to content

Commit 14ecdd4

Browse files
committed
fix: use correct flag for postinstall auto-complete command
Signed-off-by: Michael Molisani <mmolisani@bloomberg.net>
1 parent 3ac7278 commit 14ecdd4

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

packages/create-app/src/impl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export default async function (this: LocalContext, flags: CreateProjectFlags, di
166166
} else {
167167
packageJson = addPostinstallScript(
168168
packageJson,
169-
`npx @stricli/auto-complete@latest install ${commandName} ${bashCommandName}`,
169+
`npx @stricli/auto-complete@latest install ${commandName} --bash ${bashCommandName}`,
170170
);
171171
}
172172
await writeFile("src/context.ts", localContextWithAutoCompleteText);

packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom bin command.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dist
5454
"prebuild": "tsc -p src/tsconfig.json",
5555
"build": "tsup",
5656
"prepublishOnly": "npm run build",
57-
"postinstall": "npx @stricli/auto-complete@latest install test-cli __test-cli_bash_complete"
57+
"postinstall": "npx @stricli/auto-complete@latest install test-cli --bash __test-cli_bash_complete"
5858
},
5959
"tsup": {
6060
"entry": [

packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom metadata.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dist
5454
"prebuild": "tsc -p src/tsconfig.json",
5555
"build": "tsup",
5656
"prepublishOnly": "npm run build",
57-
"postinstall": "npx @stricli/auto-complete@latest install test __test_bash_complete"
57+
"postinstall": "npx @stricli/auto-complete@latest install test --bash __test_bash_complete"
5858
},
5959
"tsup": {
6060
"entry": [

packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom name and bin command.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dist
5454
"prebuild": "tsc -p src/tsconfig.json",
5555
"build": "tsup",
5656
"prepublishOnly": "npm run build",
57-
"postinstall": "npx @stricli/auto-complete@latest install test-cli __test-cli_bash_complete"
57+
"postinstall": "npx @stricli/auto-complete@latest install test-cli --bash __test-cli_bash_complete"
5858
},
5959
"tsup": {
6060
"entry": [

packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom name.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dist
5454
"prebuild": "tsc -p src/tsconfig.json",
5555
"build": "tsup",
5656
"prepublishOnly": "npm run build",
57-
"postinstall": "npx @stricli/auto-complete@latest install @org/test-cli __@org/test-cli_bash_complete"
57+
"postinstall": "npx @stricli/auto-complete@latest install @org/test-cli --bash __@org/test-cli_bash_complete"
5858
},
5959
"tsup": {
6060
"entry": [

packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/with default flags.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dist
5454
"prebuild": "tsc -p src/tsconfig.json",
5555
"build": "tsup",
5656
"prepublishOnly": "npm run build",
57-
"postinstall": "npx @stricli/auto-complete@latest install test __test_bash_complete"
57+
"postinstall": "npx @stricli/auto-complete@latest install test --bash __test_bash_complete"
5858
},
5959
"tsup": {
6060
"entry": [

packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom bin command.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dist
5454
"prebuild": "tsc -p src/tsconfig.json",
5555
"build": "tsup",
5656
"prepublishOnly": "npm run build",
57-
"postinstall": "npx @stricli/auto-complete@latest install test-cli __test-cli_bash_complete"
57+
"postinstall": "npx @stricli/auto-complete@latest install test-cli --bash __test-cli_bash_complete"
5858
},
5959
"tsup": {
6060
"entry": [

packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom metadata.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dist
5454
"prebuild": "tsc -p src/tsconfig.json",
5555
"build": "tsup",
5656
"prepublishOnly": "npm run build",
57-
"postinstall": "npx @stricli/auto-complete@latest install test __test_bash_complete"
57+
"postinstall": "npx @stricli/auto-complete@latest install test --bash __test_bash_complete"
5858
},
5959
"tsup": {
6060
"entry": [

packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom name and bin command.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dist
5454
"prebuild": "tsc -p src/tsconfig.json",
5555
"build": "tsup",
5656
"prepublishOnly": "npm run build",
57-
"postinstall": "npx @stricli/auto-complete@latest install test-cli __test-cli_bash_complete"
57+
"postinstall": "npx @stricli/auto-complete@latest install test-cli --bash __test-cli_bash_complete"
5858
},
5959
"tsup": {
6060
"entry": [

packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom name.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dist
5454
"prebuild": "tsc -p src/tsconfig.json",
5555
"build": "tsup",
5656
"prepublishOnly": "npm run build",
57-
"postinstall": "npx @stricli/auto-complete@latest install @org/test-cli __@org/test-cli_bash_complete"
57+
"postinstall": "npx @stricli/auto-complete@latest install @org/test-cli --bash __@org/test-cli_bash_complete"
5858
},
5959
"tsup": {
6060
"entry": [

packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/with default flags.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dist
5454
"prebuild": "tsc -p src/tsconfig.json",
5555
"build": "tsup",
5656
"prepublishOnly": "npm run build",
57-
"postinstall": "npx @stricli/auto-complete@latest install test __test_bash_complete"
57+
"postinstall": "npx @stricli/auto-complete@latest install test --bash __test_bash_complete"
5858
},
5959
"tsup": {
6060
"entry": [

0 commit comments

Comments
 (0)