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

Remove vscode specific fields from module's package json #2602

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/scripts/module/prepare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { spawn } from 'bun';
*/
const prepareModule = async () => {
try {
// Set the main field in the package.json to the correct path
const setMain = spawn([
'npm',
'pkg',
Expand All @@ -17,6 +18,18 @@ const prepareModule = async () => {
]);
await setMain;

// Remove vscode specific fields from package.json
const removeBrowser = spawn([
'npm',
'pkg',
'delete',
'browser',
'engines',
'galleryBanner',
'contributes',
]);
await removeBrowser;

//copy readme into root directory
const readmePath = join(process.cwd(), 'src', 'module', 'README.md');
console.log('Copying README.md to root directory...');
Expand Down