@storm-software/unbuild 0.31.1 → 0.31.3

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.31.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)
24
+ [![Version](https://img.shields.io/badge/version-0.31.2-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 -->
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkKDTFDJN3cjs = require('../chunk-KDTFDJN3.cjs');
4
+ require('../chunk-LXCK6Y4C.cjs');
5
+ require('../chunk-YDYGZTJK.cjs');
6
+
7
+
8
+ exports.analyzePlugin = _chunkKDTFDJN3cjs.analyzePlugin;
@@ -0,0 +1,8 @@
1
+ import { Plugin } from 'rollup';
2
+ import { UnbuildOptions, UnbuildResolvedOptions } from '../types.cjs';
3
+ import '@storm-software/build-tools';
4
+ import 'unbuild';
5
+
6
+ declare const analyzePlugin: (options: UnbuildOptions, resolvedOptions: UnbuildResolvedOptions) => Plugin;
7
+
8
+ export { analyzePlugin };
@@ -0,0 +1,8 @@
1
+ import { Plugin } from 'rollup';
2
+ import { UnbuildOptions, UnbuildResolvedOptions } from '../types.js';
3
+ import '@storm-software/build-tools';
4
+ import 'unbuild';
5
+
6
+ declare const analyzePlugin: (options: UnbuildOptions, resolvedOptions: UnbuildResolvedOptions) => Plugin;
7
+
8
+ export { analyzePlugin };
@@ -0,0 +1,8 @@
1
+ import {
2
+ analyzePlugin
3
+ } from "../chunk-3Q2ZB7CN.js";
4
+ import "../chunk-VWXW3RW5.js";
5
+ import "../chunk-3GQAWCBQ.js";
6
+ export {
7
+ analyzePlugin
8
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkGVX7LSWKcjs = require('../chunk-GVX7LSWK.cjs');
4
+ require('../chunk-LXCK6Y4C.cjs');
5
+ require('../chunk-YDYGZTJK.cjs');
6
+
7
+
8
+ exports.onErrorPlugin = _chunkGVX7LSWKcjs.onErrorPlugin;
@@ -0,0 +1,11 @@
1
+ import { Plugin } from 'rollup';
2
+ import { UnbuildOptions, UnbuildResolvedOptions } from '../types.cjs';
3
+ import '@storm-software/build-tools';
4
+ import 'unbuild';
5
+
6
+ /**
7
+ * Causes rollup to exit immediately with an error code.
8
+ */
9
+ declare const onErrorPlugin: (options: UnbuildOptions, resolvedOptions: UnbuildResolvedOptions) => Plugin;
10
+
11
+ export { onErrorPlugin };
@@ -0,0 +1,11 @@
1
+ import { Plugin } from 'rollup';
2
+ import { UnbuildOptions, UnbuildResolvedOptions } from '../types.js';
3
+ import '@storm-software/build-tools';
4
+ import 'unbuild';
5
+
6
+ /**
7
+ * Causes rollup to exit immediately with an error code.
8
+ */
9
+ declare const onErrorPlugin: (options: UnbuildOptions, resolvedOptions: UnbuildResolvedOptions) => Plugin;
10
+
11
+ export { onErrorPlugin };
@@ -0,0 +1,8 @@
1
+ import {
2
+ onErrorPlugin
3
+ } from "../chunk-G2BQ6VSR.js";
4
+ import "../chunk-VWXW3RW5.js";
5
+ import "../chunk-3GQAWCBQ.js";
6
+ export {
7
+ onErrorPlugin
8
+ };
@@ -0,0 +1,27 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkYDYGZTJKcjs = require('../chunk-YDYGZTJK.cjs');
5
+
6
+ // src/plugins/swc.ts
7
+ var swcPlugin = /* @__PURE__ */ _chunkYDYGZTJKcjs.__name.call(void 0, (options, resolvedOptions) => {
8
+ const { transform } = _chunkYDYGZTJKcjs.__require.call(void 0, "@swc/core");
9
+ return {
10
+ name: "storm:swc",
11
+ transform(code, filename) {
12
+ return transform(code, {
13
+ filename,
14
+ jsc: {
15
+ transform: {
16
+ react: {
17
+ runtime: "automatic"
18
+ }
19
+ }
20
+ }
21
+ });
22
+ }
23
+ };
24
+ }, "swcPlugin");
25
+
26
+
27
+ exports.swcPlugin = swcPlugin;
@@ -0,0 +1,8 @@
1
+ import { Plugin } from 'rollup';
2
+ import { UnbuildOptions, UnbuildResolvedOptions } from '../types.cjs';
3
+ import '@storm-software/build-tools';
4
+ import 'unbuild';
5
+
6
+ declare const swcPlugin: (options: UnbuildOptions, resolvedOptions: UnbuildResolvedOptions) => Plugin;
7
+
8
+ export { swcPlugin };
@@ -0,0 +1,8 @@
1
+ import { Plugin } from 'rollup';
2
+ import { UnbuildOptions, UnbuildResolvedOptions } from '../types.js';
3
+ import '@storm-software/build-tools';
4
+ import 'unbuild';
5
+
6
+ declare const swcPlugin: (options: UnbuildOptions, resolvedOptions: UnbuildResolvedOptions) => Plugin;
7
+
8
+ export { swcPlugin };
@@ -0,0 +1,27 @@
1
+ import {
2
+ __name,
3
+ __require
4
+ } from "../chunk-3GQAWCBQ.js";
5
+
6
+ // src/plugins/swc.ts
7
+ var swcPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => {
8
+ const { transform } = __require("@swc/core");
9
+ return {
10
+ name: "storm:swc",
11
+ transform(code, filename) {
12
+ return transform(code, {
13
+ filename,
14
+ jsc: {
15
+ transform: {
16
+ react: {
17
+ runtime: "automatic"
18
+ }
19
+ }
20
+ }
21
+ });
22
+ }
23
+ };
24
+ }, "swcPlugin");
25
+ export {
26
+ swcPlugin
27
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk26OHEX55cjs = require('../chunk-26OHEX55.cjs');
4
+ require('../chunk-LXCK6Y4C.cjs');
5
+ require('../chunk-YDYGZTJK.cjs');
6
+
7
+
8
+ exports.tscPlugin = _chunk26OHEX55cjs.tscPlugin;
@@ -0,0 +1,8 @@
1
+ import { Plugin } from 'rollup';
2
+ import { UnbuildOptions, UnbuildResolvedOptions } from '../types.cjs';
3
+ import '@storm-software/build-tools';
4
+ import 'unbuild';
5
+
6
+ declare const tscPlugin: (options: UnbuildOptions, resolvedOptions: UnbuildResolvedOptions) => Promise<Plugin<any>>;
7
+
8
+ export { tscPlugin };
@@ -0,0 +1,8 @@
1
+ import { Plugin } from 'rollup';
2
+ import { UnbuildOptions, UnbuildResolvedOptions } from '../types.js';
3
+ import '@storm-software/build-tools';
4
+ import 'unbuild';
5
+
6
+ declare const tscPlugin: (options: UnbuildOptions, resolvedOptions: UnbuildResolvedOptions) => Promise<Plugin<any>>;
7
+
8
+ export { tscPlugin };
@@ -0,0 +1,8 @@
1
+ import {
2
+ tscPlugin
3
+ } from "../chunk-NYVG7QMW.js";
4
+ import "../chunk-VWXW3RW5.js";
5
+ import "../chunk-3GQAWCBQ.js";
6
+ export {
7
+ tscPlugin
8
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkSHHAZOHNcjs = require('../chunk-SHHAZOHN.cjs');
4
+ require('../chunk-YDYGZTJK.cjs');
5
+
6
+
7
+ exports.typeDefinitions = _chunkSHHAZOHNcjs.typeDefinitions;
@@ -0,0 +1,19 @@
1
+ import { Plugin } from 'rollup';
2
+
3
+ /**
4
+ * This plugin takes all entry-points from the generated bundle and creates a
5
+ * bundled version of corresponding d.ts files.
6
+ *
7
+ * For example, `src/index.ts` generates two corresponding files:
8
+ * - `dist/xyz/index.js`
9
+ * - `dist/xyz/src/index.d.ts`
10
+ *
11
+ * We want a third file: `dist/index.d.ts` that re-exports from `src/index.d.ts`.
12
+ * That way, when TSC or IDEs look for types, it will find them in the right place.
13
+ *
14
+ * @param projectRoot - The root of the project.
15
+ * @returns The Rollup plugin.
16
+ */
17
+ declare function typeDefinitions(projectRoot: string): Plugin;
18
+
19
+ export { typeDefinitions };
@@ -0,0 +1,19 @@
1
+ import { Plugin } from 'rollup';
2
+
3
+ /**
4
+ * This plugin takes all entry-points from the generated bundle and creates a
5
+ * bundled version of corresponding d.ts files.
6
+ *
7
+ * For example, `src/index.ts` generates two corresponding files:
8
+ * - `dist/xyz/index.js`
9
+ * - `dist/xyz/src/index.d.ts`
10
+ *
11
+ * We want a third file: `dist/index.d.ts` that re-exports from `src/index.d.ts`.
12
+ * That way, when TSC or IDEs look for types, it will find them in the right place.
13
+ *
14
+ * @param projectRoot - The root of the project.
15
+ * @returns The Rollup plugin.
16
+ */
17
+ declare function typeDefinitions(projectRoot: string): Plugin;
18
+
19
+ export { typeDefinitions };
@@ -0,0 +1,7 @@
1
+ import {
2
+ typeDefinitions
3
+ } from "../chunk-ESRR2FD2.js";
4
+ import "../chunk-3GQAWCBQ.js";
5
+ export {
6
+ typeDefinitions
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/unbuild",
3
- "version": "0.31.1",
3
+ "version": "0.31.3",
4
4
  "type": "module",
5
5
  "description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -171,9 +171,6 @@
171
171
  "@nx/devkit": "^20.3.1",
172
172
  "@nx/js": "^20.3.1",
173
173
  "@rollup/pluginutils": "^5.1.4",
174
- "@storm-software/build-tools": "0.136.1",
175
- "@storm-software/config": "1.99.1",
176
- "@storm-software/config-tools": "1.142.1",
177
174
  "@swc/core": "1.7.26",
178
175
  "@types/node": "^22.10.2",
179
176
  "commander": "^12.1.0",