Skip to content

Commit 63a7aaa

Browse files
committed
refactor(deps): migrate synp version to external-tools.json
- Add synp 1.9.14 to external-tools.json - Update esbuild-shared.mjs to use getExternalToolVersion('synp') - Remove synp from devDependencies and pnpm catalog
1 parent 21e8f26 commit 63a7aaa

File tree

5 files changed

+7
-72
lines changed

5 files changed

+7
-72
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@
137137
"registry-url": "catalog:",
138138
"semver": "catalog:",
139139
"ssri": "catalog:",
140-
"synp": "catalog:",
141140
"taze": "19.9.2",
142141
"terminal-link": "catalog:",
143142
"trash": "catalog:",

packages/cli/external-tools.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,11 @@
3434
"description": "Socket Firewall (sfw)",
3535
"type": "standalone",
3636
"version": "2.0.4"
37+
},
38+
"synp": {
39+
"description": "Tool for converting between yarn.lock and package-lock.json",
40+
"type": "npm",
41+
"package": "synp",
42+
"version": "1.9.14"
3743
}
3844
}

packages/cli/scripts/esbuild-shared.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ export function getInlinedEnvVars() {
142142
}).trim()
143143
} catch {}
144144

145-
// Get dependency versions from package.json devDependencies.
146-
const synpVersion = packageJson.devDependencies?.['synp'] || ''
147-
148145
// Get external tool versions from external-tools.json.
149146
const externalTools = JSON.parse(
150147
readFileSync(path.join(rootPath, 'external-tools.json'), 'utf-8'),
@@ -173,6 +170,7 @@ export function getInlinedEnvVars() {
173170
const pythonVersion = getExternalToolVersion('python')
174171
const sfwVersion = getExternalToolVersion('sfw')
175172
const socketPatchVersion = getExternalToolVersion('socket-patch')
173+
const synpVersion = getExternalToolVersion('synp')
176174

177175
// Build-time constants that can be overridden by environment variables.
178176
const publishedBuild =

pnpm-lock.yaml

Lines changed: 0 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ catalog:
132132
string-width: 8.1.0
133133
string_decoder: 0.10.31
134134
strip-ansi: 7.1.2
135-
synp: 1.9.14
136135
tar-stream: 3.1.7
137136
taze: 19.6.0
138137
terminal-link: 2.1.1

0 commit comments

Comments
 (0)