@storm-software/tsup 0.1.0 → 0.2.0
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 -2
- package/dist/chunk-7BI4SQSF.js +55 -0
- package/dist/chunk-B45SNTGS.js +6 -0
- package/dist/chunk-HXQ4DP27.js +772 -0
- package/dist/chunk-LLANCUPW.js +1712 -0
- package/dist/constants.cjs +732 -0
- package/dist/constants.d.cts +8 -0
- package/dist/constants.d.ts +8 -0
- package/dist/constants.js +7 -0
- package/dist/index.cjs +2318 -138
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +52 -362
- package/dist/options.cjs +2389 -0
- package/dist/options.d.cts +14 -0
- package/dist/options.d.ts +14 -0
- package/dist/options.js +8 -0
- package/dist/types.cjs +18 -0
- package/dist/types.d.cts +12 -0
- package/dist/types.d.ts +12 -0
- package/dist/types.js +2 -0
- package/package.json +42 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BuildOptions, ResolvedBuildOptions } from './types.cjs';
|
|
2
|
+
import '@storm-software/build-tools';
|
|
3
|
+
import 'esbuild';
|
|
4
|
+
import 'tsup';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Apply defaults to the original build options
|
|
8
|
+
*
|
|
9
|
+
* @param userOptions - the original build options provided by the user
|
|
10
|
+
* @returns the build options with defaults applied
|
|
11
|
+
*/
|
|
12
|
+
declare function resolveOptions(userOptions: BuildOptions): Promise<ResolvedBuildOptions>;
|
|
13
|
+
|
|
14
|
+
export { resolveOptions };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BuildOptions, ResolvedBuildOptions } from './types.js';
|
|
2
|
+
import '@storm-software/build-tools';
|
|
3
|
+
import 'esbuild';
|
|
4
|
+
import 'tsup';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Apply defaults to the original build options
|
|
8
|
+
*
|
|
9
|
+
* @param userOptions - the original build options provided by the user
|
|
10
|
+
* @returns the build options with defaults applied
|
|
11
|
+
*/
|
|
12
|
+
declare function resolveOptions(userOptions: BuildOptions): Promise<ResolvedBuildOptions>;
|
|
13
|
+
|
|
14
|
+
export { resolveOptions };
|
package/dist/options.js
ADDED
package/dist/types.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/types.ts
|
|
17
|
+
var types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(types_exports);
|
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TypeScriptBuildOptions } from '@storm-software/build-tools';
|
|
2
|
+
import { TsconfigRaw } from 'esbuild';
|
|
3
|
+
import { Options } from 'tsup';
|
|
4
|
+
|
|
5
|
+
type BuildOptions = Omit<Options, "outDir" | "entryPoints"> & Required<Pick<TypeScriptBuildOptions, "projectRoot">> & Pick<TypeScriptBuildOptions, "outputPath"> & {
|
|
6
|
+
tsconfig?: string | null;
|
|
7
|
+
tsconfigRaw?: TsconfigRaw;
|
|
8
|
+
verbose?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type ResolvedBuildOptions = Options;
|
|
11
|
+
|
|
12
|
+
export type { BuildOptions, ResolvedBuildOptions };
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TypeScriptBuildOptions } from '@storm-software/build-tools';
|
|
2
|
+
import { TsconfigRaw } from 'esbuild';
|
|
3
|
+
import { Options } from 'tsup';
|
|
4
|
+
|
|
5
|
+
type BuildOptions = Omit<Options, "outDir" | "entryPoints"> & Required<Pick<TypeScriptBuildOptions, "projectRoot">> & Pick<TypeScriptBuildOptions, "outputPath"> & {
|
|
6
|
+
tsconfig?: string | null;
|
|
7
|
+
tsconfigRaw?: TsconfigRaw;
|
|
8
|
+
verbose?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type ResolvedBuildOptions = Options;
|
|
11
|
+
|
|
12
|
+
export type { BuildOptions, ResolvedBuildOptions };
|
package/dist/types.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/tsup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing bundled patches for tsup.",
|
|
6
6
|
"repository": {
|
|
@@ -62,12 +62,51 @@
|
|
|
62
62
|
},
|
|
63
63
|
"default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
|
|
64
64
|
},
|
|
65
|
+
"./types": {
|
|
66
|
+
"import": { "types": "./dist/types.d.ts", "default": "./dist/types.js" },
|
|
67
|
+
"require": {
|
|
68
|
+
"types": "./dist/types.d.cts",
|
|
69
|
+
"default": "./dist/types.cjs"
|
|
70
|
+
},
|
|
71
|
+
"default": { "types": "./dist/types.d.ts", "default": "./dist/types.js" }
|
|
72
|
+
},
|
|
73
|
+
"./constants": {
|
|
74
|
+
"import": {
|
|
75
|
+
"types": "./dist/constants.d.ts",
|
|
76
|
+
"default": "./dist/constants.js"
|
|
77
|
+
},
|
|
78
|
+
"require": {
|
|
79
|
+
"types": "./dist/constants.d.cts",
|
|
80
|
+
"default": "./dist/constants.cjs"
|
|
81
|
+
},
|
|
82
|
+
"default": {
|
|
83
|
+
"types": "./dist/constants.d.ts",
|
|
84
|
+
"default": "./dist/constants.js"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"./options": {
|
|
88
|
+
"import": {
|
|
89
|
+
"types": "./dist/options.d.ts",
|
|
90
|
+
"default": "./dist/options.js"
|
|
91
|
+
},
|
|
92
|
+
"require": {
|
|
93
|
+
"types": "./dist/options.d.cts",
|
|
94
|
+
"default": "./dist/options.cjs"
|
|
95
|
+
},
|
|
96
|
+
"default": {
|
|
97
|
+
"types": "./dist/options.d.ts",
|
|
98
|
+
"default": "./dist/options.js"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
65
101
|
"./*": "./dist/*.cjs"
|
|
66
102
|
},
|
|
67
103
|
"types": "./dist/index.d.ts",
|
|
68
104
|
"files": ["assets/**/*", "dist/**/*"],
|
|
69
105
|
"keywords": ["tsup", "storm", "storm-ops", "storm-software"],
|
|
70
|
-
"dependencies": {
|
|
106
|
+
"dependencies": {
|
|
107
|
+
"@storm-software/build-tools": "^0.158.2",
|
|
108
|
+
"@storm-software/config-tools": "^1.188.2"
|
|
109
|
+
},
|
|
71
110
|
"devDependencies": {
|
|
72
111
|
"@types/node": "^22.10.2",
|
|
73
112
|
"tsup": "8.4.0",
|
|
@@ -75,5 +114,5 @@
|
|
|
75
114
|
},
|
|
76
115
|
"publishConfig": { "access": "public" },
|
|
77
116
|
"sideEffects": false,
|
|
78
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "c64cc32a7697d826c8039a1d5f4742d01d59a592"
|
|
79
118
|
}
|