Skip to content

Commit 8945a73

Browse files
committed
build: 🏗️ fix build when depending on other packages
1 parent 32fd563 commit 8945a73

File tree

4 files changed

+47
-5
lines changed

4 files changed

+47
-5
lines changed

packages/daisy/project.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"defaultConfiguration": "production",
1111
"options": {
1212
"outputPath": "dist/packages/daisy",
13+
"configFile": "packages/daisy/vite.config.ts",
1314
"mode": "lib"
1415
},
1516
"configurations": {
@@ -30,6 +31,32 @@
3031
"options": {
3132
"lintFilePatterns": ["packages/daisy/**/*.{ts,tsx,js,jsx}"]
3233
}
34+
},
35+
"version": {
36+
"executor": "@jscutlery/semver:version",
37+
"options": {}
38+
},
39+
"version-publish": {
40+
"executor": "@jscutlery/semver:version",
41+
"options": {
42+
"noVerify": true,
43+
"push": true,
44+
"postTargets": ["daisy:publish", "daisy:push-to-github"]
45+
}
46+
},
47+
"publish": {
48+
"executor": "ngx-deploy-npm:deploy",
49+
"options": {
50+
"access": "public",
51+
"distFolderPath": "packages/daisy"
52+
}
53+
},
54+
"push-to-github": {
55+
"executor": "@jscutlery/semver:github",
56+
"options": {
57+
"tag": "${tag}",
58+
"notes": "${notes}"
59+
}
3360
}
3461
},
3562
"tags": []

packages/daisy/vite.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import { join } from 'path';
88

99
export default defineConfig({
1010
plugins: [
11-
qwikVite(),
11+
qwikVite({
12+
vendorRoots: [join(__dirname, '../headless/src')],
13+
}),
1214
tsconfigPaths(),
1315
dts({
1416
tsConfigFilePath: join(__dirname, 'tsconfig.lib.json'),
@@ -23,8 +25,8 @@ export default defineConfig({
2325
lib: {
2426
// Could also be a dictionary or array of multiple entry points.
2527
entry: 'src/index.ts',
26-
name: 'limpy',
27-
fileName: 'index',
28+
name: 'daisy',
29+
fileName: (format) => `index.qwik.${format === 'es' ? 'mjs' : 'cjs'}`,
2830
// Change this to the formats you want to support.
2931
// Don't forgot to update your package.json as well.
3032
formats: ['es', 'cjs'],

packages/material/vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import { join } from 'path';
88

99
export default defineConfig({
1010
plugins: [
11-
qwikVite(),
11+
qwikVite({
12+
vendorRoots: [join(__dirname, '../headless/src')],
13+
}),
1214
tsconfigPaths(),
1315
dts({
1416
tsConfigFilePath: join(__dirname, 'tsconfig.lib.json'),

packages/website/vite.config.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,20 @@ import { defineConfig } from 'vite';
22
import { qwikVite } from '@builder.io/qwik/optimizer';
33
import { qwikCity } from '@builder.io/qwik-city/vite';
44
import tsconfigPaths from 'vite-tsconfig-paths';
5+
import { join } from 'path';
56

67
export default defineConfig(() => {
78
return {
8-
plugins: [qwikCity(), qwikVite(), tsconfigPaths()],
9+
plugins: [
10+
qwikCity(),
11+
qwikVite({
12+
vendorRoots: [
13+
join(__dirname, '../headless/src'),
14+
join(__dirname, '../material/src'),
15+
join(__dirname, '../daisy/src'),
16+
],
17+
}),
18+
tsconfigPaths(),
19+
],
920
};
1021
});

0 commit comments

Comments
 (0)