27 lines
1.0 KiB
JavaScript
27 lines
1.0 KiB
JavaScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
const path = require('path');
|
|
const helpers = require('monaco-plugin-helpers');
|
|
|
|
const REPO_ROOT = path.join(__dirname, '../../');
|
|
|
|
helpers.packageESM({
|
|
repoRoot: REPO_ROOT,
|
|
esmSource: 'monaco-css/out/esm',
|
|
esmDestination: 'monaco-css/release/esm',
|
|
entryPoints: ['monaco.contribution.js', 'cssMode.js', 'css.worker.js'],
|
|
resolveAlias: {
|
|
'vscode-nls': path.join(REPO_ROOT, 'monaco-css/out/esm/fillers/vscode-nls.js')
|
|
},
|
|
resolveSkip: ['monaco-editor-core'],
|
|
destinationFolderSimplification: {
|
|
node_modules: '_deps',
|
|
'vscode-languageserver-types/lib/esm': 'vscode-languageserver-types',
|
|
'vscode-uri/lib/esm': 'vscode-uri',
|
|
'vscode-css-languageservice/lib/esm': 'vscode-css-languageservice'
|
|
}
|
|
});
|