@visulima/packem 1.0.0-alpha.1

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/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ ## @visulima/packem 1.0.0-alpha.1 (2024-05-24)
2
+
3
+
4
+ ### Features
5
+
6
+ * trying the first version of packem ([fda2efb](https://github.com/visulima/packem/commit/fda2efb5720cc3d97e509d0e4f21a73fe91aa2b5))
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * fixed release ([fc96fd1](https://github.com/visulima/packem/commit/fc96fd15a2a08e30d5126d299de160a714ba46f4))
12
+ * fixed wrong url ([ce508c0](https://github.com/visulima/packem/commit/ce508c076d1bb71e2dab541d73f9bc320a8133f8))
13
+ * trigger a release ([0a09ecb](https://github.com/visulima/packem/commit/0a09ecbd8de5a45209efaf7865b737baf914c015))
package/LICENSE.md ADDED
@@ -0,0 +1,288 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 visulima
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ <!-- DEPENDENCIES -->
24
+
25
+ # Licenses of bundled dependencies
26
+ The published @visulima/packem artifact additionally contains code with the following licenses:
27
+ MIT
28
+
29
+ # Bundled dependencies:
30
+ ## estree-walker
31
+ License: MIT
32
+ By: Rich Harris
33
+ Repository: https://github.com/Rich-Harris/estree-walker
34
+
35
+ > Copyright (c) 2015-20 [these people](https://github.com/Rich-Harris/estree-walker/graphs/contributors)
36
+ >
37
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
38
+ >
39
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
40
+ >
41
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
42
+
43
+ <!-- DEPENDENCIES -->
44
+
45
+ <!-- TYPE_DEPENDENCIES -->
46
+
47
+ # Licenses of bundled types
48
+ The published @visulima/packem artifact additionally contains code with the following licenses:
49
+ Apache-2.0, MIT
50
+
51
+ # Bundled types:
52
+ ## @swc/types
53
+ License: Apache-2.0
54
+ By: 강동윤
55
+ Repository: git+https://github.com/swc-project/swc.git
56
+
57
+ > Apache License
58
+ > Version 2.0, January 2004
59
+ > http://www.apache.org/licenses/
60
+ >
61
+ > TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
62
+ >
63
+ > 1. Definitions.
64
+ >
65
+ > "License" shall mean the terms and conditions for use, reproduction,
66
+ > and distribution as defined by Sections 1 through 9 of this document.
67
+ >
68
+ > "Licensor" shall mean the copyright owner or entity authorized by
69
+ > the copyright owner that is granting the License.
70
+ >
71
+ > "Legal Entity" shall mean the union of the acting entity and all
72
+ > other entities that control, are controlled by, or are under common
73
+ > control with that entity. For the purposes of this definition,
74
+ > "control" means (i) the power, direct or indirect, to cause the
75
+ > direction or management of such entity, whether by contract or
76
+ > otherwise, or (ii) ownership of fifty percent (50%) or more of the
77
+ > outstanding shares, or (iii) beneficial ownership of such entity.
78
+ >
79
+ > "You" (or "Your") shall mean an individual or Legal Entity
80
+ > exercising permissions granted by this License.
81
+ >
82
+ > "Source" form shall mean the preferred form for making modifications,
83
+ > including but not limited to software source code, documentation
84
+ > source, and configuration files.
85
+ >
86
+ > "Object" form shall mean any form resulting from mechanical
87
+ > transformation or translation of a Source form, including but
88
+ > not limited to compiled object code, generated documentation,
89
+ > and conversions to other media types.
90
+ >
91
+ > "Work" shall mean the work of authorship, whether in Source or
92
+ > Object form, made available under the License, as indicated by a
93
+ > copyright notice that is included in or attached to the work
94
+ > (an example is provided in the Appendix below).
95
+ >
96
+ > "Derivative Works" shall mean any work, whether in Source or Object
97
+ > form, that is based on (or derived from) the Work and for which the
98
+ > editorial revisions, annotations, elaborations, or other modifications
99
+ > represent, as a whole, an original work of authorship. For the purposes
100
+ > of this License, Derivative Works shall not include works that remain
101
+ > separable from, or merely link (or bind by name) to the interfaces of,
102
+ > the Work and Derivative Works thereof.
103
+ >
104
+ > "Contribution" shall mean any work of authorship, including
105
+ > the original version of the Work and any modifications or additions
106
+ > to that Work or Derivative Works thereof, that is intentionally
107
+ > submitted to Licensor for inclusion in the Work by the copyright owner
108
+ > or by an individual or Legal Entity authorized to submit on behalf of
109
+ > the copyright owner. For the purposes of this definition, "submitted"
110
+ > means any form of electronic, verbal, or written communication sent
111
+ > to the Licensor or its representatives, including but not limited to
112
+ > communication on electronic mailing lists, source code control systems,
113
+ > and issue tracking systems that are managed by, or on behalf of, the
114
+ > Licensor for the purpose of discussing and improving the Work, but
115
+ > excluding communication that is conspicuously marked or otherwise
116
+ > designated in writing by the copyright owner as "Not a Contribution."
117
+ >
118
+ > "Contributor" shall mean Licensor and any individual or Legal Entity
119
+ > on behalf of whom a Contribution has been received by Licensor and
120
+ > subsequently incorporated within the Work.
121
+ >
122
+ > 2. Grant of Copyright License. Subject to the terms and conditions of
123
+ > this License, each Contributor hereby grants to You a perpetual,
124
+ > worldwide, non-exclusive, no-charge, royalty-free, irrevocable
125
+ > copyright license to reproduce, prepare Derivative Works of,
126
+ > publicly display, publicly perform, sublicense, and distribute the
127
+ > Work and such Derivative Works in Source or Object form.
128
+ >
129
+ > 3. Grant of Patent License. Subject to the terms and conditions of
130
+ > this License, each Contributor hereby grants to You a perpetual,
131
+ > worldwide, non-exclusive, no-charge, royalty-free, irrevocable
132
+ > (except as stated in this section) patent license to make, have made,
133
+ > use, offer to sell, sell, import, and otherwise transfer the Work,
134
+ > where such license applies only to those patent claims licensable
135
+ > by such Contributor that are necessarily infringed by their
136
+ > Contribution(s) alone or by combination of their Contribution(s)
137
+ > with the Work to which such Contribution(s) was submitted. If You
138
+ > institute patent litigation against any entity (including a
139
+ > cross-claim or counterclaim in a lawsuit) alleging that the Work
140
+ > or a Contribution incorporated within the Work constitutes direct
141
+ > or contributory patent infringement, then any patent licenses
142
+ > granted to You under this License for that Work shall terminate
143
+ > as of the date such litigation is filed.
144
+ >
145
+ > 4. Redistribution. You may reproduce and distribute copies of the
146
+ > Work or Derivative Works thereof in any medium, with or without
147
+ > modifications, and in Source or Object form, provided that You
148
+ > meet the following conditions:
149
+ >
150
+ > (a) You must give any other recipients of the Work or
151
+ > Derivative Works a copy of this License; and
152
+ >
153
+ > (b) You must cause any modified files to carry prominent notices
154
+ > stating that You changed the files; and
155
+ >
156
+ > (c) You must retain, in the Source form of any Derivative Works
157
+ > that You distribute, all copyright, patent, trademark, and
158
+ > attribution notices from the Source form of the Work,
159
+ > excluding those notices that do not pertain to any part of
160
+ > the Derivative Works; and
161
+ >
162
+ > (d) If the Work includes a "NOTICE" text file as part of its
163
+ > distribution, then any Derivative Works that You distribute must
164
+ > include a readable copy of the attribution notices contained
165
+ > within such NOTICE file, excluding those notices that do not
166
+ > pertain to any part of the Derivative Works, in at least one
167
+ > of the following places: within a NOTICE text file distributed
168
+ > as part of the Derivative Works; within the Source form or
169
+ > documentation, if provided along with the Derivative Works; or,
170
+ > within a display generated by the Derivative Works, if and
171
+ > wherever such third-party notices normally appear. The contents
172
+ > of the NOTICE file are for informational purposes only and
173
+ > do not modify the License. You may add Your own attribution
174
+ > notices within Derivative Works that You distribute, alongside
175
+ > or as an addendum to the NOTICE text from the Work, provided
176
+ > that such additional attribution notices cannot be construed
177
+ > as modifying the License.
178
+ >
179
+ > You may add Your own copyright statement to Your modifications and
180
+ > may provide additional or different license terms and conditions
181
+ > for use, reproduction, or distribution of Your modifications, or
182
+ > for any such Derivative Works as a whole, provided Your use,
183
+ > reproduction, and distribution of the Work otherwise complies with
184
+ > the conditions stated in this License.
185
+ >
186
+ > 5. Submission of Contributions. Unless You explicitly state otherwise,
187
+ > any Contribution intentionally submitted for inclusion in the Work
188
+ > by You to the Licensor shall be under the terms and conditions of
189
+ > this License, without any additional terms or conditions.
190
+ > Notwithstanding the above, nothing herein shall supersede or modify
191
+ > the terms of any separate license agreement you may have executed
192
+ > with Licensor regarding such Contributions.
193
+ >
194
+ > 6. Trademarks. This License does not grant permission to use the trade
195
+ > names, trademarks, service marks, or product names of the Licensor,
196
+ > except as required for reasonable and customary use in describing the
197
+ > origin of the Work and reproducing the content of the NOTICE file.
198
+ >
199
+ > 7. Disclaimer of Warranty. Unless required by applicable law or
200
+ > agreed to in writing, Licensor provides the Work (and each
201
+ > Contributor provides its Contributions) on an "AS IS" BASIS,
202
+ > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
203
+ > implied, including, without limitation, any warranties or conditions
204
+ > of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
205
+ > PARTICULAR PURPOSE. You are solely responsible for determining the
206
+ > appropriateness of using or redistributing the Work and assume any
207
+ > risks associated with Your exercise of permissions under this License.
208
+ >
209
+ > 8. Limitation of Liability. In no event and under no legal theory,
210
+ > whether in tort (including negligence), contract, or otherwise,
211
+ > unless required by applicable law (such as deliberate and grossly
212
+ > negligent acts) or agreed to in writing, shall any Contributor be
213
+ > liable to You for damages, including any direct, indirect, special,
214
+ > incidental, or consequential damages of any character arising as a
215
+ > result of this License or out of the use or inability to use the
216
+ > Work (including but not limited to damages for loss of goodwill,
217
+ > work stoppage, computer failure or malfunction, or any and all
218
+ > other commercial damages or losses), even if such Contributor
219
+ > has been advised of the possibility of such damages.
220
+ >
221
+ > 9. Accepting Warranty or Additional Liability. While redistributing
222
+ > the Work or Derivative Works thereof, You may choose to offer,
223
+ > and charge a fee for, acceptance of support, warranty, indemnity,
224
+ > or other liability obligations and/or rights consistent with this
225
+ > License. However, in accepting such obligations, You may act only
226
+ > on Your own behalf and on Your sole responsibility, not on behalf
227
+ > of any other Contributor, and only if You agree to indemnify,
228
+ > defend, and hold each Contributor harmless for any liability
229
+ > incurred by, or claims asserted against, such Contributor by reason
230
+ > of your accepting any such warranty or additional liability.
231
+ >
232
+ > END OF TERMS AND CONDITIONS
233
+ >
234
+ > APPENDIX: How to apply the Apache License to your work.
235
+ >
236
+ > To apply the Apache License to your work, attach the following
237
+ > boilerplate notice, with the fields enclosed by brackets "[]"
238
+ > replaced with your own identifying information. (Don't include
239
+ > the brackets!) The text should be enclosed in the appropriate
240
+ > comment syntax for the file format. We also recommend that a
241
+ > file or class name and description of purpose be included on the
242
+ > same "printed page" as the copyright notice for easier
243
+ > identification within third-party archives.
244
+ >
245
+ > Copyright [yyyy] [name of copyright owner]
246
+ >
247
+ > Licensed under the Apache License, Version 2.0 (the "License");
248
+ > you may not use this file except in compliance with the License.
249
+ > You may obtain a copy of the License at
250
+ >
251
+ > http://www.apache.org/licenses/LICENSE-2.0
252
+ >
253
+ > Unless required by applicable law or agreed to in writing, software
254
+ > distributed under the License is distributed on an "AS IS" BASIS,
255
+ > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
256
+ > See the License for the specific language governing permissions and
257
+ > limitations under the License.
258
+
259
+ ---------------------------------------
260
+
261
+ ## ts-essentials
262
+ License: MIT
263
+ By: Krzysztof Kaczor
264
+ Repository: git@github.com:krzkaczor/ts-essentials.git
265
+
266
+ > The MIT License
267
+ >
268
+ > Copyright (c) 2018-2019 Chris Kaczor (github.com/krzkaczor)
269
+ >
270
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
271
+ > of this software and associated documentation files (the "Software"), to deal
272
+ > in the Software without restriction, including without limitation the rights
273
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
274
+ > copies of the Software, and to permit persons to whom the Software is
275
+ > furnished to do so, subject to the following conditions:
276
+ >
277
+ > The above copyright notice and this permission notice shall be included in
278
+ > all copies or substantial portions of the Software.
279
+ >
280
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
281
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
282
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
283
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
284
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
285
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
286
+ > THE SOFTWARE.
287
+
288
+ <!-- TYPE_DEPENDENCIES -->
package/README.md ADDED
@@ -0,0 +1,80 @@
1
+ <div align="center">
2
+ <h3>Visulima packem</h3>
3
+ <p>
4
+ A fast and modern bundler for Node.js and TypeScript.
5
+ </p>
6
+ </div>
7
+
8
+ <br />
9
+
10
+ <div align="center">
11
+
12
+ [![typescript-image]][typescript-url] [![npm-image]][npm-url] [![license-image]][license-url]
13
+
14
+ </div>
15
+
16
+ ---
17
+
18
+ <div align="center">
19
+ <p>
20
+ <sup>
21
+ Daniel Bannert's open source work is supported by the community on <a href="https://github.com/sponsors/prisis">GitHub Sponsors</a>
22
+ </sup>
23
+ </p>
24
+ </div>
25
+
26
+ ---
27
+
28
+ ## Install
29
+
30
+ ```sh
31
+ npm install @visulima/packem
32
+ ```
33
+
34
+ ```sh
35
+ yarn add @visulima/packem
36
+ ```
37
+
38
+ ```sh
39
+ pnpm add @visulima/packem
40
+ ```
41
+
42
+ ## Usage
43
+
44
+ ```typescript
45
+
46
+ ```
47
+
48
+ ## Related
49
+
50
+ - [bunchee](https://github.com/huozhi/bunchee) - Zero config bundler for ECMAScript and TypeScript packages
51
+ - [unbuild](https://github.com/unjs/unbuild) - 📦 An unified javascript build system
52
+ - [pkgroll](https://github.com/privatenumber/pkgroll) - 📦 Zero-config package bundler for Node.js + TypeScript
53
+ - [tsup](https://github.com/egoist/tsup) - The simplest and fastest way to bundle your TypeScript libraries
54
+
55
+ ## Supported Node.js Versions
56
+
57
+ Libraries in this ecosystem make the best effort to track [Node.js’ release schedule](https://github.com/nodejs/release#release-schedule).
58
+ Here’s [a post on why we think this is important](https://medium.com/the-node-js-collection/maintainers-should-consider-following-node-js-release-schedule-ab08ed4de71a).
59
+
60
+ ## Contributing
61
+
62
+ If you would like to help take a look at the [list of issues](https://github.com/visulima/visulima/issues) and check our [Contributing](.github/CONTRIBUTING.md) guild.
63
+
64
+ > **Note:** please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
65
+
66
+ ## Credits
67
+
68
+ - [Daniel Bannert](https://github.com/prisis)
69
+ - [All Contributors](https://github.com/visulima/visulima/graphs/contributors)
70
+
71
+ ## License
72
+
73
+ The visulima pack is open-sourced software licensed under the [MIT][license-url]
74
+
75
+ [typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
76
+ [typescript-url]: "typescript"
77
+ [license-image]: https://img.shields.io/npm/l/@visulima/pack?color=blueviolet&style=for-the-badge
78
+ [license-url]: LICENSE.md "license"
79
+ [npm-image]: https://img.shields.io/npm/v/@visulima/pack/latest.svg?style=for-the-badge&logo=npm
80
+ [npm-url]: https://www.npmjs.com/package/@visulima/pack/v/latest "npm"
package/dist/cli.cjs ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ "use strict";var s=Object.defineProperty;var a=(t,e)=>s(t,"name",{value:e,configurable:!0});const l=require("node:process"),p=require("@visulima/cerebro"),u=require("./create-bundler.cjs");function m(t){return t&&typeof t=="object"&&"default"in t?t.default:t}a(m,"_interopDefaultCompat");const d=m(p),f="@visulima/packem",y="0.0.0";var g=Object.defineProperty,o=a((t,e)=>g(t,"name",{value:e,configurable:!0}),"n");const h=o(t=>{t.addCommand({description:"Demonstrate options required",execute:o(async({options:e})=>{let n="build";e.watch?n="watch":e.jit&&(n="jit");const i={};if(e.env)for(const c of e.env)i[c.key]=c.value;await u(e.dir,n,{cjsInterop:e.cjsInterop,configPath:e.config??void 0,debug:e.debug,replace:{...i},rollup:{esbuild:{minify:e.minify,target:e.target},license:{path:e.license},metafile:e.metafile,...e.analyze?{visualizer:{}}:{visualizer:!1}},sourcemap:e.sourcemap,tsconfigPath:e.tsconfig??void 0})},"execute"),name:"build",options:[{defaultValue:".",description:"The directory to build",name:"dir",type:String},{alias:"t",description:"Environments to support. `target` in tsconfig.json is automatically added. Defaults to the current Node.js version.",name:"target"},{description:"Use a custom config file",name:"config",type:String},{description:"Path to the tsconfig.json file",name:"tsconfig",type:String},{description:"Minify the output",name:"minify",type:Boolean},{description:"Generate sourcemaps (experimental)",name:"sourcemap",type:Boolean},{description:"Watch for changes",name:"watch",type:Boolean},{description:"Stub the package for JIT compilation",name:"jit",type:Boolean},{description:"Compile-time environment variables (eg. --env.NODE_ENV=production)",multiple:!0,name:"env",type:o(e=>{const[n,i]=e.split("=");return{key:n,value:i}},"type")},{defaultValue:!1,description:"Generate meta file (experimental)",name:"metafile",type:Boolean},{description:"Path to the license file",name:"license",type:String},{conflicts:"watch",description:"Visualize and analyze the bundle",name:"analyze",type:Boolean},{description:"CJS interop mode, can export default and named export, (experimental).",name:"cjsInterop",type:Boolean}]})},"createBuildCommand"),r=new d("packem",{packageName:f,packageVersion:y});h(r),r.setDefaultCommand("build"),r.run().catch(t=>{console.error(t.message),l.exit(1)});
package/dist/cli.d.cts ADDED
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/dist/cli.d.mts ADDED
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/dist/cli.d.ts ADDED
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/dist/cli.mjs ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ var s=Object.defineProperty;var c=(t,e)=>s(t,"name",{value:e,configurable:!0});import{exit as p}from"node:process";import l from"@visulima/cerebro";import m from"./create-bundler.mjs";const d="@visulima/packem",u="0.0.0";var f=Object.defineProperty,a=c((t,e)=>f(t,"name",{value:e,configurable:!0}),"n");const y=a(t=>{t.addCommand({description:"Demonstrate options required",execute:a(async({options:e})=>{let i="build";e.watch?i="watch":e.jit&&(i="jit");const n={};if(e.env)for(const r of e.env)n[r.key]=r.value;await m(e.dir,i,{cjsInterop:e.cjsInterop,configPath:e.config??void 0,debug:e.debug,replace:{...n},rollup:{esbuild:{minify:e.minify,target:e.target},license:{path:e.license},metafile:e.metafile,...e.analyze?{visualizer:{}}:{visualizer:!1}},sourcemap:e.sourcemap,tsconfigPath:e.tsconfig??void 0})},"execute"),name:"build",options:[{defaultValue:".",description:"The directory to build",name:"dir",type:String},{alias:"t",description:"Environments to support. `target` in tsconfig.json is automatically added. Defaults to the current Node.js version.",name:"target"},{description:"Use a custom config file",name:"config",type:String},{description:"Path to the tsconfig.json file",name:"tsconfig",type:String},{description:"Minify the output",name:"minify",type:Boolean},{description:"Generate sourcemaps (experimental)",name:"sourcemap",type:Boolean},{description:"Watch for changes",name:"watch",type:Boolean},{description:"Stub the package for JIT compilation",name:"jit",type:Boolean},{description:"Compile-time environment variables (eg. --env.NODE_ENV=production)",multiple:!0,name:"env",type:a(e=>{const[i,n]=e.split("=");return{key:i,value:n}},"type")},{defaultValue:!1,description:"Generate meta file (experimental)",name:"metafile",type:Boolean},{description:"Path to the license file",name:"license",type:String},{conflicts:"watch",description:"Visualize and analyze the bundle",name:"analyze",type:Boolean},{description:"CJS interop mode, can export default and named export, (experimental).",name:"cjsInterop",type:Boolean}]})},"createBuildCommand"),o=new l("packem",{packageName:d,packageVersion:u});y(o),o.setDefaultCommand("build"),o.run().catch(t=>{console.error(t.message),p(1)});
@@ -0,0 +1 @@
1
+ "use strict";var f=Object.defineProperty;var n=(e,i)=>f(e,"name",{value:i,configurable:!0});var t=Object.defineProperty,r=n((e,i)=>t(e,"name",{value:i,configurable:!0}),"i");const a=r(e=>(Array.isArray(e)?e:[e]).filter(Boolean),"defineConfig"),o=r(e=>e,"definePreset");exports.defineConfig=a,exports.definePreset=o;
@@ -0,0 +1,23 @@
1
+ import { B as BuildConfig, a as BuildPreset } from './shared/packem.gPxnaycf.cjs';
2
+ import '@rollup/plugin-alias';
3
+ import '@rollup/plugin-commonjs';
4
+ import '@rollup/plugin-json';
5
+ import '@rollup/plugin-node-resolve';
6
+ import '@rollup/plugin-replace';
7
+ import '@rollup/plugin-wasm';
8
+ import '@rollup/pluginutils';
9
+ import '@visulima/package';
10
+ import '@visulima/pail';
11
+ import 'hookable';
12
+ import 'jiti';
13
+ import 'rollup';
14
+ import 'rollup-plugin-dts';
15
+ import 'rollup-plugin-polyfill-node';
16
+ import 'rollup-plugin-visualizer';
17
+ import 'esbuild';
18
+ import 'sucrase';
19
+
20
+ declare const defineConfig: (config: BuildConfig | BuildConfig[]) => BuildConfig[];
21
+ declare const definePreset: (preset: BuildPreset) => BuildPreset;
22
+
23
+ export { defineConfig, definePreset };
@@ -0,0 +1,23 @@
1
+ import { B as BuildConfig, a as BuildPreset } from './shared/packem.gPxnaycf.mjs';
2
+ import '@rollup/plugin-alias';
3
+ import '@rollup/plugin-commonjs';
4
+ import '@rollup/plugin-json';
5
+ import '@rollup/plugin-node-resolve';
6
+ import '@rollup/plugin-replace';
7
+ import '@rollup/plugin-wasm';
8
+ import '@rollup/pluginutils';
9
+ import '@visulima/package';
10
+ import '@visulima/pail';
11
+ import 'hookable';
12
+ import 'jiti';
13
+ import 'rollup';
14
+ import 'rollup-plugin-dts';
15
+ import 'rollup-plugin-polyfill-node';
16
+ import 'rollup-plugin-visualizer';
17
+ import 'esbuild';
18
+ import 'sucrase';
19
+
20
+ declare const defineConfig: (config: BuildConfig | BuildConfig[]) => BuildConfig[];
21
+ declare const definePreset: (preset: BuildPreset) => BuildPreset;
22
+
23
+ export { defineConfig, definePreset };
@@ -0,0 +1,23 @@
1
+ import { B as BuildConfig, a as BuildPreset } from './shared/packem.gPxnaycf.js';
2
+ import '@rollup/plugin-alias';
3
+ import '@rollup/plugin-commonjs';
4
+ import '@rollup/plugin-json';
5
+ import '@rollup/plugin-node-resolve';
6
+ import '@rollup/plugin-replace';
7
+ import '@rollup/plugin-wasm';
8
+ import '@rollup/pluginutils';
9
+ import '@visulima/package';
10
+ import '@visulima/pail';
11
+ import 'hookable';
12
+ import 'jiti';
13
+ import 'rollup';
14
+ import 'rollup-plugin-dts';
15
+ import 'rollup-plugin-polyfill-node';
16
+ import 'rollup-plugin-visualizer';
17
+ import 'esbuild';
18
+ import 'sucrase';
19
+
20
+ declare const defineConfig: (config: BuildConfig | BuildConfig[]) => BuildConfig[];
21
+ declare const definePreset: (preset: BuildPreset) => BuildPreset;
22
+
23
+ export { defineConfig, definePreset };
@@ -0,0 +1 @@
1
+ var f=Object.defineProperty;var i=(e,r)=>f(e,"name",{value:r,configurable:!0});var a=Object.defineProperty,n=i((e,r)=>a(e,"name",{value:r,configurable:!0}),"i");const o=n(e=>(Array.isArray(e)?e:[e]).filter(Boolean),"defineConfig"),t=n(e=>e,"definePreset");export{o as defineConfig,t as definePreset};