@ui5/webcomponents-tools 0.0.0-96e98c995 → 0.0.0-97c4a1259

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.
@@ -16,7 +16,7 @@ const replaceGlobalCoreUsage = async (srcPath) => {
16
16
 
17
17
  const generate = async () => {
18
18
  const { globby } = await import("globby");
19
- const fileNames = await globby(basePath + "**/*.js");
19
+ const fileNames = await globby(basePath.replace(/\\/g, "/") + "**/*.js");
20
20
  return Promise.all(fileNames.map(replaceGlobalCoreUsage).filter(x => !!x));
21
21
  };
22
22
 
@@ -1,6 +1,7 @@
1
1
  const child_process = require("child_process");
2
2
  const { readFileSync } = require("fs");
3
3
  const path = require("path");
4
+ const fs = require("fs");
4
5
 
5
6
  // search for dev-server port
6
7
  // start in current folder
@@ -23,7 +24,7 @@ while (true) {
23
24
  // check if we are in a monorepo and extract path from package.json
24
25
  let packageRepositoryPath = "";
25
26
  const pkg = require(path.join(process.cwd(), "package.json"));
26
- packageRepositoryPath = pkg.repository.directory;
27
+ packageRepositoryPath = pkg.repository ? pkg.repository.directory : "";
27
28
 
28
29
  // construct base url
29
30
  // use devServerPort if a dev server is running, otherwise let the baseUrl in the wdio config be used
@@ -57,7 +58,14 @@ if (process.argv.length > 3) {
57
58
  restParams = process.argv.slice(2).join(" ");
58
59
  }
59
60
 
61
+ let wdioConfig = "";
62
+ if (fs.existsSync("config/wdio.conf.cjs")) {
63
+ wdioConfig = "config/wdio.conf.cjs";
64
+ } else if (fs.existsSync("config/wdio.conf.js")) {
65
+ wdioConfig = "config/wdio.conf.js";
66
+ }
67
+
60
68
  // run wdio with calculated parameters
61
- const cmd = `yarn cross-env WDIO_LOG_LEVEL=error wdio config/wdio.conf.js ${spec} ${baseUrl} ${restParams}`;
69
+ const cmd = `yarn cross-env WDIO_LOG_LEVEL=error wdio ${wdioConfig} ${spec} ${baseUrl} ${restParams}`;
62
70
  console.log(`executing: ${cmd}`);
63
71
  child_process.execSync(cmd, {stdio: 'inherit'});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-tools",
3
- "version": "0.0.0-96e98c995",
3
+ "version": "0.0.0-97c4a1259",
4
4
  "description": "UI5 Web Components: webcomponents.tools",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -24,7 +24,6 @@
24
24
  "@typescript-eslint/eslint-plugin": "^5.42.1",
25
25
  "@typescript-eslint/parser": "^5.42.1",
26
26
  "@wdio/cli": "^7.19.7",
27
- "@wdio/devtools-service": "^7.19.7",
28
27
  "@wdio/dot-reporter": "^7.19.7",
29
28
  "@wdio/local-runner": "^7.19.7",
30
29
  "@wdio/mocha-framework": "^7.19.7",
@@ -37,7 +36,7 @@
37
36
  "command-line-args": "^5.1.1",
38
37
  "concurrently": "^6.0.0",
39
38
  "cross-env": "^7.0.3",
40
- "cssnano": "^4.1.11",
39
+ "cssnano": "^6.0.1",
41
40
  "escodegen": "^2.0.0",
42
41
  "eslint": "^7.22.0",
43
42
  "eslint-config-airbnb-base": "^14.2.1",
@@ -57,17 +56,24 @@
57
56
  "postcss-cli": "^9.1.0",
58
57
  "postcss-import": "^14.0.2",
59
58
  "postcss-selector-parser": "^6.0.10",
59
+ "prompts": "^2.4.2",
60
60
  "properties-reader": "^2.2.0",
61
61
  "recursive-readdir": "^2.2.2",
62
62
  "resolve": "^1.20.0",
63
63
  "rimraf": "^3.0.2",
64
64
  "slash": "3.0.0",
65
- "vite": "^2.9.12",
65
+ "vite": "^3.0.4",
66
66
  "wdio-chromedriver-service": "^7.3.2",
67
- "zx": "^4.3.0"
67
+ "zx": "^7.2.3"
68
68
  },
69
69
  "peerDependencies": {
70
- "chromedriver": "*"
70
+ "chromedriver": "*",
71
+ "typescript": "^4.9.4"
72
+ },
73
+ "peerDependenciesMeta": {
74
+ "typescript": {
75
+ "optional": true
76
+ }
71
77
  },
72
78
  "devDependencies": {
73
79
  "yargs": "^17.5.1"