Skip to content

Commit 4a3645b

Browse files
committed
chore: updated commands, use plain node
1 parent 121f947 commit 4a3645b

19 files changed

+303
-121
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696

9797
- name: Build Next.js (ISR)
9898
# We want a ISR build on CI to ensure that regular Next.js builds work as expected.
99-
run: pnpm exec turbo build ${{ env.TURBO_ARGS }}
99+
run: npx turbo build ${{ env.TURBO_ARGS }}
100100
env:
101101
# We want to ensure we have enough RAM allocated to the Node.js process
102102
# this should be a last resort in case by any chances the build memory gets too high
@@ -109,7 +109,7 @@ jobs:
109109
# We only run full static builds within Pull Requests. This step is also used to export
110110
# static output in all languages, and it only works on `push` events.
111111
if: github.event_name == 'push'
112-
run: pnpm exec turbo deploy ${{ env.TURBO_ARGS }}
112+
run: npx turbo deploy ${{ env.TURBO_ARGS }}
113113
env:
114114
# We want to ensure we have enough RAM allocated to the Node.js process
115115
# this should be a last resort in case by any chances the build memory gets too high
@@ -128,7 +128,7 @@ jobs:
128128
if: |
129129
(github.event_name == 'pull_request_target' &&
130130
github.event.pull_request.head.ref != 'chore/crowdin')
131-
run: pnpm exec turbo deploy ${{ env.TURBO_ARGS }}
131+
run: npx turbo deploy ${{ env.TURBO_ARGS }}
132132
env:
133133
# We want to ensure we have enough RAM allocated to the Node.js process
134134
# this should be a last resort in case by any chances the build memory gets too high
@@ -149,4 +149,4 @@ jobs:
149149
ORAMA_SECRET_KEY: ${{ github.event_name == 'push' && secrets.ORAMA_PRODUCTION_SECRET_KEY || secrets.ORAMA_SECRET_KEY }}
150150
if: matrix.os == 'ubuntu-latest' && github.event_name != 'merge_group'
151151
working-directory: apps/site
152-
run: pnpm sync-orama
152+
run: node --run sync-orama

.github/workflows/lint-and-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
if: |
9191
(github.event_name == 'push' || github.event_name == 'merge_group') ||
9292
(github.event_name == 'pull_request' && github.event.pull_request.head.ref != 'chore/crowdin')
93-
run: pnpm exec turbo lint check-types prettier
93+
run: npx turbo lint lint:types prettier
9494

9595
- name: Save Lint Cache
9696
# We only want to save caches on `push` events or `pull_request_target` events
@@ -143,7 +143,7 @@ jobs:
143143
- name: Run Unit Tests
144144
# We want to run Unit Tests in every circumstance, including Crowdin PRs and Dependabot PRs to ensure
145145
# that changes to dependencies or translations don't break the Unit Tests
146-
run: pnpm test:ci
146+
run: node --run test:ci
147147

148148
- name: Upload test coverage to Codecov
149149
if: ${{ !cancelled() && github.event_name != 'merge_group' }}

.github/workflows/playwright-cloudflare-open-next.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: Get Playwright version
5757
id: playwright-version
5858
working-directory: apps/site
59-
run: echo "version=$(pnpm exec playwright --version | awk '{print $2}')" >> $GITHUB_OUTPUT
59+
run: echo "version=$(npx playwright --version | awk '{print $2}')" >> $GITHUB_OUTPUT
6060

6161
- name: Cache Playwright browsers
6262
id: playwright-cache
@@ -67,11 +67,11 @@ jobs:
6767

6868
- name: Install Playwright Browsers
6969
working-directory: apps/site
70-
run: pnpm exec playwright install --with-deps
70+
run: npx playwright install --with-deps
7171

7272
- name: Run Playwright tests
7373
working-directory: apps/site
74-
run: pnpm playwright
74+
run: node --run playwright
7575
env:
7676
PLAYWRIGHT_RUN_CLOUDFLARE_PREVIEW: true
7777
PLAYWRIGHT_BASE_URL: http://127.0.0.1:8787

.github/workflows/playwright.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: Get Playwright version
8383
id: playwright-version
8484
working-directory: apps/site
85-
run: echo "version=$(pnpm exec playwright --version | awk '{print $2}')" >> $GITHUB_OUTPUT
85+
run: echo "version=$(npx playwright --version | awk '{print $2}')" >> $GITHUB_OUTPUT
8686

8787
- name: Cache Playwright browsers
8888
id: playwright-cache
@@ -93,11 +93,11 @@ jobs:
9393

9494
- name: Install Playwright Browsers
9595
working-directory: apps/site
96-
run: pnpm exec playwright install --with-deps
96+
run: npx playwright install --with-deps
9797

9898
- name: Run Playwright tests
9999
working-directory: apps/site
100-
run: pnpm playwright
100+
run: node --run playwright
101101
env:
102102
PLAYWRIGHT_BASE_URL: ${{ needs.get-vercel-preview.outputs.url }}
103103

.github/workflows/publish-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
# This ensures we can publish multiple times from the same codebase with unique versions
125125
npm version --no-git-tag-version 1.0.1-$COMMIT_SHA
126126
# Publish the package to the npm registry with public access flag
127-
pnpm publish --access public --no-git-checks
127+
npm publish --access public
128128
129129
- name: Notify on Manual Release
130130
if: ${{ github.event_name == 'workflow_dispatch' }}

