pnpm-plugin-storm-software 0.1.0 → 0.1.2

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
@@ -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
- [![Version](https://img.shields.io/badge/version-0.0.1-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)
24
+ [![Version](https://img.shields.io/badge/version-0.1.0-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)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pnpm-plugin-storm-software",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "A [pnpm](https://pnpm.io/) plugin to enhance pnpm functionality for Storm Software projects.",
6
6
  "repository": {
@@ -17,16 +17,13 @@
17
17
  "./allow.json": "./allow.json"
18
18
  },
19
19
  "files": ["./pnpmfile.cjs", "./allow.json"],
20
- "dependencies": {
21
- "@pnpm/plugin-better-defaults": "^0.2.1",
22
- "@pnpm/plugin-esm-node-path": "^0.1.2",
23
- "defu": "6.1.4"
24
- },
20
+ "dependencies": { "defu": "6.1.4" },
25
21
  "devDependencies": {
22
+ "@pnpm/plugin-esm-node-path": "^0.1.2",
26
23
  "@pnpm/types": "^1001.0.0",
27
24
  "@types/node": "^24.10.1",
28
25
  "tsup": "8.4.0"
29
26
  },
30
27
  "publishConfig": { "access": "public" },
31
- "gitHead": "090b21b6780b365703ae40f5bcf85305d1cd8001"
28
+ "gitHead": "c129c9cf24e2a0b5c79c2670b13da28bb772e0ee"
32
29
  }
package/pnpmfile.cjs CHANGED
@@ -1,16 +1,77 @@
1
1
  'use strict';
2
2
 
3
- var betterDefaultsPlugin = require('@pnpm/plugin-better-defaults');
4
- var esmNodePathPlugin = require('@pnpm/plugin-esm-node-path');
5
3
  var defu = require('defu');
6
4
 
7
5
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
6
 
9
- var betterDefaultsPlugin__default = /*#__PURE__*/_interopDefault(betterDefaultsPlugin);
10
- var esmNodePathPlugin__default = /*#__PURE__*/_interopDefault(esmNodePathPlugin);
11
7
  var defu__default = /*#__PURE__*/_interopDefault(defu);
12
8
 
9
+ var __create = Object.create;
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __getProtoOf = Object.getPrototypeOf;
14
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
15
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
16
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
17
+ }) : x)(function(x) {
18
+ if (typeof require !== "undefined") return require.apply(this, arguments);
19
+ throw Error('Dynamic require of "' + x + '" is not supported');
20
+ });
21
+ var __esm = (fn, res) => function __init() {
22
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
23
+ };
24
+ var __commonJS = (cb, mod) => function __require2() {
25
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
26
+ };
27
+ var __copyProps = (to, from, except, desc) => {
28
+ if (from && typeof from === "object" || typeof from === "function") {
29
+ for (let key of __getOwnPropNames(from))
30
+ if (!__hasOwnProp.call(to, key) && key !== except)
31
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
32
+ }
33
+ return to;
34
+ };
35
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
36
+ // If the importer is in node compatibility mode or this is not an ESM
37
+ // file that has been converted to a CommonJS file using a Babel-
38
+ // compatible transform (i.e. "__esModule" has not been set), then set
39
+ // "default" to the CommonJS "module.exports" for node compatibility.
40
+ __defProp(target, "default", { value: mod, enumerable: true }) ,
41
+ mod
42
+ ));
43
+
44
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__43fc91a315b32f908dbbc4137dbe8c2e/node_modules/tsup/assets/cjs_shims.js
45
+ var init_cjs_shims = __esm({
46
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__43fc91a315b32f908dbbc4137dbe8c2e/node_modules/tsup/assets/cjs_shims.js"() {
47
+ }
48
+ });
49
+
50
+ // ../../node_modules/.pnpm/@pnpm+plugin-esm-node-path@0.1.2/node_modules/@pnpm/plugin-esm-node-path/pnpmfile.cjs
51
+ var require_pnpmfile = __commonJS({
52
+ "../../node_modules/.pnpm/@pnpm+plugin-esm-node-path@0.1.2/node_modules/@pnpm/plugin-esm-node-path/pnpmfile.cjs"(exports$1, module) {
53
+ init_cjs_shims();
54
+ var path = __require("path");
55
+ var { pathToFileURL } = __require("url");
56
+ module.exports = {
57
+ hooks: {
58
+ updateConfig: (config) => {
59
+ const loaderPath = path.resolve(__dirname, "esm_loader.mjs");
60
+ const loaderUrl = pathToFileURL(loaderPath).href;
61
+ const baseUrl = pathToFileURL(path.resolve("./")).href;
62
+ const registrationCode = `import{register}from'node:module';register('${loaderUrl}','${baseUrl}');`;
63
+ const importFlag = `--import=data:text/javascript,${encodeURIComponent(registrationCode)}`;
64
+ config.extraEnv.NODE_OPTIONS = `${process.env.NODE_OPTIONS ? `${process.env.NODE_OPTIONS} ` : ""}${importFlag}`;
65
+ return config;
66
+ }
67
+ }
68
+ };
69
+ }
70
+ });
71
+
13
72
  // src/pnpmfile.ts
73
+ init_cjs_shims();
74
+ var import_plugin_esm_node_path = __toESM(require_pnpmfile());
14
75
  var pnpmfile_default = {
15
76
  hooks: {
16
77
  updateConfig(config) {
@@ -40,9 +101,7 @@ var pnpmfile_default = {
40
101
  if (result.hoistPattern?.length === 1 && result.hoistPattern[0] === "*") {
41
102
  result.hoistPattern = [];
42
103
  }
43
- return esmNodePathPlugin__default.default.hooks.updateConfig(
44
- betterDefaultsPlugin__default.default.hooks.updateConfig(result)
45
- );
104
+ return import_plugin_esm_node_path.default.hooks.updateConfig(result);
46
105
  },
47
106
  readPackage(pkg) {
48
107
  for (const [devDepName, devDepRange] of Object.entries(