@deviceinsight/scale-ui-custom-scripts 6.2.0 → 6.4.0

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/README.md CHANGED
@@ -105,4 +105,20 @@ Run the release script from the repository root:
105
105
 
106
106
  Before running it, make sure the workarea is clean and all commits on `develop` are pushed; otherwise the script aborts.
107
107
  It runs the vulnerability scan and the tests, releases the current version from `package.json` (without `-SNAPSHOT`) and afterwards starts the next minor snapshot version.
108
- The `publish` CI job then publishes the release tag to the public npm registry.
108
+ The `publish` CI job then stages the release tag on the public npm registry.
109
+ It only becomes public once a maintainer approves it, see [Approving a release on npm](#approving-a-release-on-npm).
110
+ `-SNAPSHOT` versions on `develop` are not published.
111
+ For a prerelease, run the manual `publish_alpha` job on a `feature/*` branch: it stages `<version>-alpha.<branch>.<pipeline>` on the public npm registry under the `alpha` tag, or the version in the `VERSION` variable if set.
112
+ Like a release, an alpha must be approved before it can be installed.
113
+
114
+ ### Approving a release on npm
115
+
116
+ The `publish` and `publish_alpha` jobs only stage a version on the public npm registry, because the CI token bypasses 2FA and npm is removing direct publishing for such tokens.
117
+ A staged version cannot be installed until a maintainer approves it with 2FA.
118
+ This requires an npm account with write access to the `@deviceinsight` packages and 2FA enabled.
119
+
120
+ 1. Find the staged version on the Staged Packages page of npmjs.com, or list it with `npm stage list @deviceinsight/scale-ui-custom-scripts`.
121
+ The CI job log also prints its stage id.
122
+ 2. Wait until npm's automated validation has finished; until then the version cannot be approved.
123
+ 3. Approve it on npmjs.com, or with `npm stage approve <stage-id>`.
124
+ 4. Check that it is published under the expected dist-tag with `npm view @deviceinsight/scale-ui-custom-scripts dist-tags`.
@@ -3,12 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const cross_spawn_1 = __importDefault(require("cross-spawn"));
6
7
  const webpack_1 = __importDefault(require("webpack"));
7
- const rimraf_1 = require("rimraf");
8
8
  const webpack_config_1 = __importDefault(require("../webpack.config"));
9
9
  const ncp_1 = __importDefault(require("ncp"));
10
- const targetDir = process.env.REACT_APP_TENANT ? `dist/${process.env.REACT_APP_TENANT}` : './dist';
11
- (0, rimraf_1.rimrafSync)(targetDir);
10
+ const targetDir = process.env.REACT_APP_TENANT ? `dist/${process.env.REACT_APP_TENANT}` : 'dist';
11
+ const rm = cross_spawn_1.default.sync('rm', ['-rf', targetDir], { stdio: 'inherit' });
12
+ if (rm.status !== 0) {
13
+ throw rm.error ?? Error(`rm -rf ${targetDir} failed with exit code ${rm.status}`);
14
+ }
12
15
  const compiler = (0, webpack_1.default)(webpack_config_1.default);
13
16
  compiler.run((err, stats) => {
14
17
  if (err) {
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.js","sourceRoot":"","sources":["../../scripts/bundle.ts"],"names":[],"mappings":";;;;;AAAA,sDAA+C;AAC/C,mCAAkC;AAClC,uEAA8C;AAC9C,8CAAsB;AAEtB,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;AACnG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC;AAEtB,MAAM,QAAQ,GAAG,IAAA,iBAAO,EAAC,wBAA8B,CAAC,CAAC;AACzD,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;IAC3B,IAAI,GAAG,EAAE,CAAC;QACT,MAAM,GAAG,CAAC;IACX,CAAC;IAED,IAAA,aAAG,EAAC,UAAU,EAAE,eAAe,EAAE,GAAG,CAAC,EAAE;QACtC,IAAI,GAAG,EAAE,CAAC;YACT,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;QACxC,CAAC;aAAM,CAAC;YACP,OAAO,CAAC,GAAG,CAAC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CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CACV,KAAK,EAAE,QAAQ,CAAC;QACf,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,IAAI;KACZ,CAAC,CACF,CAAC;AACH,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deviceinsight/scale-ui-custom-scripts",
3
- "version": "6.2.0",
3
+ "version": "6.4.0",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -37,36 +37,35 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@svgr/webpack": "8.1.0",
40
- "axios": "1.20.0",
40
+ "axios": "1.21.1",
41
41
  "chalk": "6.0.1",
42
42
  "cross-spawn": "7.0.6",
43
43
  "css-loader": "7.1.5",
44
- "dotenv": "18.0.7",
44
+ "dotenv": "18.0.10",
45
45
  "express": "5.3.0",
46
46
  "file-loader": "6.2.0",
47
47
  "flat": "6.0.1",
48
48
  "http-proxy": "1.18.1",
49
- "inquirer": "14.2.3",
49
+ "inquirer": "14.3.0",
50
50
  "jsonic": "2.28.0",
51
51
  "less": "4.9.1",
52
- "less-loader": "13.0.0",
53
- "lint-staged": "17.6.0",
52
+ "less-loader": "13.1.0",
53
+ "lint-staged": "17.6.1",
54
54
  "mini-css-extract-plugin": "2.10.2",
55
55
  "ncp": "2.0.0",
56
56
  "open": "11.0.4",
57
- "prettier": "3.9.10",
57
+ "prettier": "3.10.1",
58
58
  "process": "0.11.10",
59
- "qs": "6.16.0",
59
+ "qs": "6.17.1",
60
60
  "reload": "3.4.3",
61
- "rimraf": "6.1.3",
62
- "sass": "1.105.1",
63
- "sass-loader": "17.0.1",
61
+ "sass": "1.108.2",
62
+ "sass-loader": "17.1.0",
64
63
  "style-loader": "4.0.0",
65
64
  "tamper": "1.1.0",
66
65
  "ts-loader": "9.6.2",
67
66
  "tsconfig-paths-webpack-plugin": "4.2.0",
68
- "webpack": "5.111.1",
69
- "webpack-dev-middleware": "8.3.0",
67
+ "webpack": "5.112.2",
68
+ "webpack-dev-middleware": "8.6.1",
70
69
  "webpack-manifest-plugin": "6.0.1"
71
70
  },
72
71
  "devDependencies": {
@@ -74,12 +73,12 @@
74
73
  "@types/express": "5.0.6",
75
74
  "@types/http-proxy": "1.17.17",
76
75
  "@types/ncp": "2.0.8",
77
- "@types/node": "24.19.2",
76
+ "@types/node": "26.6.6",
78
77
  "@types/qs": "6.15.1",
79
78
  "husky": "9.1.7",
80
- "oxlint": "1.88.0",
79
+ "oxlint": "1.93.0",
81
80
  "typescript": "7.0.2",
82
- "vitest": "5.0.4"
81
+ "vitest": "5.1.0"
83
82
  },
84
83
  "overrides": {
85
84
  "browserslist": "^4.16.5",
@@ -89,14 +88,18 @@
89
88
  "minimatch": {
90
89
  "brace-expansion": ">=2.0.3"
91
90
  },
91
+ "nodemon": {
92
+ ".": "~3.1.14",
93
+ "minimatch": "^11.0.1"
94
+ },
92
95
  "path-to-regexp": ">=0.1.13",
93
96
  "picomatch": ">=2.3.2",
94
97
  "svgo": ">=3.3.3",
95
98
  "url-parse": "^1.5.0",
96
- "ws": "^7.4.6",
99
+ "ws": "^8.21.0",
97
100
  "yaml": ">=2.8.3"
98
101
  },
99
102
  "engines": {
100
- "node": "^24.21.0"
103
+ "node": "^26.13.0"
101
104
  }
102
105
  }