@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/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/index.js
CHANGED
|
@@ -12095,7 +12095,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
12095
12095
|
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");
|
|
12096
12096
|
null != ref2 || (ref2 = _core.types.cloneNode(innerBindingRef));
|
|
12097
12097
|
for (const prop of props) {
|
|
12098
|
-
prop.isClassProperty() &&
|
|
12098
|
+
prop.isClassProperty() && ts.assertFieldTransformed(prop);
|
|
12099
12099
|
const isStatic2 = !(null != _core.types.isStaticBlock && _core.types.isStaticBlock(prop.node)) && prop.node.static, isInstance = !isStatic2, isPrivate = prop.isPrivate(), isPublic = !isPrivate, isField = prop.isProperty(), isMethod = !isField, isStaticBlock = null == prop.isStaticBlock ? void 0 : prop.isStaticBlock();
|
|
12100
12100
|
if (isStatic2 && (classRefFlags |= 1), isStatic2 || isMethod && isPrivate || isStaticBlock) {
|
|
12101
12101
|
new _helperReplaceSupers.default({ methodPath: prop, constantSuper, file, refToPreserve: innerBindingRef, getSuperRef, getObjectRef: () => (classRefFlags |= 2, isStatic2 || isStaticBlock ? classRefForInnerBinding : _core.types.memberExpression(classRefForInnerBinding, _core.types.identifier("prototype"))) }).replace();
|
|
@@ -12198,7 +12198,7 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
12198
12198
|
const body = path11.get("body"), handler = privateFieldsAsProperties ? privateNameHandlerLoose : privateNameHandlerSpec;
|
|
12199
12199
|
(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 });
|
|
12200
12200
|
};
|
|
12201
|
-
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"),
|
|
12201
|
+
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");
|
|
12202
12202
|
function privateNameVisitorFactory(visitor) {
|
|
12203
12203
|
const nestedVisitor = _core.traverse.visitors.merge([Object.assign({}, visitor), _helperEnvironmentVisitor.default]), privateNameVisitor2 = Object.assign({}, visitor, { Class(path11) {
|
|
12204
12204
|
const { privateNamesMap } = this, body = path11.get("body.body"), visiblePrivateNames = new Map(privateNamesMap), redeclared = [];
|
|
@@ -51104,12 +51104,12 @@ var require_node = __commonJS({
|
|
|
51104
51104
|
return !b6(n2) || !Object.prototype.hasOwnProperty.call(n2, "_countQueuingStrategyHighWaterMark") ? false : n2 instanceof Ke2;
|
|
51105
51105
|
}
|
|
51106
51106
|
u3(go, "IsCountQueuingStrategy");
|
|
51107
|
-
function
|
|
51107
|
+
function ts(n2, o) {
|
|
51108
51108
|
ce2(n2, o);
|
|
51109
51109
|
const a2 = n2?.cancel, p2 = n2?.flush, g4 = n2?.readableType, _6 = n2?.start, S6 = n2?.transform, C5 = n2?.writableType;
|
|
51110
51110
|
return { cancel: a2 === void 0 ? void 0 : is2(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 : os3(S6, n2, `${o} has member 'transform' that`), writableType: C5 };
|
|
51111
51111
|
}
|
|
51112
|
-
u3(
|
|
51112
|
+
u3(ts, "convertTransformer");
|
|
51113
51113
|
function rs(n2, o, a2) {
|
|
51114
51114
|
return ee3(n2, a2), (p2) => H6(n2, o, [p2]);
|
|
51115
51115
|
}
|
|
@@ -51129,7 +51129,7 @@ var require_node = __commonJS({
|
|
|
51129
51129
|
const Xr = class Xr {
|
|
51130
51130
|
constructor(o = {}, a2 = {}, p2 = {}) {
|
|
51131
51131
|
o === void 0 && (o = null);
|
|
51132
|
-
const g4 = zt(a2, "Second parameter"), _6 = zt(p2, "Third parameter"), S6 =
|
|
51132
|
+
const g4 = zt(a2, "Second parameter"), _6 = zt(p2, "Third parameter"), S6 = ts(o, "First parameter");
|
|
51133
51133
|
if (S6.readableType !== void 0) throw new RangeError("Invalid readableType specified");
|
|
51134
51134
|
if (S6.writableType !== void 0) throw new RangeError("Invalid writableType specified");
|
|
51135
51135
|
const C5 = lt(_6, 0), q5 = Ot(_6), P5 = lt(g4, 1), W6 = Ot(g4);
|
|
@@ -156789,7 +156789,7 @@ var require_fields = __commonJS({
|
|
|
156789
156789
|
var _helperOptimiseCallExpression = require_lib27();
|
|
156790
156790
|
var _helperAnnotateAsPure = require_lib30();
|
|
156791
156791
|
var _helperSkipTransparentExpressionWrappers = require_lib29();
|
|
156792
|
-
var
|
|
156792
|
+
var ts = require_typescript3();
|
|
156793
156793
|
{
|
|
156794
156794
|
newHelpers = (file) => {
|
|
156795
156795
|
;
|
|
@@ -157688,7 +157688,7 @@ var require_fields = __commonJS({
|
|
|
157688
157688
|
const classRefForInnerBinding = (_ref = ref2) != null ? _ref : props[0].scope.generateUidIdentifier((innerBindingRef == null ? void 0 : innerBindingRef.name) || "Class");
|
|
157689
157689
|
(_ref2 = ref2) != null ? _ref2 : ref2 = _core.types.cloneNode(innerBindingRef);
|
|
157690
157690
|
for (const prop of props) {
|
|
157691
|
-
prop.isClassProperty() &&
|
|
157691
|
+
prop.isClassProperty() && ts.assertFieldTransformed(prop);
|
|
157692
157692
|
const isStatic2 = !(_core.types.isStaticBlock != null && _core.types.isStaticBlock(prop.node)) && prop.node.static;
|
|
157693
157693
|
const isInstance = !isStatic2;
|
|
157694
157694
|
const isPrivate = prop.isPrivate();
|
|
@@ -228436,6 +228436,7 @@ var import_native4 = __toESM(require_native(), 1);
|
|
|
228436
228436
|
var import_devkit7 = require("@nx/devkit");
|
|
228437
228437
|
var import_type_definitions = require("@nx/js/src/plugins/rollup/type-definitions");
|
|
228438
228438
|
var import_buildable_libs_utils = require("@nx/js/src/utils/buildable-libs-utils");
|
|
228439
|
+
var import_ensure_typescript = require("@nx/js/src/utils/typescript/ensure-typescript.js");
|
|
228439
228440
|
var import_generate_package_json = require("@nx/rollup/src/plugins/package-json/generate-package-json");
|
|
228440
228441
|
|
|
228441
228442
|
// 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
|
|
@@ -229894,7 +229895,7 @@ function nodeResolve(opts = {}) {
|
|
|
229894
229895
|
// packages/workspace-tools/src/executors/rollup/utils/get-options.ts
|
|
229895
229896
|
var import_node_fs12 = require("node:fs");
|
|
229896
229897
|
var import_node_path14 = require("node:path");
|
|
229897
|
-
var
|
|
229898
|
+
var import_typescript = require("typescript");
|
|
229898
229899
|
|
|
229899
229900
|
// packages/workspace-tools/src/executors/rollup/utils/normalize-options.ts
|
|
229900
229901
|
var import_devkit6 = require("@nx/devkit");
|
|
@@ -230014,6 +230015,7 @@ function analyze() {
|
|
|
230014
230015
|
}
|
|
230015
230016
|
async function withRollupConfig(rawOptions, rollupConfig = {}, dependencies, config) {
|
|
230016
230017
|
const { writeWarning: writeWarning2, correctPaths: correctPaths2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
230018
|
+
const ts = (0, import_ensure_typescript.ensureTypescript)();
|
|
230017
230019
|
const finalConfig = { ...rollupConfig };
|
|
230018
230020
|
const projectNode = getProjectNode();
|
|
230019
230021
|
const projectRoot = correctPaths2((0, import_node_path14.join)(import_devkit7.workspaceRoot, projectNode.data.root));
|
|
@@ -230262,7 +230264,7 @@ async function createTsCompilerOptions(parsedCommandLine, options, dependencies,
|
|
|
230262
230264
|
skipDefaultLibCheck: true,
|
|
230263
230265
|
paths: compilerOptionPaths
|
|
230264
230266
|
};
|
|
230265
|
-
if (parsedCommandLine.options.module ===
|
|
230267
|
+
if (parsedCommandLine.options.module === import_typescript.ModuleKind.CommonJS) {
|
|
230266
230268
|
compilerOptions["module"] = "ESNext";
|
|
230267
230269
|
}
|
|
230268
230270
|
if (options.compiler === "swc") {
|
|
@@ -230278,9 +230280,9 @@ function convertCopyAssetsToRollupOptions(outputPath, assets) {
|
|
|
230278
230280
|
}
|
|
230279
230281
|
function readCompatibleFormats(config) {
|
|
230280
230282
|
switch (config.options.module) {
|
|
230281
|
-
case
|
|
230282
|
-
case
|
|
230283
|
-
case
|
|
230283
|
+
case import_typescript.ModuleKind.CommonJS:
|
|
230284
|
+
case import_typescript.ModuleKind.UMD:
|
|
230285
|
+
case import_typescript.ModuleKind.AMD:
|
|
230284
230286
|
return ["cjs"];
|
|
230285
230287
|
default:
|
|
230286
230288
|
return ["esm"];
|