Skip to content

Commit

Permalink
use the new more ergonomic CLI syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dherman committed May 6, 2024
1 parent b2c69e0 commit 4091edf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkgs/create-neon/data/templates/ci/github/build.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Look Up Matrix Data
id: matrixData
shell: bash
run: echo "json=$(npx neon ci github | jq -rc)" | tee -a $GITHUB_OUTPUT
run: echo "json=$(npx neon show ci github | jq -rc)" | tee -a $GITHUB_OUTPUT
- name: Compute Matrix
id: matrix
uses: actions/github-script@{{versions.actions.githubScript}}
Expand Down
2 changes: 1 addition & 1 deletion pkgs/create-neon/data/templates/manifest/scripts.json.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"debug": "npm run cargo-build --",
"build": "npm run cargo-build -- --release",
"cross": "npm run cross-build -- --release"{{#if packageSpec.library}},
"prepack": "{{#eq packageSpec.library.lang compare="ts"}}tsc && {{/eq}}neon update-platforms",
"prepack": "{{#eq packageSpec.library.lang compare="ts"}}tsc && {{/eq}}neon update",
"version": "neon bump --binaries platforms && git add ."{{/if}}
}
4 changes: 2 additions & 2 deletions pkgs/create-neon/data/versions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"neon": "1",
"neonCLI": "0.1.64",
"neonLoad": "0.1.64",
"neonCLI": "0.1.68",
"neonLoad": "0.1.68",
"typescript": "5.3.3",
"typesNode": "20.11.16",
"tsconfigNode": {
Expand Down
8 changes: 8 additions & 0 deletions pkgs/create-neon/test/create-neon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ describe("Project creation", () => {
await fs.rm(PROJECT, { recursive: true, maxRetries: 3 });
});

it("succeeds with --yes", async () => {
try {
await expect(spawn(NODE, [CREATE_NEON, PROJECT, "--yes"]), {});
} catch (error: any) {
assert.fail("create-neon unexpectedly failed: " + error.message);
}
});

it("succeeds with all default answers", async () => {
try {
await expect(spawn(NODE, [CREATE_NEON, PROJECT]), {
Expand Down

0 comments on commit 4091edf

Please sign in to comment.