Skip to content

Commit d20970f

Browse files
committed
chore: replace npm commands with pnpm
1 parent 94bf33f commit d20970f

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ pnpm build:sdk
162162

163163
# BUILD SDK AND PUBLISH IT TO THE NPM
164164
cd ../api
165-
npm publish
165+
pnpm publish
166166
```
167167

168168
### 3.3. Test Automation Program
@@ -232,7 +232,7 @@ List of the run commands defined in the [packages/backend/package.json](packages
232232
- `webpack:start`: Start the backend server built by webpack
233233
- `webpack:test`: Run test program to the webpack built
234234

235-
To publish the SDK library, run `npm publish` in the [packages/api](packages/api) directory. The `prepack` script would build everything before the publishing.
235+
To publish the SDK library, run `pnpm publish` in the [packages/api](packages/api) directory. The `prepack` script would build everything before the publishing.
236236

237237
### 4.2. Directories
238238
- [.vscode/launch.json](.vscode/launch.json): Configuration for debugging
@@ -251,4 +251,4 @@ To publish the SDK library, run `npm publish` in the [packages/api](packages/api
251251
- [pnpm-workspace.yaml](pnpm-workspace.yaml): Workspace and catalog configuration of [pnpm](https://pnpm.io)
252252

253253
### 4.3. Related Repositories
254-
> Write the related repositories down.
254+
> Write the related repositories down.

packages/api/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ For the client developers who are connecting to this backend server, [`@ORGANIZA
77
With the SDK, client developers never need to re-define the duplicated API interfaces. Just utilize the provided interfaces and asynchronous functions defined in the SDK. It would be much convenient than any other Rest API solutions.
88

99
```bash
10-
npm install --save @ORGANIZATION/PROJECT-api
10+
pnpm add @ORGANIZATION/PROJECT-api
1111
```
1212

1313

@@ -68,4 +68,4 @@ async function main(): Promise<void> {
6868
);
6969
console.log(question);
7070
}
71-
```
71+
```

packages/backend/src/executable/swagger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const main = async (): Promise<void> => {
1212
try {
1313
execute("git pull");
1414
} catch {}
15-
execute("npm install");
15+
execute("pnpm install");
1616
execute("pnpm build:swagger");
1717
}
1818
const docs = await import("../../packages/api/swagger.json" as any);

packages/backend/src/setup/MySetupWizard.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ export namespace MySetupWizard {
88
"Erron on SetupWizard.schema(): unable to reset database in non-test mode.",
99
);
1010
const execute = (type: string) => (argv: string) =>
11-
cp.execSync(`npx prisma migrate ${type} --schema=prisma/schema ${argv}`, {
12-
stdio: "inherit",
13-
});
11+
cp.execSync(
12+
`pnpm exec prisma migrate ${type} --schema=prisma/schema ${argv}`,
13+
{ stdio: "inherit" },
14+
);
1415
execute("reset")("--force");
1516
execute("dev")("--name init");
1617

0 commit comments

Comments
 (0)