pnpm-plugin-storm-software 0.1.99 → 0.1.100

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/pnpmfile.cjs +6 -61
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pnpm-plugin-storm-software",
3
- "version": "0.1.99",
3
+ "version": "0.1.100",
4
4
  "private": false,
5
5
  "description": "A [pnpm](https://pnpm.io/) plugin to enhance pnpm functionality for Storm Software projects.",
6
6
  "repository": {
@@ -26,5 +26,5 @@
26
26
  "tsup": "8.4.0"
27
27
  },
28
28
  "publishConfig": { "access": "public" },
29
- "gitHead": "fdb02933cac978c02a7a8e0e3fb877354ee45ab8"
29
+ "gitHead": "52eec5eeb4692171a30e9232c519036655fcf3b5"
30
30
  }
package/pnpmfile.cjs CHANGED
@@ -19,66 +19,10 @@ var INTERNAL_PACKAGES = [
19
19
  "@earthquake/*",
20
20
  "earthquake"
21
21
  ];
22
-
23
- // ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
24
- function isPlainObject(value) {
25
- if (value === null || typeof value !== "object") {
26
- return false;
27
- }
28
- const prototype = Object.getPrototypeOf(value);
29
- if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
30
- return false;
31
- }
32
- if (Symbol.iterator in value) {
33
- return false;
34
- }
35
- if (Symbol.toStringTag in value) {
36
- return Object.prototype.toString.call(value) === "[object Module]";
37
- }
38
- return true;
39
- }
40
- function _defu(baseObject, defaults, namespace = ".", merger) {
41
- if (!isPlainObject(defaults)) {
42
- return _defu(baseObject, {}, namespace, merger);
43
- }
44
- const object = Object.assign({}, defaults);
45
- for (const key in baseObject) {
46
- if (key === "__proto__" || key === "constructor") {
47
- continue;
48
- }
49
- const value = baseObject[key];
50
- if (value === null || value === void 0) {
51
- continue;
52
- }
53
- if (merger && merger(object, key, value, namespace)) {
54
- continue;
55
- }
56
- if (Array.isArray(value) && Array.isArray(object[key])) {
57
- object[key] = [...value, ...object[key]];
58
- } else if (isPlainObject(value) && isPlainObject(object[key])) {
59
- object[key] = _defu(
60
- value,
61
- object[key],
62
- (namespace ? `${namespace}.` : "") + key.toString(),
63
- merger
64
- );
65
- } else {
66
- object[key] = value;
67
- }
68
- }
69
- return object;
70
- }
71
- function createDefu(merger) {
72
- return (...arguments_) => (
73
- // eslint-disable-next-line unicorn/no-array-reduce
74
- arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
75
- );
76
- }
77
- var defu = createDefu();
78
22
  var config = {
79
23
  hooks: {
80
24
  updateConfig(config2) {
81
- const result = defu(config2, {
25
+ const result = {
82
26
  enableGlobalVirtualStore: true,
83
27
  enablePrePostScripts: false,
84
28
  ignorePatchFailures: false,
@@ -93,15 +37,16 @@ var config = {
93
37
  dedupePeerDependents: true,
94
38
  useNodeVersion: "25.5.0",
95
39
  minimumReleaseAge: 800,
96
- minimumReleaseAgeExclude: [...INTERNAL_PACKAGES]
97
- });
40
+ minimumReleaseAgeExclude: [...INTERNAL_PACKAGES],
41
+ ...config2
42
+ };
98
43
  if (result.hoistPattern?.length === 1 && result.hoistPattern[0] === "*") {
99
44
  result.hoistPattern = [];
100
45
  }
101
- config2.extraEnv.NODE_OPTIONS = `${process.env.NODE_OPTIONS ? `${process.env.NODE_OPTIONS} ` : ""}--import=data:text/javascript,${encodeURIComponent(
46
+ result.extraEnv.NODE_OPTIONS = `${process.env.NODE_OPTIONS ? `${process.env.NODE_OPTIONS} ` : ""}--import=data:text/javascript,${encodeURIComponent(
102
47
  `import{register}from'node:module';register('${node_url.pathToFileURL(path__default.default.resolve(__dirname, "esm_loader.mjs")).href}','${node_url.pathToFileURL(path__default.default.resolve("./")).href}');`
103
48
  )}`;
104
- return config2;
49
+ return result;
105
50
  },
106
51
  readPackage(pkg) {
107
52
  for (const [devDepName, devDepRange] of Object.entries(