Skip to content

Commit eb4ca93

Browse files
authored
Merge pull request #7004 from QwikDev/fix-qwik-bin
fix(build): always have qwik binary available
2 parents 600939b + 2b3693f commit eb4ca93

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
"build.watch": "tsm scripts/index.ts --build --qwikcity --watch --dev --platform-binding",
210210
"change": "changeset",
211211
"cli": "pnpm build.cli && node packages/create-qwik/dist/create-qwik.cjs && tsm scripts/validate-cli.ts --copy-local-qwik-dist",
212-
"cli.qwik": "pnpm build.cli && node packages/qwik/dist/qwik-cli.cjs",
212+
"cli.qwik": "pnpm build.cli && packages/qwik/qwik-cli.cjs",
213213
"cli.validate": "tsm scripts/validate-cli.ts",
214214
"deps": "corepack pnpm upgrade -i -r --latest && syncpack fix-mismatches && corepack pnpm dedupe",
215215
"docs.dev": "cd packages/docs && pnpm build.repl-sw && pnpm dev",

packages/qwik/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "1.9.1",
55
"annotation": "This package.json is for internal use in the monorepo, the build actually makes a new package.json for the published package via scripts/package-json.ts",
66
"bin": {
7-
"qwik": "./dist/qwik-cli.cjs"
7+
"qwik": "./qwik-cli.cjs"
88
},
99
"bugs": "https://github.com/QwikDev/qwik/issues",
1010
"contributors": [
@@ -137,7 +137,8 @@
137137
"loader.d.ts",
138138
"optimizer.d.ts",
139139
"server.d.ts",
140-
"testing.d.ts"
140+
"testing.d.ts",
141+
"qwik-cli.cjs"
141142
],
142143
"homepage": "https://qwik.dev/",
143144
"keywords": [

scripts/submodule-cli.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { build } from 'esbuild';
22
import { existsSync, rmSync } from 'node:fs';
33
import { join } from 'node:path';
44
import { copyStartersDir } from './create-qwik-cli';
5-
import { type BuildConfig, copyDir, copyFile, getBanner, nodeTarget } from './util';
5+
import { type BuildConfig, copyDir, getBanner, nodeTarget } from './util';
66

77
/** Builds @builder.io/qwik/cli */
88
export async function submoduleCli(config: BuildConfig) {
@@ -42,11 +42,6 @@ export async function submoduleCli(config: BuildConfig) {
4242
},
4343
});
4444

45-
await copyFile(
46-
join(config.srcQwikDir, submodule, 'qwik.cjs'),
47-
join(config.distQwikPkgDir, 'qwik-cli.cjs')
48-
);
49-
5045
await copyStartersDir(config, config.distQwikPkgDir, ['features', 'adapters']);
5146

5247
const tmplSrc = join(config.startersDir, 'templates');

0 commit comments

Comments
 (0)