.github/workflows/translations-sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ jobs:
109109

110110
- name: Run ESLint
111111
working-directory: apps/site
112-
run: pnpm lint:md --fix
112+
run: node --run lint:md -- --fix
113113

114114
- name: Run Prettier
115-
run: pnpm prettier:fix
115+
run: node --run prettier:fix
116116

117117
- name: Push Changes back to Pull Request
118118
uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403 # v5.2.0

.husky/pre-commit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# lint and format staged files
2-
pnpm exec lint-staged
2+
node --run lint:staged
33

44
# verify typescript fully
5-
pnpm check-types
5+
node --run lint:types

.lintstagedrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"**/*.{js,mjs,ts,tsx,md,mdx}": [
3-
"turbo run lint:lint-staged --",
3+
"node --run lint",
44
"prettier --check --write"
55
],
66
"**/*.css": ["stylelint --allow-empty-input", "prettier --write"],

CONTRIBUTING.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ for getting things done and landing your contribution.
106106

107107
```bash
108108
pnpm install --frozen-lockfile # installs this project's dependencies
109-
pnpm dev # starts a development environment
109+
node --run dev # starts a development environment
110110
```
111111

112112
7. Perform your changes. In case you're unfamiliar with the structure of this repository, we recommend a read on the [Collaborator Guide](./COLLABORATOR_GUIDE.md)
@@ -118,10 +118,10 @@ for getting things done and landing your contribution.
118118
git merge upstream/main
119119
```
120120

121-
9. Run `pnpm format` to confirm that linting and formatting are passing.
121+
9. Run `node --run format` to confirm that linting and formatting are passing.
122122

123123
```bash
124-
pnpm format
124+
node --run format
125125
```
126126

127127
10. Once you're happy with your changes, add and commit them to your branch, then push the branch to your fork.
@@ -152,30 +152,30 @@ This repository contains several scripts and commands for performing numerous ta
152152
<details>
153153
<summary>Commands for Running & Building the Website</summary>
154154

155-
- `pnpm dev` runs Next.js's Local Development Server, listening by default on `http://localhost:3000/`.
156-
- `pnpm build` builds the Application on Production mode. The output is by default within `.next` folder.
155+
- `node --run dev` runs Next.js's Local Development Server, listening by default on `http://localhost:3000/`.
156+
- `node --run build` builds the Application on Production mode. The output is by default within `.next` folder.
157157
- This is used for the Node.js Vercel Deployments (Preview & Production)
158-
- `pnpm deploy` builds the Application on Export Production Mode. The output is by default within `build` folder.
158+
- `node --run deploy` builds the Application on Export Production Mode. The output is by default within `build` folder.
159159
- This is used for the Node.js Legacy Website Server (DigitalOcean)
160-
- `pnpm start` starts a web server running serving the built content from `pnpm build`
160+
- `node --run start` starts a web server running serving the built content from `node --run build`
161161
162162
</details>
163163
164164
<details>
165165
<summary>Commands for Maintenance Tasks and Tests</summary>
166166
167-
- `pnpm lint` runs the linter for all files.
168-
- `pnpm lint:fix` attempts to fix any linting errors
169-
- `pnpm prettier` runs the prettier for all the js files.
170-
- `pnpm prettier:fix` attempts to fix any style errors
171-
- `pnpm format` formats and fixes lints for the whole codebase
172-
- `pnpm scripts:release-post` generates a release post for the current release
173-
- **Usage:** `pnpm scripts:release-post -- --version=vXX.X.X --force`
174-
- `pnpm storybook` starts Storybook's local server
175-
- `pnpm storybook:build` builds Storybook as a static web application for publishing
176-
- `pnpm test` runs all tests locally
177-
- `pnpm test:unit` runs unit-tests locally
178-
- `pnpm test:ci` runs tests, and outputs data to be parsed by a CI environment
167+
- `node --run lint` runs the linter for all files.
168+
- `node --run lint:fix` attempts to fix any linting errors
169+
- `node --run prettier` runs the prettier for all the js files.
170+
- `node --run prettier:fix` attempts to fix any style errors
171+
- `node --run format` formats and fixes lints for the whole codebase
172+
- `node --run scripts:release-post` generates a release post for the current release
173+
- **Usage:** `node --run scripts:release-post -- --version=vXX.X.X --force`
174+
- `node --run storybook` starts Storybook's local server
175+
- `node --run storybook:build` builds Storybook as a static web application for publishing
176+
- `node --run test` runs all tests locally
177+
- `node --run test:unit` runs unit-tests locally
178+
- `node --run test:ci` runs tests, and outputs data to be parsed by a CI environment
179179

180180
</details>
181181

apps/site/eslint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FlatCompat } from '@eslint/eslintrc';
2-
import importX from 'eslint-plugin-import-x';
2+
import { flatConfigs } from 'eslint-plugin-import-x';
33
import * as mdx from 'eslint-plugin-mdx';
44
import react from 'eslint-plugin-react';
55
import tseslint from 'typescript-eslint';
@@ -25,7 +25,7 @@ export default tseslint.config(
2525
extends: [
2626
react.configs.flat['jsx-runtime'],
2727
...tseslint.configs.recommended,
28-
importX.flatConfigs.typescript,
28+
flatConfigs.typescript,
2929
...compatConfig,
3030
],
3131
files: ['**/*.{js,md,mdx,mjs,ts,tsx}'],

0 commit comments

Comments
 (0)