Skip to content

Commit 4d3ef64

Browse files
committed
chore: reproduce yarn pnp issue
1 parent 1ff74cc commit 4d3ef64

10 files changed

+35554
-7
lines changed

.github/workflows/release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
- name: Install Dependencies
2626
run: yarn --frozen-lockfile
2727

28+
- name: Prepare Git Hooks
29+
run: yarn prepare
30+
2831
- name: Create Release Pull Request or Publish to npm
2932
id: changesets
3033
uses: changesets/action@v1

.pnp.cjs

+35,191
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.pnp.loader.mjs

+271
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.simple-git-hooks.cjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
module.exports = require('@1stg/simple-git-hooks')
1+
module.exports = {
2+
'pre-commit': 'yarn lint-staged',
3+
'commit-msg': `yarn commitlint -e`,
4+
}

.yarnrc.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
yarnPath: .yarn/releases/yarn-3.2.1.cjs
2-
nodeLinker: node-modules
2+
pnpMode: loose
3+
pnpFallbackMode: all

package.json

+40-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"lint": "run-p 'lint:*'",
7777
"lint:es": "eslint src --cache -f friendly",
7878
"lint:tsc": "tsc --noEmit",
79-
"prepare": "simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0",
79+
"prepare": "simple-git-hooks || exit 0",
8080
"prerelease": "yarn build",
8181
"release": "changeset publish",
8282
"test": "run-p 'test:*'",
@@ -114,18 +114,57 @@
114114
"@types/is-glob": "^4.0.2",
115115
"@types/node": "^18.0.0",
116116
"@types/unist": "^2.0.6",
117+
"commitlint": "^17.0.3",
117118
"dummy.js": "link:dummy.js",
118119
"eslint": "^8.19.0",
119120
"eslint-import-resolver-typescript": "link:.",
120121
"eslint-plugin-import": "^2.26.0",
122+
"esprima": "^4.0.1",
123+
"lint-staged": "^13.0.3",
121124
"npm-run-all": "^4.1.5",
122125
"react": "^18.2.0",
126+
"simple-git-hooks": "^2.8.0",
123127
"type-coverage": "^2.21.2",
124128
"typescript": "^4.7.4"
125129
},
126130
"resolutions": {
127131
"prettier": "^2.7.1"
128132
},
133+
"dependenciesMeta": {
134+
"@1stg/babel-preset@3.1.2": {
135+
"unplugged": true
136+
},
137+
"@1stg/commitlint-config@3.1.2": {
138+
"unplugged": true
139+
},
140+
"@1stg/common-config@5.2.4": {
141+
"unplugged": true
142+
},
143+
"@1stg/eslint-config@5.2.4": {
144+
"unplugged": true
145+
},
146+
"@1stg/lib-config@7.2.4": {
147+
"unplugged": true
148+
},
149+
"@1stg/lint-staged@3.1.3": {
150+
"unplugged": true
151+
},
152+
"@1stg/markuplint-config@2.1.2": {
153+
"unplugged": true
154+
},
155+
"@1stg/prettier-config@3.4.2": {
156+
"unplugged": true
157+
},
158+
"@1stg/remark-config@4.0.2": {
159+
"unplugged": true
160+
},
161+
"@1stg/simple-git-hooks@0.1.4": {
162+
"unplugged": true
163+
},
164+
"@1stg/tsconfig@2.2.2": {
165+
"unplugged": true
166+
}
167+
},
129168
"typeCoverage": {
130169
"atLeast": 100,
131170
"cache": true,

src/.eslintrc

-3
This file was deleted.

src/.eslintrc.cjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: require.resolve('@1stg/eslint-config'),
3+
}

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@1stg/tsconfig/node16.json",
2+
"extends": "@1stg/tsconfig/node16",
33
"compilerOptions": {
44
"baseUrl": ".",
55
"outDir": "lib"

0 commit comments

Comments
 (0)