Skip to content

Commit

Permalink
build: Replace npm with pnpm for netlify commands
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Sep 9, 2024
1 parent 9676b4e commit 828729d
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ The following steps are necessary to add a new sub-site to the mono-repo:
- [ ] `netlify.toml` - Update the paths in the `command` and the `ignore` field to point to the new site's source directory, e.g.

```toml
command = "npm run build -w sites/newsite"
command = "pnpm --filter newsite run build"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF sites/main-site/src/components sites/main-site/src/layouts sites/newsite"
```

Expand Down
2 changes: 1 addition & 1 deletion sites/configs/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ external_node_modules = ["vscode-oniguruma","shiki"]
node_bundler = "esbuild"
[build]
environment = { NODE_VERSION = "20.4.0" }
command = "npm run build -w sites/configs"
command = "pnpm --filter configs run build"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF sites/main-site/src/components sites/main-site/src/layouts sites/configs"
[[headers]]
for = "/_astro/*"
Expand Down
2 changes: 1 addition & 1 deletion sites/docs/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ external_node_modules = ["vscode-oniguruma","shiki"]
node_bundler = "esbuild"
[build]
environment = { NODE_VERSION = "20.4.0" }
command = "npm run build -w sites/docs"
command = "pnpm --filter docs run build"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF sites/main-site/src/components sites/main-site/src/layouts sites/docs" # don't build if there are no changes
[[headers]]
for = "/_astro/*"
Expand Down
2 changes: 1 addition & 1 deletion sites/docs/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig({
testDir: './tests/',
/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run dev',
// command: 'pnpm run dev',
// url: 'http://localhost:4321/',
// timeout: 120 * 1000,
// reuseExistingServer: false,
Expand Down
2 changes: 1 addition & 1 deletion sites/main-site/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ external_node_modules = ["vscode-oniguruma","shiki"]
node_bundler = "esbuild"
[build]
environment = { NODE_VERSION = "20.4.0" }
command = "npm run build -w sites/main-site"
command = "pnpm --filter main-site run build"
[images]
remote_images = ["https://raw.githubusercontent.com/.*", "https://images.unsplash.com/.*"]
[[headers]]
Expand Down
2 changes: 1 addition & 1 deletion sites/modules-subworkflows/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ external_node_modules = ["vscode-oniguruma","shiki"]
node_bundler = "esbuild"
[build]
environment = { NODE_VERSION = "20.4.0" }
command = "npm run build -w sites/modules-subworkflows"
command = "pnpm --filter modules-subworkflows run build"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF sites/main-site/src/components sites/main-site/src/layouts sites/modules-subworkflows public/components.json"
[[headers]]
for = "/_astro/*"
Expand Down
2 changes: 1 addition & 1 deletion sites/pipeline-results/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ external_node_modules = ["vscode-oniguruma","shiki"]
node_bundler = "esbuild"
[build]
environment = { NODE_VERSION = "20.4.0" }
command = "npm run build -w sites/pipeline-results"
command = "pnpm --filter pipeline-results run build"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF sites/main-site/src/components public/pipelines.json sites/pipeline-results" # don't build if there are no changes
[[headers]]
for = "/_astro/*"
Expand Down
2 changes: 1 addition & 1 deletion sites/pipeline-results/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig({
testDir: './tests/',
/* Run your local dev server before starting the tests */
webServer: {
command: 'npm run dev',
command: 'pnpm run dev',
url: 'http://localhost:4321/',
timeout: 120 * 1000,
reuseExistingServer: false,
Expand Down
2 changes: 1 addition & 1 deletion sites/pipelines/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ external_node_modules = ["vscode-oniguruma", "shiki"]
node_bundler = "esbuild"
[build]
environment = { NODE_VERSION = "20.4.0" }
command = "npm run build -w sites/pipelines"
command = "pnpm --filter pipelines run build"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF sites/main-site/src/components sites/main-site/src/layouts sites/pipelines public/pipelines.json"
[[headers]]
for = "/_astro/*"
Expand Down
2 changes: 1 addition & 1 deletion sites/pipelines/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig({
testDir: './tests/',
/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run dev',
// command: 'pnpm run dev',
// url: 'http://localhost:4321/',
// timeout: 120 * 1000,
// reuseExistingServer: false,
Expand Down

0 comments on commit 828729d

Please sign in to comment.