Skip to content

Commit b7be7ac

Browse files
committed
no more yarn stuff
1 parent ab70666 commit b7be7ac

File tree

3 files changed

+8
-24
lines changed

3 files changed

+8
-24
lines changed

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ node_modules/
1010
# git worktree
1111
wt-app
1212
wt-diffs
13-
yarn-error.log
14-
.yarn/cache

scripts/new-release.sh

+7-21
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ function generateNewReleaseBranch () {
6666

6767
# clean up before committing for diffing
6868
rm -rf "$AppName"/.git
69-
rm -rf "$AppName"/.yarn
70-
rm -rf "$AppName"/.yarnrc
71-
echo "nodeLinker: node-modules" > "$AppName"/.yarnrc.yml
72-
echo "" >> "$AppName"/.yarnrc.yml
73-
echo "yarnPath: .yarn/releases/yarn-3.6.4.cjs" >> "$AppName"/.yarnrc.yml
74-
npx node-jq '. + {"packageManager": "[email protected]"}' "$AppName"/package.json | npx sponge "$AppName"/package.json
7569

7670
# commit and push branch
7771
git add "$AppName"
@@ -82,7 +76,6 @@ function generateNewReleaseBranch () {
8276

8377
# go back to master
8478
cd ..
85-
git clean -df # cleanup because rn init creates some yarn stuff but on the main directory
8679
rm -rf wt-app
8780
git worktree prune
8881
}
@@ -143,11 +136,6 @@ function pushMaster () {
143136
git push
144137
}
145138

146-
function cleanUpYarnStuff () {
147-
rm -rf .yarn
148-
npx node-jq 'del(.packageManager)' package.json | npx sponge package.json
149-
}
150-
151139
function generateTable () {
152140
head -n "$NumberOfReleases" "$ReleasesFile" | ./scripts/generate-table.js > "$ReadmeTable"
153141
}
@@ -192,16 +180,14 @@ guardExisting
192180

193181
prepare
194182
generateNewReleaseBranch
195-
# addReleaseToList
196-
# generateDiffs
197-
#
198-
# cleanUpYarnStuff
183+
addReleaseToList
184+
generateDiffs
199185

200-
# generateTable
201-
# generateReadme
186+
generateTable
187+
generateReadme
202188

203-
# generateBigTable
204-
# generateGHPages
189+
generateBigTable
190+
generateGHPages
205191

206192
cleanUp
207-
# pushMaster
193+
pushMaster

scripts/remove-something-from-diffs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const removeSomething = async () => {
2121
}
2222

2323
// check on https://regex101.com
24-
const toBeReplaced = /diff --git a\/RnDiffApp\/.yarnrc.yml .*?diff/s
24+
const toBeReplaced = /diff --git a\/RnDiffApp\/.yrc.yml .*?diff/s
2525

2626
replace.sync({
2727
files: fullpath,

0 commit comments

Comments
 (0)