release.js 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /*---------------------------------------------------------------------------------------------
  2. * Copyright (c) Microsoft Corporation. All rights reserved.
  3. * Licensed under the MIT License. See License.txt in the project root for license information.
  4. *--------------------------------------------------------------------------------------------*/
  5. const path = require('path');
  6. const helpers = require('monaco-plugin-helpers');
  7. const REPO_ROOT = path.join(__dirname, '../');
  8. helpers.packageESM({
  9. repoRoot: REPO_ROOT,
  10. esmSource: 'out/esm',
  11. esmDestination: 'release/esm',
  12. entryPoints: [
  13. 'monaco.contribution.js',
  14. 'jsonMode.js',
  15. 'json.worker.js'
  16. ],
  17. resolveAlias: {
  18. 'vscode-nls': path.join(REPO_ROOT, "out/esm/fillers/vscode-nls.js")
  19. },
  20. resolveSkip: [
  21. 'monaco-editor-core'
  22. ],
  23. destinationFolderSimplification: {
  24. 'node_modules': '_deps',
  25. 'jsonc-parser/lib/esm': 'jsonc-parser',
  26. 'vscode-languageserver-types/lib/esm': 'vscode-languageserver-types',
  27. 'vscode-uri/lib/esm': 'vscode-uri',
  28. 'vscode-json-languageservice/lib/esm': 'vscode-json-languageservice'
  29. }
  30. });