@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 +1 -1
- package/dist/plugins/analyze.cjs +8 -0
- package/dist/plugins/analyze.d.cts +8 -0
- package/dist/plugins/analyze.d.ts +8 -0
- package/dist/plugins/analyze.js +8 -0
- package/dist/plugins/on-error.cjs +8 -0
- package/dist/plugins/on-error.d.cts +11 -0
- package/dist/plugins/on-error.d.ts +11 -0
- package/dist/plugins/on-error.js +8 -0
- package/dist/plugins/swc.cjs +27 -0
- package/dist/plugins/swc.d.cts +8 -0
- package/dist/plugins/swc.d.ts +8 -0
- package/dist/plugins/swc.js +27 -0
- package/dist/plugins/tsc.cjs +8 -0
- package/dist/plugins/tsc.d.cts +8 -0
- package/dist/plugins/tsc.d.ts +8 -0
- package/dist/plugins/tsc.js +8 -0
- package/dist/plugins/type-definitions.cjs +7 -0
- package/dist/plugins/type-definitions.d.cts +19 -0
- package/dist/plugins/type-definitions.d.ts +19 -0
- package/dist/plugins/type-definitions.js +7 -0
- package/package.json +1 -4
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 -->
|
|
@@ -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
|
+
"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,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
|
+
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,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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/unbuild",
|
|
3
|
-
"version": "0.31.
|
|
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",
|