Skip to content

Commit d0daa3b

Browse files
committed
Refactor playground-cli to maintain consistency across the different clis
1 parent a402f9f commit d0daa3b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+31
-21
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ jobs:
321321
with:
322322
submodules: true
323323
- uses: ./.github/actions/prepare-playground
324-
- run: packages/playground/cli/tests/test-running-unbuilt-cli.sh
324+
- run: packages/playground/cli/src/tests/test-running-unbuilt-cli.sh
325325

326326
build:
327327
runs-on: ubuntu-latest

packages/playground/cli/project.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@
136136
"executor": "@nx/vite:test",
137137
"outputs": ["{workspaceRoot}/coverage/packages/playground/cli"],
138138
"options": {
139-
"passWithNoTests": true,
140139
"reportsDirectory": "../../../coverage/packages/playground/cli"
141140
}
142141
},

packages/playground/cli/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { parseOptionsAndRunCLI } from './run-cli';
1+
import { parseOptionsAndRunCLI } from './lib/run-cli';
22

33
// Do not await this as top-level await is not supported in all environments.
44
parseOptionsAndRunCLI();

packages/playground/cli/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './run-cli';
1+
export * from './lib/run-cli';

packages/playground/cli/src/blueprints-v1/blueprints-v1-handler.ts renamed to packages/playground/cli/src/lib/blueprints-v1/blueprints-v1-handler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export class BlueprintsV1Handler {
5959
import.meta.dirname,
6060
'..',
6161
'..',
62+
'..',
6263
importedWorkerV1UrlString
6364
);
6465
}

packages/playground/cli/src/blueprints-v2/blueprints-v2-handler.ts renamed to packages/playground/cli/src/lib/blueprints-v2/blueprints-v2-handler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export class BlueprintsV2Handler {
4747
import.meta.dirname,
4848
'..',
4949
'..',
50+
'..',
5051
importedWorkerV2UrlString
5152
);
5253
}

packages/playground/cli/src/blueprints-v2/get-v2-runner.ts renamed to packages/playground/cli/src/lib/blueprints-v2/get-v2-runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export async function getV2Runner(): Promise<File> {
1010
* for the new .phar file.
1111
*/
1212
// @ts-ignore
13-
const v2_runner_url = (await import('../../public/blueprints.phar?url'))
13+
const v2_runner_url = (await import('../../../public/blueprints.phar?url'))
1414
.default;
1515

1616
/**

0 commit comments

Comments
 (0)