Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge recent 2025.01 updates to main #6035

Merged
merged 8 commits into from
Jan 22, 2025
15 changes: 13 additions & 2 deletions build/gulpfile.reh.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ function packageTask(type, platform, arch, sourceFolderName, destinationFolderNa
// --- Start Positron ---
// Note: The remote/reh-web/package.json is generated/updated in build/npm/postinstall.js
const packageJsonBase = type === 'reh-web' ? 'remote/reh-web' : 'remote';
const packageJsonStream = gulp.src(['remote/package.json'], { base: packageJsonBase })
const packageJsonStream = gulp.src([`${packageJsonBase}/package.json`], { base: packageJsonBase })
// --- End Positron ---
.pipe(json({ name, version, dependencies: undefined, optionalDependencies: undefined, type: 'module' }))
.pipe(es.through(function (file) {
packageJsonContents = file.contents.toString();
Expand Down Expand Up @@ -391,7 +392,9 @@ function packageTask(type, platform, arch, sourceFolderName, destinationFolderNa
].map(resource => gulp.src(resource, { base: '.' }).pipe(rename(resource)));
}

const all = es.merge(
// --- Start Positron ---
let all = es.merge(
// --- End Positron ---
packageJsonStream,
productJsonStream,
license,
Expand All @@ -401,6 +404,14 @@ function packageTask(type, platform, arch, sourceFolderName, destinationFolderNa
...web
);

// --- Start Positron ---
if (type === 'reh-web') {
// External modules (React, etc.)
const moduleSources = gulp.src('src/esm-package-dependencies/**').pipe(rename(function (p) { p.dirname = path.join('out', 'esm-package-dependencies', p.dirname) }));
all = es.merge(all, moduleSources);
}
// --- End Positron ---

let result = all
.pipe(util.skipDirectories())
.pipe(util.fixWin32DirectoryPermissions());
Expand Down
4 changes: 4 additions & 0 deletions build/gulpfile.vscode.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ const positronVersion = (quality && quality !== 'stable') ? `${product.positronV
// --- End Positron ---

const vscodeWebResourceIncludes = [
// --- Start Positron ---
// Positron Help
'out-build/vs/workbench/contrib/positronHelp/browser/resources/help.html',
// --- End Positron ---

// NLS
'out-build/nls.messages.js',
Expand Down
4 changes: 2 additions & 2 deletions extensions/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
"@types/which": "^3.0.0"
},
"overrides": {
"micromatch": "^4.0.6",
"micromatch": "^4.0.8",
"braces": "^3.0.3"
},
"resolutions": {
"micromatch": "^4.0.6",
"micromatch": "^4.0.8",
"braces": "^3.0.3"
},
"main": "./out/npmMain",
Expand Down
Loading
Loading