@storm-software/workspace-tools 1.180.9 → 1.180.10
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 +7 -0
- package/README.md +1 -1
- package/index.js +14 -12
- package/meta.json +1 -1
- package/package.json +8 -3
- package/src/executors/rollup/executor.js +14 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/workspace-tools",
|
|
3
|
-
"version": "1.180.
|
|
3
|
+
"version": "1.180.10",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
|
|
6
6
|
"repository": {
|
|
@@ -57,7 +57,8 @@
|
|
|
57
57
|
"@nx/devkit": "^19.6.4",
|
|
58
58
|
"@nx/esbuild": "^19.6.4",
|
|
59
59
|
"@nx/rollup": "^19.6.2",
|
|
60
|
-
"nx": "^19.6.4"
|
|
60
|
+
"nx": "^19.6.4",
|
|
61
|
+
"typescript": ">=5.5.3"
|
|
61
62
|
},
|
|
62
63
|
"peerDependenciesMeta": {
|
|
63
64
|
"@microsoft/api-extractor": {
|
|
@@ -74,6 +75,9 @@
|
|
|
74
75
|
},
|
|
75
76
|
"nx": {
|
|
76
77
|
"optional": false
|
|
78
|
+
},
|
|
79
|
+
"typescript": {
|
|
80
|
+
"optional": false
|
|
77
81
|
}
|
|
78
82
|
},
|
|
79
83
|
"dependencies": {
|
|
@@ -120,7 +124,8 @@
|
|
|
120
124
|
"@nx/rollup": "^19.6.2",
|
|
121
125
|
"@types/micromatch": "4.0.9",
|
|
122
126
|
"@types/semver": "7.5.8",
|
|
123
|
-
"nx": "^19.6.4"
|
|
127
|
+
"nx": "^19.6.4",
|
|
128
|
+
"typescript": ">=5.5.3"
|
|
124
129
|
},
|
|
125
130
|
"publishConfig": {
|
|
126
131
|
"access": "public"
|
|
@@ -39009,7 +39009,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
39009
39009
|
const getSuperRef = _core.types.isIdentifier(superRef) ? () => superRef : () => (null != injectSuperRef || (injectSuperRef = props[0].scope.generateUidIdentifierBasedOnNode(superRef)), injectSuperRef), classRefForInnerBinding = null != (_ref = ref2) ? _ref : props[0].scope.generateUidIdentifier((null == innerBindingRef ? void 0 : innerBindingRef.name) || "Class");
|
|
39010
39010
|
null != ref2 || (ref2 = _core.types.cloneNode(innerBindingRef));
|
|
39011
39011
|
for (const prop of props) {
|
|
39012
|
-
prop.isClassProperty() &&
|
|
39012
|
+
prop.isClassProperty() && ts.assertFieldTransformed(prop);
|
|
39013
39013
|
const isStatic = !(null != _core.types.isStaticBlock && _core.types.isStaticBlock(prop.node)) && prop.node.static, isInstance = !isStatic, isPrivate = prop.isPrivate(), isPublic = !isPrivate, isField = prop.isProperty(), isMethod = !isField, isStaticBlock = null == prop.isStaticBlock ? void 0 : prop.isStaticBlock();
|
|
39014
39014
|
if (isStatic && (classRefFlags |= 1), isStatic || isMethod && isPrivate || isStaticBlock) {
|
|
39015
39015
|
new _helperReplaceSupers.default({ methodPath: prop, constantSuper, file, refToPreserve: innerBindingRef, getSuperRef, getObjectRef: () => (classRefFlags |= 2, isStatic || isStaticBlock ? classRefForInnerBinding : _core.types.memberExpression(classRefForInnerBinding, _core.types.identifier("prototype"))) }).replace();
|
|
@@ -39112,7 +39112,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
39112
39112
|
const body = path9.get("body"), handler = privateFieldsAsProperties ? privateNameHandlerLoose : privateNameHandlerSpec;
|
|
39113
39113
|
(0, _helperMemberExpressionToFunctions.default)(body, privateNameVisitor, Object.assign({ privateNamesMap, classRef: ref2, file: state }, handler, { noDocumentAll, noUninitializedPrivateFieldAccess, innerBinding })), body.traverse(privateInVisitor, { privateNamesMap, classRef: ref2, file: state, privateFieldsAsProperties, innerBinding });
|
|
39114
39114
|
};
|
|
39115
|
-
var _core = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js"), _helperReplaceSupers = __webpack_require__2("./node_modules/.pnpm/@babel+helper-replace-supers@7.24.7_@babel+core@7.24.7/node_modules/@babel/helper-replace-supers/lib/index.js"), _helperEnvironmentVisitor = __webpack_require__2("./node_modules/.pnpm/@babel+helper-environment-visitor@7.24.7/node_modules/@babel/helper-environment-visitor/lib/index.js"), _helperMemberExpressionToFunctions = __webpack_require__2("./node_modules/.pnpm/@babel+helper-member-expression-to-functions@7.24.7/node_modules/@babel/helper-member-expression-to-functions/lib/index.js"), _helperOptimiseCallExpression = __webpack_require__2("./node_modules/.pnpm/@babel+helper-optimise-call-expression@7.24.7/node_modules/@babel/helper-optimise-call-expression/lib/index.js"), _helperAnnotateAsPure = __webpack_require__2("./node_modules/.pnpm/@babel+helper-annotate-as-pure@7.24.7/node_modules/@babel/helper-annotate-as-pure/lib/index.js"), _helperSkipTransparentExpressionWrappers = __webpack_require__2("./node_modules/.pnpm/@babel+helper-skip-transparent-expression-wrappers@7.24.7/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js"),
|
|
39115
|
+
var _core = __webpack_require__2("./node_modules/.pnpm/@babel+core@7.24.7/node_modules/@babel/core/lib/index.js"), _helperReplaceSupers = __webpack_require__2("./node_modules/.pnpm/@babel+helper-replace-supers@7.24.7_@babel+core@7.24.7/node_modules/@babel/helper-replace-supers/lib/index.js"), _helperEnvironmentVisitor = __webpack_require__2("./node_modules/.pnpm/@babel+helper-environment-visitor@7.24.7/node_modules/@babel/helper-environment-visitor/lib/index.js"), _helperMemberExpressionToFunctions = __webpack_require__2("./node_modules/.pnpm/@babel+helper-member-expression-to-functions@7.24.7/node_modules/@babel/helper-member-expression-to-functions/lib/index.js"), _helperOptimiseCallExpression = __webpack_require__2("./node_modules/.pnpm/@babel+helper-optimise-call-expression@7.24.7/node_modules/@babel/helper-optimise-call-expression/lib/index.js"), _helperAnnotateAsPure = __webpack_require__2("./node_modules/.pnpm/@babel+helper-annotate-as-pure@7.24.7/node_modules/@babel/helper-annotate-as-pure/lib/index.js"), _helperSkipTransparentExpressionWrappers = __webpack_require__2("./node_modules/.pnpm/@babel+helper-skip-transparent-expression-wrappers@7.24.7/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js"), ts = __webpack_require__2("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.24.7_@babel+core@7.24.7/node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js"), newHelpers = (file) => file.availableHelper("classPrivateFieldGet2");
|
|
39116
39116
|
function privateNameVisitorFactory(visitor) {
|
|
39117
39117
|
const nestedVisitor = _core.traverse.visitors.merge([Object.assign({}, visitor), _helperEnvironmentVisitor.default]), privateNameVisitor2 = Object.assign({}, visitor, { Class(path9) {
|
|
39118
39118
|
const { privateNamesMap } = this, body = path9.get("body.body"), visiblePrivateNames = new Map(privateNamesMap), redeclared = [];
|
|
@@ -78018,12 +78018,12 @@ var require_node = __commonJS({
|
|
|
78018
78018
|
return !b6(n2) || !Object.prototype.hasOwnProperty.call(n2, "_countQueuingStrategyHighWaterMark") ? false : n2 instanceof Ke2;
|
|
78019
78019
|
}
|
|
78020
78020
|
u3(go, "IsCountQueuingStrategy");
|
|
78021
|
-
function
|
|
78021
|
+
function ts(n2, o) {
|
|
78022
78022
|
ce2(n2, o);
|
|
78023
78023
|
const a2 = n2?.cancel, p2 = n2?.flush, g4 = n2?.readableType, _6 = n2?.start, S6 = n2?.transform, C5 = n2?.writableType;
|
|
78024
78024
|
return { cancel: a2 === void 0 ? void 0 : is(a2, n2, `${o} has member 'cancel' that`), flush: p2 === void 0 ? void 0 : rs(p2, n2, `${o} has member 'flush' that`), readableType: g4, start: _6 === void 0 ? void 0 : ns(_6, n2, `${o} has member 'start' that`), transform: S6 === void 0 ? void 0 : os2(S6, n2, `${o} has member 'transform' that`), writableType: C5 };
|
|
78025
78025
|
}
|
|
78026
|
-
u3(
|
|
78026
|
+
u3(ts, "convertTransformer");
|
|
78027
78027
|
function rs(n2, o, a2) {
|
|
78028
78028
|
return ee3(n2, a2), (p2) => H6(n2, o, [p2]);
|
|
78029
78029
|
}
|
|
@@ -78043,7 +78043,7 @@ var require_node = __commonJS({
|
|
|
78043
78043
|
const Xr = class Xr {
|
|
78044
78044
|
constructor(o = {}, a2 = {}, p2 = {}) {
|
|
78045
78045
|
o === void 0 && (o = null);
|
|
78046
|
-
const g4 = zt(a2, "Second parameter"), _6 = zt(p2, "Third parameter"), S6 =
|
|
78046
|
+
const g4 = zt(a2, "Second parameter"), _6 = zt(p2, "Third parameter"), S6 = ts(o, "First parameter");
|
|
78047
78047
|
if (S6.readableType !== void 0) throw new RangeError("Invalid readableType specified");
|
|
78048
78048
|
if (S6.writableType !== void 0) throw new RangeError("Invalid writableType specified");
|
|
78049
78049
|
const C5 = lt(_6, 0), q5 = Ot(_6), P5 = lt(g4, 1), W6 = Ot(g4);
|
|
@@ -154041,7 +154041,7 @@ var require_fields = __commonJS({
|
|
|
154041
154041
|
var _helperOptimiseCallExpression = require_lib27();
|
|
154042
154042
|
var _helperAnnotateAsPure = require_lib30();
|
|
154043
154043
|
var _helperSkipTransparentExpressionWrappers = require_lib29();
|
|
154044
|
-
var
|
|
154044
|
+
var ts = require_typescript3();
|
|
154045
154045
|
{
|
|
154046
154046
|
newHelpers = (file) => {
|
|
154047
154047
|
;
|
|
@@ -154940,7 +154940,7 @@ var require_fields = __commonJS({
|
|
|
154940
154940
|
const classRefForInnerBinding = (_ref = ref2) != null ? _ref : props[0].scope.generateUidIdentifier((innerBindingRef == null ? void 0 : innerBindingRef.name) || "Class");
|
|
154941
154941
|
(_ref2 = ref2) != null ? _ref2 : ref2 = _core.types.cloneNode(innerBindingRef);
|
|
154942
154942
|
for (const prop of props) {
|
|
154943
|
-
prop.isClassProperty() &&
|
|
154943
|
+
prop.isClassProperty() && ts.assertFieldTransformed(prop);
|
|
154944
154944
|
const isStatic = !(_core.types.isStaticBlock != null && _core.types.isStaticBlock(prop.node)) && prop.node.static;
|
|
154945
154945
|
const isInstance = !isStatic;
|
|
154946
154946
|
const isPrivate = prop.isPrivate();
|
|
@@ -200450,6 +200450,7 @@ var _isFunction2 = (value2) => {
|
|
|
200450
200450
|
var import_devkit2 = require("@nx/devkit");
|
|
200451
200451
|
var import_type_definitions = require("@nx/js/src/plugins/rollup/type-definitions");
|
|
200452
200452
|
var import_buildable_libs_utils = require("@nx/js/src/utils/buildable-libs-utils");
|
|
200453
|
+
var import_ensure_typescript = require("@nx/js/src/utils/typescript/ensure-typescript.js");
|
|
200453
200454
|
var import_generate_package_json = require("@nx/rollup/src/plugins/package-json/generate-package-json");
|
|
200454
200455
|
|
|
200455
200456
|
// node_modules/.pnpm/@rollup+plugin-babel@6.0.4_@babel+core@7.24.7_@types+babel__core@7.20.5_rollup@4.18.0/node_modules/@rollup/plugin-babel/dist/es/index.js
|
|
@@ -201908,7 +201909,7 @@ function nodeResolve(opts = {}) {
|
|
|
201908
201909
|
// packages/workspace-tools/src/executors/rollup/utils/get-options.ts
|
|
201909
201910
|
var import_node_fs12 = require("node:fs");
|
|
201910
201911
|
var import_node_path13 = require("node:path");
|
|
201911
|
-
var
|
|
201912
|
+
var import_typescript = require("typescript");
|
|
201912
201913
|
|
|
201913
201914
|
// packages/workspace-tools/src/executors/rollup/utils/normalize-options.ts
|
|
201914
201915
|
var import_devkit = require("@nx/devkit");
|
|
@@ -202028,6 +202029,7 @@ function analyze() {
|
|
|
202028
202029
|
}
|
|
202029
202030
|
async function withRollupConfig(rawOptions, rollupConfig = {}, dependencies, config) {
|
|
202030
202031
|
const { writeWarning: writeWarning2, correctPaths: correctPaths2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
202032
|
+
const ts = (0, import_ensure_typescript.ensureTypescript)();
|
|
202031
202033
|
const finalConfig = { ...rollupConfig };
|
|
202032
202034
|
const projectNode = getProjectNode();
|
|
202033
202035
|
const projectRoot = correctPaths2((0, import_node_path13.join)(import_devkit2.workspaceRoot, projectNode.data.root));
|
|
@@ -202276,7 +202278,7 @@ async function createTsCompilerOptions(parsedCommandLine, options, dependencies,
|
|
|
202276
202278
|
skipDefaultLibCheck: true,
|
|
202277
202279
|
paths: compilerOptionPaths
|
|
202278
202280
|
};
|
|
202279
|
-
if (parsedCommandLine.options.module ===
|
|
202281
|
+
if (parsedCommandLine.options.module === import_typescript.ModuleKind.CommonJS) {
|
|
202280
202282
|
compilerOptions["module"] = "ESNext";
|
|
202281
202283
|
}
|
|
202282
202284
|
if (options.compiler === "swc") {
|
|
@@ -202292,9 +202294,9 @@ function convertCopyAssetsToRollupOptions(outputPath, assets) {
|
|
|
202292
202294
|
}
|
|
202293
202295
|
function readCompatibleFormats(config) {
|
|
202294
202296
|
switch (config.options.module) {
|
|
202295
|
-
case
|
|
202296
|
-
case
|
|
202297
|
-
case
|
|
202297
|
+
case import_typescript.ModuleKind.CommonJS:
|
|
202298
|
+
case import_typescript.ModuleKind.UMD:
|
|
202299
|
+
case import_typescript.ModuleKind.AMD:
|
|
202298
202300
|
return ["cjs"];
|
|
202299
202301
|
default:
|
|
202300
202302
|
return ["esm"];
|