Skip to content

Commit e408984

Browse files
authored
Fix broken site build (#501)
1 parent 19c8d85 commit e408984

16 files changed

+59
-38
lines changed

package.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@
2121
"version": "changeset version && pnpm install --lockfile-only",
2222
"release": "pnpm copy-readme-to-packages && pnpm build && changeset publish"
2323
},
24-
"workspaces": [
25-
"packages/*",
26-
"test-helpers",
27-
"fixtures/*",
28-
"site",
29-
"examples/*"
30-
],
3124
"preconstruct": {
3225
"packages": [
3326
"packages/*"

pnpm-lock.yaml

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"@vanilla-extract/css": "*",
3636
"@vanilla-extract/css-utils": "*",
3737
"@vanilla-extract/sprinkles": "*",
38+
"@vanilla-extract/webpack-plugin": "*",
3839
"babel-loader": "^8.2.2",
3940
"copy-webpack-plugin": "^8.1.0",
4041
"css-loader": "^5.2.4",

site/src/themes.css.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,16 @@ const tailwindPalette = {
8181
teal800: colors.teal['800'],
8282
teal900: colors.teal['900'],
8383

84-
blue50: colors.lightBlue['50'],
85-
blue100: colors.lightBlue['100'],
86-
blue200: colors.lightBlue['200'],
87-
blue300: colors.lightBlue['300'],
88-
blue400: colors.lightBlue['400'],
89-
blue500: colors.lightBlue['500'],
90-
blue600: colors.lightBlue['600'],
91-
blue700: colors.lightBlue['700'],
92-
blue800: colors.lightBlue['800'],
93-
blue900: colors.lightBlue['900'],
84+
blue50: colors.sky['50'],
85+
blue100: colors.sky['100'],
86+
blue200: colors.sky['200'],
87+
blue300: colors.sky['300'],
88+
blue400: colors.sky['400'],
89+
blue500: colors.sky['500'],
90+
blue600: colors.sky['600'],
91+
blue700: colors.sky['700'],
92+
blue800: colors.sky['800'],
93+
blue900: colors.sky['900'],
9494

9595
pink50: colors.fuchsia['50'],
9696
pink100: colors.fuchsia['100'],

site/webpack.config.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,25 @@ module.exports = [
9292
new CopyPlugin({
9393
patterns: [{ from: join(__dirname, 'src/assets') }],
9494
}),
95-
...(process.env.CI !== 'true'
95+
...(process.env.CI !== 'true' && isProduction
9696
? [
9797
new BundleAnalyzerPlugin({
98+
analyzerMode: 'static',
9899
openAnalyzer: false,
99100
}),
100101
]
101102
: []),
102103
],
103-
stats: 'errors-only',
104+
stats: 'errors-warnings',
104105
},
105106
{
106107
name: 'render',
107108
target: 'node',
108-
externals: [nodeExternals()],
109+
externals: [
110+
nodeExternals({
111+
allowlist: [/^react-syntax-highlighter\/dist\/esm/],
112+
}),
113+
],
109114
output: {
110115
filename: 'render.js',
111116
path: targetDirectory,
@@ -162,6 +167,6 @@ module.exports = [
162167
}),
163168
htmlRenderPlugin.rendererPlugin,
164169
],
165-
stats: 'errors-only',
170+
stats: 'errors-warnings',
166171
},
167172
];

test-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "test-helpers",
2+
"name": "@ve-private/test-helpers",
33
"private": true,
44
"version": "0.0.0",
55
"main": "src/index.ts",

tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "tests",
2+
"name": "@ve-private/tests",
33
"private": true,
44
"version": "0.0.0",
55
"author": "SEEK",
@@ -12,6 +12,6 @@
1212
"@vanilla-extract/dynamic": "*",
1313
"@vanilla-extract/recipes": "*",
1414
"@vanilla-extract/sprinkles": "*",
15-
"test-helpers": "workspace:*"
15+
"@ve-private/test-helpers": "*"
1616
}
1717
}

tests/screenshots/features.playwright.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from '@playwright/test';
2-
import { startFixture, TestServer } from 'test-helpers';
2+
import { startFixture, TestServer } from '@ve-private/test-helpers';
33

44
import test from './fixture';
55

tests/screenshots/recipes.playwright.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from '@playwright/test';
2-
import { startFixture, TestServer } from 'test-helpers';
2+
import { startFixture, TestServer } from '@ve-private/test-helpers';
33

44
import test from './fixture';
55

tests/screenshots/sprinkles.playwright.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from '@playwright/test';
2-
import { startFixture, TestServer } from 'test-helpers';
2+
import { startFixture, TestServer } from '@ve-private/test-helpers';
33

44
import test from './fixture';
55

0 commit comments

Comments
 (0)