Skip to content

Commit 6cd3333

Browse files
committed
fix: correct typos in README and codeInjector, update package.json link path
1 parent 523a541 commit 6cd3333

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Then, in the root of the project, run once:
123123
```
124124
cd adminforth/adminforth
125125
pnpm build
126-
pnpm linl
126+
pnpm link
127127
```
128128

129129
Then, go to testing app, e.g. created with CLI, and use next command:

adminforth/documentation/docs/tutorial/05-ListOfAdapters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Used to send emails
1515
### AWS SES Email Adapter
1616

1717
```
18-
ppnpm i @adminforth/email-adapter-aws-ses
18+
pnpm i @adminforth/email-adapter-aws-ses
1919
```
2020

2121
Enables email delivery via [Amazon Simple Email Service (SES)](https://aws.amazon.com/ses/), suitable for high-volume, programmatic email sending.

adminforth/modules/codeInjector.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,7 @@ class CodeInjector implements ICodeInjector {
777777
afLogger.trace(`🪲Hash file does not exist, proceeding with pnpm install, ${e}`);
778778
}
779779

780+
// install --frozen-lockfile works for npm and pnpm
780781
await this.runPackageManagerShell({command: 'install --frozen-lockfile', cwd: this.spaTmpPath(), envOverrides: {
781782
NODE_ENV: 'development' // otherwise it will not install devDependencies which we still need, e.g for extract
782783
}});
@@ -797,9 +798,9 @@ class CodeInjector implements ICodeInjector {
797798
const allPacksUnique = Array.from(new Set(allPacksFiltered));
798799

799800
if (allPacks.length) {
800-
const pnpmInstallCommand = `install ${allPacksUnique.join(' ')}`;
801+
const packageManagerInstallCommand = `install ${allPacksUnique.join(' ')}`;
801802
await this.runPackageManagerShell({
802-
command: pnpmInstallCommand, cwd: this.spaTmpPath(),
803+
command: packageManagerInstallCommand, cwd: this.spaTmpPath(),
803804
envOverrides: {
804805
NODE_ENV: 'development' // otherwise it will not install devDependencies which we still need, e.g for extract
805806
}

dev-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"license": "ISC",
3030
"dependencies": {
3131
"@prisma/client": "^5.22.0",
32-
"adminforth": "link:../../.local/share/pnpm/global/5/node_modules/adminforth",
32+
"adminforth": "link:../adminforth",
3333
"better-sqlite3": "^10.1.0",
3434
"clickhouse-migrations": "^1.1.1",
3535
"decimal.js": "^10.6.0",

0 commit comments

Comments
 (0)