Skip to content

Commit 40199ef

Browse files
committed
refactor: rename pnpm config from .npmrc to npmrc instead of explicit package.json inclusion
1 parent 8c6554c commit 40199ef

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

.changeset/cyan-buckets-raise.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"create-t3-app": patch
33
---
44

5-
Fix ENOENT error for template/extras/pnpm/.npmrc during ESLint boilerplating by explicitly adding template/extras/pnpm/.npmrc in cli/package.json files.
5+
Fix ENOENT error during ESLint boilerplating by renaming the pnpm configuration file from .npmrc to npmrc to ensure it's included in the published package.

cli/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"files": [
2626
"dist",
2727
"template",
28-
"template/extras/pnpm/.npmrc",
2928
"README.md",
3029
"LICENSE",
3130
"CHANGELOG.md",

cli/src/installers/eslint.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const dynamicEslintInstaller: Installer = ({ projectDir, packages }) => {
4646
// pnpm
4747
const pkgManager = getUserPkgManager();
4848
if (pkgManager === "pnpm") {
49-
const pnpmSrc = path.join(extrasDir, "pnpm/.npmrc");
49+
const pnpmSrc = path.join(extrasDir, "pnpm/npmrc");
5050
fs.copySync(pnpmSrc, path.join(projectDir, ".npmrc"));
5151
}
5252

File renamed without changes.

0 commit comments

Comments
 (0)