Skip to content

Commit 1146f5b

Browse files
committed
Apply package.nls overrides
1 parent 88d6586 commit 1146f5b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/nightly-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Nightly Publish
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, cte/monorepo]
66
workflow_dispatch: # Allows manual triggering.
77

88
env:

apps/vscode-nightly/esbuild.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,19 @@ async function main() {
7474
})
7575

7676
console.log(`[copy-src] Copied ${count} package.nls*.json files to ${buildDir}`)
77+
78+
const nlsPkg = JSON.parse(fs.readFileSync(path.join(srcDir, "package.nls.json"), "utf8"))
79+
80+
const nlsNightlyPkg = JSON.parse(
81+
fs.readFileSync(path.join(__dirname, "package.nls.nightly.json"), "utf8"),
82+
)
83+
84+
fs.writeFileSync(
85+
path.join(buildDir, "package.nls.json"),
86+
JSON.stringify({ ...nlsPkg, ...nlsNightlyPkg }, null, 2),
87+
)
88+
89+
console.log(`[copy-src] Merged production and nightly package.nls.json files`)
7790
})
7891
},
7992
},

0 commit comments

Comments
 (0)