Skip to content

Commit 10239d9

Browse files
committed
win: fix the name match for packagejson
1 parent ed04f96 commit 10239d9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/vscode-extension/src/packager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ export default class Packager {
138138
const fileOrDir = await fs.promises.stat(filename);
139139
const name = filename.replace(this.#projectRoot, '');
140140
if (fileOrDir.isFile()) {
141-
if (name === '/package.json') {
141+
const packageJsonName = process.platform === 'win32' ? '\\package.json' : '/package.json';
142+
if (name === packageJsonName) {
142143
// append the package.json.
143144
this.#outArchive.append(
144145
JSON.stringify(

0 commit comments

Comments
 (0)