Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

chore: convert @ui5/webcomponents-tools to ESM and bump dependencies - #14344

Open
nnaydenow wants to merge 1 commit into
mainfrom
tools-update
Open

nnaydenow wants to merge 1 commit into
mainfrom
tools-update

Conversation

@nnaydenow

Copy link
Copy Markdown
Contributor

Normalize all internal tool scripts to ESM (.mjs files renamed to .js,
"type":"module" in package.json makes .js = ESM). Files consumed externally
via require() or run as CJS subprocesses are kept/renamed to .cjs with
corresponding exports map entries for transparent .js → .cjs redirection.

CJS bridges (renamed to .cjs + exports map):

  • components-package/nps, eslint, wdio
  • icons-collection/nps
  • lib/hbs2lit/ (index + all src files)
  • lib/hbs2ui5/ (index + RenderTemplates/LitRenderer)
  • lib/test-runner/test-runner

ESM normalization (.mjs → .js):

  • lib/cem/ (custom-elements-manifest.config, event, llms, merge, utils)
  • lib/css-processors/ (css-processor-components, css-processor-themes,
    merge-light-dark, postcss-plugin, scope-variables, shared)
  • lib/dev-server/dev-server
  • lib/icons-hash/icons-hash
  • lib/remove-dev-mode/remove-dev-mode
  • lib/vite-bundler/vite-bundler

Internal cleanup:

  • Replace createRequire usages with import.meta.resolve
  • Replace npx wdio with require.resolve(".bin/wdio", {paths:[__dirname]})
    to pick up wdio from tools' own node_modules regardless of hoisting

Dependency bumps:

  • @typescript-eslint/eslint-plugin + parser: ^6.9.0 → ^6.21.0
  • ajv: ^8.12.0 → ^8.20.0
  • comment-parser: ^1.4.0 → ^1.4.11
  • custom-element-jet-brains-integration: ^1.4.4 → ^1.8.0
  • dotenv: ^16.5.0 → ^18.0.10
  • escodegen: ^2.0.0 → ^2.1.0
  • glob-parent: ^6.0.2 → ^7.0.0
  • globby: ^13.1.1 → ^16.2.4
  • handlebars: ^4.7.9 → ^4.7.10
  • ignore: ^7.0.5 → ^7.0.17
  • postcss: ^8.5.26 → ^8.5.34
  • postcss-selector-parser: ^6.0.10 → ^7.2.1
  • properties-reader: ^2.2.0 → ^3.0.1
  • resolve: ^1.20.0 → ^1.22.14

Removed unused dependencies:

  • child_process, command-line-args, cross-env, getopts, glob,
    is-port-reachable, json-beautify, postcss-cli, recursive-readdir,
    slash, vite-plugin-istanbul

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant