mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
Run prettier
This commit is contained in:
parent
734e1cb987
commit
9a52545094
9 changed files with 97 additions and 62 deletions
|
|
@ -14,27 +14,36 @@ removeDir(`monaco-json/out`);
|
|||
|
||||
tsc(`monaco-json/src/tsconfig.json`);
|
||||
|
||||
dts(`monaco-json/out/amd/monaco.contribution.d.ts`, `monaco-json/monaco.d.ts`, 'monaco.languages.json');
|
||||
dts(
|
||||
`monaco-json/out/amd/monaco.contribution.d.ts`,
|
||||
`monaco-json/monaco.d.ts`,
|
||||
'monaco.languages.json'
|
||||
);
|
||||
|
||||
esbuild.build({
|
||||
entryPoints: ['src/jsonMode.ts', 'src/json.worker.ts', 'src/monaco.contribution.ts'],
|
||||
bundle: true,
|
||||
target: 'esnext',
|
||||
format: 'esm',
|
||||
external: ['monaco-editor-core', '*/jsonMode'],
|
||||
outdir: 'release/esm/',
|
||||
plugins: [
|
||||
alias({
|
||||
'vscode-nls': path.join(__dirname, '../src/fillers/vscode-nls.ts'),
|
||||
}),
|
||||
],
|
||||
}).then((result) => {
|
||||
if (result.errors.length > 0) {
|
||||
console.error(result.errors);
|
||||
}
|
||||
if (result.warnings.length > 0) {
|
||||
console.error(result.warnings);
|
||||
}
|
||||
esbuild
|
||||
.build({
|
||||
entryPoints: ['src/jsonMode.ts', 'src/json.worker.ts', 'src/monaco.contribution.ts'],
|
||||
bundle: true,
|
||||
target: 'esnext',
|
||||
format: 'esm',
|
||||
external: ['monaco-editor-core', '*/jsonMode'],
|
||||
outdir: 'release/esm/',
|
||||
plugins: [
|
||||
alias({
|
||||
'vscode-nls': path.join(__dirname, '../src/fillers/vscode-nls.ts')
|
||||
})
|
||||
]
|
||||
})
|
||||
.then((result) => {
|
||||
if (result.errors.length > 0) {
|
||||
console.error(result.errors);
|
||||
}
|
||||
if (result.warnings.length > 0) {
|
||||
console.error(result.warnings);
|
||||
}
|
||||
});
|
||||
|
||||
cp.spawnSync(process.execPath, [path.join(__dirname, './bundle.js')], {
|
||||
stdio: 'inherit',
|
||||
stderr: 'inherit'
|
||||
});
|
||||
|
||||
cp.spawnSync(process.execPath, [path.join(__dirname, './bundle.js')], { stdio: 'inherit', stderr: 'inherit' });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue