Skip to content

Commit 82d9ae2

Browse files
committed
ci: simplify Yarn config copying
Paths are now correctly resolved relative to the config file so we no longer need to override most settings.
1 parent 9f9b28d commit 82d9ae2

3 files changed

Lines changed: 4 additions & 40 deletions

File tree

‎knip.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
metro: false,
2929
workspaces: {
3030
".": {
31-
entry: ["scripts/*.js", "scripts/*.ts"],
31+
entry: ["scripts/*.ts"],
3232
ignoreDependencies: ["@nx/js", "@yarnpkg/*"],
3333
},
3434
"packages/app": {

‎scripts/copy-yarnrc.js‎

Lines changed: 0 additions & 38 deletions
This file was deleted.

‎scripts/install-test-template.sh‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ v=$(cat packages/app/example/package.json | jq '.dependencies["react-native"]' |
4040
node packages/app/scripts/init.mjs --destination template-example --name TemplateExample --version $v $@
4141

4242
pushd template-example 1> /dev/null
43-
node "$script_dir/copy-yarnrc.js" ../.yarnrc.yml
43+
44+
# The rest of the settings are inherited from the root `.yarnrc.yml`
45+
echo "nodeLinker: node-modules" > .yarnrc.yml
4446

4547
# Workaround for NuGet publishing failures
4648
cp ../yarn.lock .

0 commit comments

Comments
 (0)