forked from QwikDev/qwik
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- ensure that qwik was built first - ignore dist when running tsc - fake-export qwik/build for types during development - put assets under /assets in the build for cleanliness, the bundled js files go in there too.
- Loading branch information
Showing
5 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// verify that ../qwik/dist/core.d.ts exists or run `pnpm run build.core` in the root directory | ||
// we need it for development and for the REPL | ||
import fs from 'fs'; | ||
import path from 'path'; | ||
import { spawnSync } from 'child_process'; | ||
|
||
const coreDtsPath = path.join(__dirname, '../qwik/dist/core.d.ts'); | ||
if (!fs.existsSync(coreDtsPath)) { | ||
console.warn( | ||
`Missing ${coreDtsPath}. Running 'pnpm run build.core' in the root directory to generate it.` | ||
); | ||
// now run `pnpm run build.core` in the root directory | ||
spawnSync('pnpm', ['run', 'build.core'], { | ||
cwd: path.join(__dirname, '../..'), | ||
stdio: 'inherit', | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ | |
"packageManager": "[email protected]", | ||
"private": true, | ||
"scripts": { | ||
"prebuild": "tsm check-qwik-build.ts", | ||
"build": "qwik build", | ||
"build.client": "vite build", | ||
"build.preview": "vite build --ssr src/entry.preview.tsx", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// re-export to make TS happy when not using nodenext import resolution | ||
export * from '../dist/build'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"include": ["packages/docs"] | ||
"include": ["packages/docs"], | ||
"exclude": ["packages/docs/dist"] | ||
} |