|
@@ -14,27 +14,36 @@ removeDir(`monaco-html/out`);
|
|
|
|
|
|
tsc(`monaco-html/src/tsconfig.json`);
|
|
|
|
|
|
-dts(`monaco-html/out/amd/monaco.contribution.d.ts`, `monaco-html/monaco.d.ts`, 'monaco.languages.html');
|
|
|
+dts(
|
|
|
+ `monaco-html/out/amd/monaco.contribution.d.ts`,
|
|
|
+ `monaco-html/monaco.d.ts`,
|
|
|
+ 'monaco.languages.html'
|
|
|
+);
|
|
|
|
|
|
-esbuild.build({
|
|
|
- entryPoints: ['src/htmlMode.ts', 'src/html.worker.ts', 'src/monaco.contribution.ts'],
|
|
|
- bundle: true,
|
|
|
- target: 'esnext',
|
|
|
- format: 'esm',
|
|
|
- external: ['monaco-editor-core', '*/htmlMode'],
|
|
|
- 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/htmlMode.ts', 'src/html.worker.ts', 'src/monaco.contribution.ts'],
|
|
|
+ bundle: true,
|
|
|
+ target: 'esnext',
|
|
|
+ format: 'esm',
|
|
|
+ external: ['monaco-editor-core', '*/htmlMode'],
|
|
|
+ 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'
|
|
|
+});
|