@visulima/packem 1.0.0-alpha.1 → 1.0.0-alpha.10
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 +83 -0
- package/README.md +3 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +6 -2
- package/dist/config.d.mts +6 -2
- package/dist/config.d.ts +6 -2
- package/dist/create-bundler.cjs +54 -53
- package/dist/create-bundler.d.cts +6 -3
- package/dist/create-bundler.d.mts +6 -3
- package/dist/create-bundler.d.ts +6 -3
- package/dist/create-bundler.mjs +54 -53
- package/dist/rollup/plugins/esbuild/index.cjs +1 -0
- package/dist/rollup/plugins/esbuild/index.d.cts +9 -0
- package/dist/rollup/plugins/esbuild/index.d.mts +9 -0
- package/dist/rollup/plugins/esbuild/index.d.ts +9 -0
- package/dist/rollup/plugins/esbuild/index.mjs +9 -0
- package/dist/rollup/plugins/sucrase/index.cjs +1 -0
- package/dist/rollup/plugins/sucrase/index.d.cts +8 -0
- package/dist/rollup/plugins/sucrase/index.d.mts +8 -0
- package/dist/rollup/plugins/sucrase/index.d.ts +8 -0
- package/dist/rollup/plugins/sucrase/index.mjs +1 -0
- package/dist/rollup/plugins/swc/index.cjs +1 -0
- package/dist/rollup/plugins/swc/index.d.cts +7 -0
- package/dist/rollup/plugins/swc/index.d.mts +7 -0
- package/dist/rollup/plugins/swc/index.d.ts +7 -0
- package/dist/rollup/plugins/swc/index.mjs +1 -0
- package/dist/shared/packem.Bdmp1hC5.mjs +1 -0
- package/dist/shared/packem.Bj4QPFg7.mjs +1 -0
- package/dist/shared/{packem.gPxnaycf.d.cts → packem.C44tLE3n.d.cts} +3 -196
- package/dist/shared/{packem.gPxnaycf.d.mts → packem.C44tLE3n.d.mts} +3 -196
- package/dist/shared/{packem.gPxnaycf.d.ts → packem.C44tLE3n.d.ts} +3 -196
- package/dist/shared/packem.CAQMZ6ex.d.mts +176 -0
- package/dist/shared/packem.CEXB7aOL.cjs +1 -0
- package/dist/shared/packem.D09xRBAa.d.cts +25 -0
- package/dist/shared/packem.D09xRBAa.d.mts +25 -0
- package/dist/shared/packem.D09xRBAa.d.ts +25 -0
- package/dist/shared/packem.DZfoF9Bk.d.cts +176 -0
- package/dist/shared/packem.DvWhOdt5.d.cts +10 -0
- package/dist/shared/packem.DvWhOdt5.d.mts +10 -0
- package/dist/shared/packem.DvWhOdt5.d.ts +10 -0
- package/dist/shared/packem.aHRI8QbF.d.ts +176 -0
- package/dist/shared/packem.uvB0cQX0.cjs +1 -0
- package/package.json +35 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,86 @@
|
|
|
1
|
+
## @visulima/packem [1.0.0-alpha.10](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.9...@visulima/packem@1.0.0-alpha.10) (2024-05-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* optimize the code a bit ([90fa3e4](https://github.com/visulima/packem/commit/90fa3e4e468a75fe9c764614473119ca6671661c))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Styles
|
|
10
|
+
|
|
11
|
+
* cs fix ([6a77847](https://github.com/visulima/packem/commit/6a778475666bd236eb9dee56797ba969989b99fa))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Code Refactoring
|
|
15
|
+
|
|
16
|
+
* optimize the code a bit ([0960712](https://github.com/visulima/packem/commit/0960712bac282a691bbf7b88c0492cf101d3e812))
|
|
17
|
+
|
|
18
|
+
## @visulima/packem [1.0.0-alpha.9](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.8...@visulima/packem@1.0.0-alpha.9) (2024-05-25)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* added build time ([5ad7b27](https://github.com/visulima/packem/commit/5ad7b27eedd056dc1ce127ad76bcc03a52fe5d31))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Miscellaneous Chores
|
|
27
|
+
|
|
28
|
+
* clean up of started node native plugin ([6b67ca9](https://github.com/visulima/packem/commit/6b67ca93299d876893028d80816defa5da27c5f0))
|
|
29
|
+
|
|
30
|
+
## @visulima/packem [1.0.0-alpha.8](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.7...@visulima/packem@1.0.0-alpha.8) (2024-05-25)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* removed vue examples, removed jsx preserve error ([55f5571](https://github.com/visulima/packem/commit/55f55712e021a3a4a1aa24c2026a508597a28d14))
|
|
36
|
+
|
|
37
|
+
## @visulima/packem [1.0.0-alpha.7](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.6...@visulima/packem@1.0.0-alpha.7) (2024-05-25)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* adjusted target on swc and esbuild ([5ee4937](https://github.com/visulima/packem/commit/5ee493757e5fc51945228df0ff97db77c35eac3e))
|
|
43
|
+
|
|
44
|
+
## @visulima/packem [1.0.0-alpha.6](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.5...@visulima/packem@1.0.0-alpha.6) (2024-05-25)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
* added target options to esbuild and swc ([5d3100b](https://github.com/visulima/packem/commit/5d3100b6bce15819a90b97f537b5626498bb6b18))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Styles
|
|
53
|
+
|
|
54
|
+
* cs fix ([78752e4](https://github.com/visulima/packem/commit/78752e434e62c20c5efb800015d321899770030f))
|
|
55
|
+
|
|
56
|
+
## @visulima/packem [1.0.0-alpha.5](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.4...@visulima/packem@1.0.0-alpha.5) (2024-05-25)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Bug Fixes
|
|
60
|
+
|
|
61
|
+
* added better dx for invalid entries ([55fc8ed](https://github.com/visulima/packem/commit/55fc8ed9040dc40d751028e2143a85962aa6b54e))
|
|
62
|
+
|
|
63
|
+
## @visulima/packem [1.0.0-alpha.4](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.3...@visulima/packem@1.0.0-alpha.4) (2024-05-25)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Features
|
|
67
|
+
|
|
68
|
+
* moved minify to the core config ([219782f](https://github.com/visulima/packem/commit/219782f2e5ea2275fd63fbac07b180bf05497bf1))
|
|
69
|
+
|
|
70
|
+
## @visulima/packem [1.0.0-alpha.3](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.2...@visulima/packem@1.0.0-alpha.3) (2024-05-25)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### Bug Fixes
|
|
74
|
+
|
|
75
|
+
* fixed lazy loading of transformers ([81e8f65](https://github.com/visulima/packem/commit/81e8f6548431deb720fe2c68ccff5c19aa70af2c))
|
|
76
|
+
|
|
77
|
+
## @visulima/packem [1.0.0-alpha.2](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.1...@visulima/packem@1.0.0-alpha.2) (2024-05-24)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Bug Fixes
|
|
81
|
+
|
|
82
|
+
* added check for transformer based on package.jso, changed type for packem.config.ts, and some other fixes ([85213bf](https://github.com/visulima/packem/commit/85213bfb3ce6d766009dfbcf624a3e08fe48d4da))
|
|
83
|
+
|
|
1
84
|
## @visulima/packem 1.0.0-alpha.1 (2024-05-24)
|
|
2
85
|
|
|
3
86
|
|
package/README.md
CHANGED
|
@@ -45,6 +45,9 @@ pnpm add @visulima/packem
|
|
|
45
45
|
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
Links:
|
|
49
|
+
- https://github.com/frehner/modern-guide-to-packaging-js-library#set-the-main-field
|
|
50
|
+
|
|
48
51
|
## Related
|
|
49
52
|
|
|
50
53
|
- [bunchee](https://github.com/huozhi/bunchee) - Zero config bundler for ECMAScript and TypeScript packages
|
package/dist/cli.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
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.
|
|
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="1.0.0-alpha.9";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,minify:e.minify,replace:{...i},rollup:{esbuild:{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.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
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.
|
|
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="1.0.0-alpha.9";var f=Object.defineProperty,a=c((t,e)=>f(t,"name",{value:e,configurable:!0}),"n");const g=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,minify:e.minify,replace:{...n},rollup:{esbuild:{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});g(o),o.setDefaultCommand("build"),o.run().catch(t=>{console.error(t.message),p(1)});
|
package/dist/config.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var f=Object.defineProperty;var
|
|
1
|
+
"use strict";var f=Object.defineProperty;var r=(e,i)=>f(e,"name",{value:i,configurable:!0});var t=Object.defineProperty,n=r((e,i)=>t(e,"name",{value:i,configurable:!0}),"i");const a=n(e=>(Array.isArray(e)?e:[e]).filter(Boolean),"defineConfig"),o=n(e=>e,"definePreset");exports.defineConfig=a,exports.definePreset=o;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { B as BuildConfig, a as BuildPreset } from './shared/packem.
|
|
1
|
+
import { B as BuildConfig, a as BuildPreset } from './shared/packem.DZfoF9Bk.cjs';
|
|
2
|
+
export { b as BuildHooks } from './shared/packem.DZfoF9Bk.cjs';
|
|
2
3
|
import '@rollup/plugin-alias';
|
|
3
4
|
import '@rollup/plugin-commonjs';
|
|
4
5
|
import '@rollup/plugin-json';
|
|
@@ -14,10 +15,13 @@ import 'rollup';
|
|
|
14
15
|
import 'rollup-plugin-dts';
|
|
15
16
|
import 'rollup-plugin-polyfill-node';
|
|
16
17
|
import 'rollup-plugin-visualizer';
|
|
18
|
+
import './shared/packem.D09xRBAa.cjs';
|
|
17
19
|
import 'esbuild';
|
|
20
|
+
import './shared/packem.DvWhOdt5.cjs';
|
|
18
21
|
import 'sucrase';
|
|
22
|
+
import './shared/packem.C44tLE3n.cjs';
|
|
19
23
|
|
|
20
24
|
declare const defineConfig: (config: BuildConfig | BuildConfig[]) => BuildConfig[];
|
|
21
25
|
declare const definePreset: (preset: BuildPreset) => BuildPreset;
|
|
22
26
|
|
|
23
|
-
export { defineConfig, definePreset };
|
|
27
|
+
export { BuildConfig, BuildPreset, defineConfig, definePreset };
|
package/dist/config.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { B as BuildConfig, a as BuildPreset } from './shared/packem.
|
|
1
|
+
import { B as BuildConfig, a as BuildPreset } from './shared/packem.CAQMZ6ex.mjs';
|
|
2
|
+
export { b as BuildHooks } from './shared/packem.CAQMZ6ex.mjs';
|
|
2
3
|
import '@rollup/plugin-alias';
|
|
3
4
|
import '@rollup/plugin-commonjs';
|
|
4
5
|
import '@rollup/plugin-json';
|
|
@@ -14,10 +15,13 @@ import 'rollup';
|
|
|
14
15
|
import 'rollup-plugin-dts';
|
|
15
16
|
import 'rollup-plugin-polyfill-node';
|
|
16
17
|
import 'rollup-plugin-visualizer';
|
|
18
|
+
import './shared/packem.D09xRBAa.mjs';
|
|
17
19
|
import 'esbuild';
|
|
20
|
+
import './shared/packem.DvWhOdt5.mjs';
|
|
18
21
|
import 'sucrase';
|
|
22
|
+
import './shared/packem.C44tLE3n.mjs';
|
|
19
23
|
|
|
20
24
|
declare const defineConfig: (config: BuildConfig | BuildConfig[]) => BuildConfig[];
|
|
21
25
|
declare const definePreset: (preset: BuildPreset) => BuildPreset;
|
|
22
26
|
|
|
23
|
-
export { defineConfig, definePreset };
|
|
27
|
+
export { BuildConfig, BuildPreset, defineConfig, definePreset };
|
package/dist/config.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { B as BuildConfig, a as BuildPreset } from './shared/packem.
|
|
1
|
+
import { B as BuildConfig, a as BuildPreset } from './shared/packem.aHRI8QbF.js';
|
|
2
|
+
export { b as BuildHooks } from './shared/packem.aHRI8QbF.js';
|
|
2
3
|
import '@rollup/plugin-alias';
|
|
3
4
|
import '@rollup/plugin-commonjs';
|
|
4
5
|
import '@rollup/plugin-json';
|
|
@@ -14,10 +15,13 @@ import 'rollup';
|
|
|
14
15
|
import 'rollup-plugin-dts';
|
|
15
16
|
import 'rollup-plugin-polyfill-node';
|
|
16
17
|
import 'rollup-plugin-visualizer';
|
|
18
|
+
import './shared/packem.D09xRBAa.js';
|
|
17
19
|
import 'esbuild';
|
|
20
|
+
import './shared/packem.DvWhOdt5.js';
|
|
18
21
|
import 'sucrase';
|
|
22
|
+
import './shared/packem.C44tLE3n.js';
|
|
19
23
|
|
|
20
24
|
declare const defineConfig: (config: BuildConfig | BuildConfig[]) => BuildConfig[];
|
|
21
25
|
declare const definePreset: (preset: BuildPreset) => BuildPreset;
|
|
22
26
|
|
|
23
|
-
export { defineConfig, definePreset };
|
|
27
|
+
export { BuildConfig, BuildPreset, defineConfig, definePreset };
|