pnpm-plugin-storm-software 0.1.98 → 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 (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -3
  3. package/pnpmfile.cjs +13 -70
package/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.1.96-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.1.97-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pnpm-plugin-storm-software",
3
- "version": "0.1.98",
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": {
@@ -20,11 +20,11 @@
20
20
  "files": ["./pnpmfile.cjs", "./esm_loader.mjs", "./allow.json"],
21
21
  "devDependencies": {
22
22
  "@pnpm/types": "^1001.3.0",
23
- "@storm-software/package-constants": "^0.1.1",
23
+ "@storm-software/package-constants": "^0.1.2",
24
24
  "@types/node": "^25.5.0",
25
25
  "defu": "6.1.4",
26
26
  "tsup": "8.4.0"
27
27
  },
28
28
  "publishConfig": { "access": "public" },
29
- "gitHead": "c42d6c0ae19c100006234c16e077e9a189ffcbec"
29
+ "gitHead": "52eec5eeb4692171a30e9232c519036655fcf3b5"
30
30
  }
package/pnpmfile.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var path = require('path');
4
- var url = require('url');
3
+ var path = require('node:path');
4
+ var node_url = require('node:url');
5
5
 
6
6
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
7
 
@@ -19,67 +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
- var pnpmfile_default = {
22
+ var config = {
79
23
  hooks: {
80
- updateConfig(config) {
81
- var _a;
82
- const result = defu(config, {
24
+ updateConfig(config2) {
25
+ const result = {
83
26
  enableGlobalVirtualStore: true,
84
27
  enablePrePostScripts: false,
85
28
  ignorePatchFailures: false,
@@ -94,15 +37,16 @@ var pnpmfile_default = {
94
37
  dedupePeerDependents: true,
95
38
  useNodeVersion: "25.5.0",
96
39
  minimumReleaseAge: 800,
97
- minimumReleaseAgeExclude: [...INTERNAL_PACKAGES]
98
- });
99
- if (((_a = result.hoistPattern) == null ? void 0 : _a.length) === 1 && result.hoistPattern[0] === "*") {
40
+ minimumReleaseAgeExclude: [...INTERNAL_PACKAGES],
41
+ ...config2
42
+ };
43
+ if (result.hoistPattern?.length === 1 && result.hoistPattern[0] === "*") {
100
44
  result.hoistPattern = [];
101
45
  }
102
- config.extraEnv.NODE_OPTIONS = `${process.env.NODE_OPTIONS ? `${process.env.NODE_OPTIONS} ` : ""}--import=data:text/javascript,${encodeURIComponent(
103
- `import{register}from'node:module';register('${url.pathToFileURL(path__default.default.resolve(__dirname, "esm_loader.mjs")).href}','${url.pathToFileURL(path__default.default.resolve("./")).href}');`
46
+ result.extraEnv.NODE_OPTIONS = `${process.env.NODE_OPTIONS ? `${process.env.NODE_OPTIONS} ` : ""}--import=data:text/javascript,${encodeURIComponent(
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}');`
104
48
  )}`;
105
- return config;
49
+ return result;
106
50
  },
107
51
  readPackage(pkg) {
108
52
  for (const [devDepName, devDepRange] of Object.entries(
@@ -121,7 +65,6 @@ var pnpmfile_default = {
121
65
  }
122
66
  }
123
67
  };
68
+ var pnpmfile_default = config;
124
69
 
125
70
  module.exports = pnpmfile_default;
126
-
127
- module.exports = exports.default;