@ui5/webcomponents-tools 2.0.0-rc.0 → 2.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.0.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.1...v2.0.0-rc.2) (2024-04-18)
7
+
8
+ **Note:** Version bump only for package @ui5/webcomponents-tools
9
+
10
+
11
+
12
+
13
+
14
+ # [2.0.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.0...v2.0.0-rc.1) (2024-04-11)
15
+
16
+ **Note:** Version bump only for package @ui5/webcomponents-tools
17
+
18
+
19
+
20
+
21
+
6
22
  # [2.0.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.24.0...v2.0.0-rc.0) (2024-04-09)
7
23
 
8
24
 
@@ -100,7 +100,7 @@ const getScripts = (options) => {
100
100
  props: `node "${LIB}/copy-and-watch/index.js" --silent "src/**/*.properties" dist/`,
101
101
  },
102
102
  watch: {
103
- default: `${tsCrossEnv} concurrently "nps watch.templates" "nps watch.typescript" "nps watch.api" "nps watch.src" "nps watch.styles" "nps watch.i18n" "nps watch.props"`,
103
+ default: `${tsCrossEnv} concurrently "nps watch.templates" "nps watch.typescript" "nps watch.src" "nps watch.styles" "nps watch.i18n" "nps watch.props"`,
104
104
  devServer: 'concurrently "nps watch.default" "nps watch.bundle"',
105
105
  src: 'nps "copy.src --watch --safe --skip-initial-copy"',
106
106
  typescript: tsWatchCommandStandalone,
@@ -113,7 +113,6 @@ const getScripts = (options) => {
113
113
  componentStyles: `nps "build.styles.componentStyles -w"`,
114
114
  },
115
115
  templates: 'chokidar "src/**/*.hbs" -c "nps build.templates"',
116
- api: 'nps generateAPI',
117
116
  i18n: 'chokidar "src/i18n/messagebundle.properties" -c "nps build.i18n.defaultsjs"'
118
117
  },
119
118
  start: "nps prepare watch.devServer",
@@ -131,7 +130,7 @@ const getScripts = (options) => {
131
130
  replace: `node "${LIB}/scoping/scope-test-pages.js" test/pages/scoped demo`,
132
131
  },
133
132
  watchWithBundle: 'concurrently "nps scope.watch" "nps scope.bundle" ',
134
- watch: 'concurrently "nps watch.templates" "nps watch.api" "nps watch.src" "nps watch.props" "nps watch.styles"',
133
+ watch: 'concurrently "nps watch.templates" "nps watch.src" "nps watch.props" "nps watch.styles"',
135
134
  bundle: `node ${LIB}/dev-server/dev-server.js ${viteConfig}`,
136
135
  },
137
136
  generateAPI: {
@@ -0,0 +1,26 @@
1
+ const fs = require("fs");
2
+
3
+ /**
4
+ * UI5Elements loads the ssr-dom.js file with a package specifier to use the export conditions
5
+ * in the package.json so that a shim for the dom can be loaded from SSR environments
6
+ * This however makes the TS Checker plugin used for development try to load the file from dist as input
7
+ * This plugin loads an empty file and TS ignores the file completely
8
+ */
9
+
10
+ const ssrDomShimLoader = async () => {
11
+ return {
12
+ name: 'ssr-dom-shim-loader',
13
+ resolveId(id) {
14
+ if (id === "@ui5/webcomponents-base/dist/ssr-dom.js") {
15
+ return "\0shim"
16
+ }
17
+ },
18
+ load(id) {
19
+ if (id === "\0shim") {
20
+ return "";
21
+ }
22
+ }
23
+ }
24
+ };
25
+
26
+ module.exports = ssrDomShimLoader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-tools",
3
- "version": "2.0.0-rc.0",
3
+ "version": "2.0.0-rc.2",
4
4
  "description": "UI5 Web Components: webcomponents.tools",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -80,5 +80,5 @@
80
80
  "esbuild": "^0.19.9",
81
81
  "yargs": "^17.5.1"
82
82
  },
83
- "gitHead": "f07f56dbe228e7d6d5acedeac5284b131acf551a"
83
+ "gitHead": "20d773668ac3ac397868d21593c3d54bc704391c"
84
84
  }