/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ //@ts-check const { removeDir, tsc, dts, buildESM2, buildAMD2 } = require('../build/utils'); removeDir(`out`); tsc(`src/tsconfig.json`); dts( `out/amd/css/monaco.contribution.d.ts`, `out/release/css/monaco.d.ts`, 'monaco.languages.css' ); buildESM2({ base: 'css', entryPoints: ['src/css/monaco.contribution.ts', 'src/css/cssMode.ts', 'src/css/css.worker.ts'], external: ['monaco-editor-core', '*/cssMode'] }); buildAMD2({ base: 'css', entryPoint: 'src/css/monaco.contribution.ts', amdModuleId: 'vs/language/css/monaco.contribution', amdDependencies: ['vs/editor/editor.api'] }); buildAMD2({ base: 'css', entryPoint: 'src/css/cssMode.ts', amdModuleId: 'vs/language/css/cssMode' }); buildAMD2({ base: 'css', entryPoint: 'src/css/cssWorker.ts', amdModuleId: 'vs/language/css/cssWorker' });