@visulima/packem 1.0.0-alpha.65 → 1.0.0-alpha.67
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 +12 -0
- package/dist/cli.mjs +1 -1
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## @visulima/packem [1.0.0-alpha.67](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.66...@visulima/packem@1.0.0-alpha.67) (2024-08-05)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* added more tests ([fe2c0a5](https://github.com/visulima/packem/commit/fe2c0a5212eba41c428bd49646b96eb9be83e32e))
|
|
6
|
+
|
|
7
|
+
## @visulima/packem [1.0.0-alpha.66](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.65...@visulima/packem@1.0.0-alpha.66) (2024-08-04)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* updated deps and dev-deps ([b68cf54](https://github.com/visulima/packem/commit/b68cf54e53092c62c2c696b1fe0e72a7d6d0723b))
|
|
12
|
+
|
|
1
13
|
## @visulima/packem [1.0.0-alpha.65](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.64...@visulima/packem@1.0.0-alpha.65) (2024-08-04)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
package/dist/cli.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
|
|
|
5
5
|
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __cjs_path__.dirname(__filename);
|
|
7
7
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
8
|
-
const jo="@visulima/packem",ko="1.0.0-alpha.
|
|
8
|
+
const jo="@visulima/packem",ko="1.0.0-alpha.66",T=[...Yt.extensions,".cjs",".ts",".cts",".mts",".tsx",".jsx"],xo=["development","production"],Ke=["react-server","react-native","edge-light"];[...xo,...Ke];const Z=/node_modules/;var Eo=Object.defineProperty,G=d((e,t)=>Eo(e,"name",{value:t,configurable:!0}),"i$c");const de=/^#![^\n]*/,se=G(async e=>{await Ct(e,493).catch(()=>{})},"makeExecutable"),Oo=G((e,t=`#!/usr/bin/env node
|
|
9
9
|
`)=>({name:"packem:shebang",renderChunk:{handler(o,r,n){if(!r.isEntry||!r.facadeModuleId||o.startsWith("#")&&o[1]==="!")return null;if(e.includes(r.name)){const s=new _(o);return s.prepend(t),{code:s.toString(),map:n.sourcemap?s.generateMap({hires:!0}):void 0}}return null},order:"post"},async writeBundle(o,r){for(const[n,s]of Object.entries(r))if(s.type==="chunk"&&de.test(s.code)&&o.dir){const i=g(o.dir,n);await se(i)}}}),"shebangPlugin"),So=G(()=>({name:"packem:remove-shebang",renderChunk(e){return e.replace(de,"")}}),"removeShebangPlugin"),Do=G((e,t=`
|
|
10
10
|
`)=>{const o=de.exec(e);return o?o+t:""},"getShebang");var No=Object.defineProperty,_o=d((e,t)=>No(e,"name",{value:t,configurable:!0}),"p$4");const me=_o((e,t)=>{let o={};if(e.pkg.name&&(o[e.pkg.name]=e.options.rootDir),e.pkg.imports){const{imports:r}=e.pkg;for(const n in r){if(n.startsWith("#"))continue;const s=r[n];typeof s=="string"&&(o[n]=h(e.options.rootDir,s))}}return o={...o,...e.options.alias},e.options.rollup.alias&&(Array.isArray(e.options.rollup.alias.entries)?Object.assign(o,Object.fromEntries(e.options.rollup.alias.entries.map(r=>[r.find,r.replacement]))):Object.assign(o,e.options.rollup.alias.entries??e.options.rollup.alias)),e.logger.debug({message:"Resolved aliases: "+JSON.stringify(o),prefix:t}),o},"resolveAliases");var Po=Object.defineProperty,Co=d((e,t)=>Po(e,"name",{value:t,configurable:!0}),"o$3");const Mo=Co((e,t)=>{const o=He(t,{esmResolve:!0,interopDefault:!0});try{return o.resolve(e)}catch(r){if(r.code!=="MODULE_NOT_FOUND")throw new Error(`Error trying import ${e} from ${t}`,{cause:r});return e}},"tryResolve");var Io=Object.defineProperty,Fo=d((e,t)=>Io(e,"name",{value:t,configurable:!0}),"r$a");const J=Fo((e,t)=>{e.warnings.has(t)||e.warnings.add(t)},"warn");var Ro=Object.defineProperty,To=d((e,t)=>Ro(e,"name",{value:t,configurable:!0}),"u$9");const Ao=To(async e=>{const t=await Zt("jiti",{url:import.meta.url}),o=JSON.stringify({...e.options.stubOptions.jiti,alias:{...me(e,"jit"),...e.options.stubOptions.jiti.alias}},null,2);for(const r of e.options.entries){const n=g(e.options.rootDir,e.options.outDir,r.name),s=le(Mo(r.input,e.options.rootDir)||r.input),i=s.slice(0,Math.max(0,s.length-ce(s).length)),a=await ae(s),l=Do(a);e.options.emitCJS&&await B(`${n}.cjs`,l+[`const jiti = require(${JSON.stringify(t)})`,"",`const _jiti = jiti(null, ${o})`,"",`/** @type {import(${JSON.stringify(i)})} */`,`module.exports = _jiti(${JSON.stringify(s)})`].join(`
|
|
11
11
|
`));let c=[];try{c=await Qt(s,{extensions:T})}catch(u){J(e,`Cannot analyze ${s} for exports: ${u.toString()}`);return}const p=c.includes("default")||c.length===0;await B(`${n}.mjs`,l+[`import jiti from ${JSON.stringify(Kt(t).href)};`,"",`const _jiti = jiti(null, ${o})`,"",`/** @type {import(${JSON.stringify(s)})} */`,`const _module = await _jiti.import(${JSON.stringify(s)});`,p?`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/packem",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.67",
|
|
4
4
|
"description": "A fast and modern bundler for Node.js and TypeScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
],
|
|
147
147
|
"dependencies": {
|
|
148
148
|
"@antfu/install-pkg": "^0.3.3",
|
|
149
|
-
"@babel/parser": "^7.25.
|
|
149
|
+
"@babel/parser": "^7.25.3",
|
|
150
150
|
"@clack/prompts": "^0.7.0",
|
|
151
151
|
"@rollup/plugin-alias": "^5.1.0",
|
|
152
152
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
@@ -157,15 +157,15 @@
|
|
|
157
157
|
"@rollup/plugin-replace": "^5.0.7",
|
|
158
158
|
"@rollup/plugin-wasm": "^6.2.2",
|
|
159
159
|
"@rollup/pluginutils": "^5.1.0",
|
|
160
|
-
"@visulima/cerebro": "^1.1.
|
|
161
|
-
"@visulima/colorize": "^1.4.
|
|
162
|
-
"@visulima/find-cache-dir": "^1.0.
|
|
163
|
-
"@visulima/fs": "^2.1.
|
|
164
|
-
"@visulima/humanizer": "^1.0.
|
|
165
|
-
"@visulima/package": "^3.0.
|
|
166
|
-
"@visulima/pail": "^2.1.
|
|
167
|
-
"@visulima/path": "^1.0.
|
|
168
|
-
"@visulima/tsconfig": "^1.0.
|
|
160
|
+
"@visulima/cerebro": "^1.1.14",
|
|
161
|
+
"@visulima/colorize": "^1.4.5",
|
|
162
|
+
"@visulima/find-cache-dir": "^1.0.5",
|
|
163
|
+
"@visulima/fs": "^2.1.12",
|
|
164
|
+
"@visulima/humanizer": "^1.0.7",
|
|
165
|
+
"@visulima/package": "^3.0.6",
|
|
166
|
+
"@visulima/pail": "^2.1.3",
|
|
167
|
+
"@visulima/path": "^1.0.4",
|
|
168
|
+
"@visulima/tsconfig": "^1.0.7",
|
|
169
169
|
"defu": "6.1.4",
|
|
170
170
|
"es-module-lexer": "^1.5.4",
|
|
171
171
|
"fastest-levenshtein": "^1.0.16",
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"hookable": "^5.5.3",
|
|
175
175
|
"magic-string": "^0.30.11",
|
|
176
176
|
"mlly": "^1.7.1",
|
|
177
|
-
"rollup": "^4.
|
|
177
|
+
"rollup": "^4.20.0",
|
|
178
178
|
"rollup-plugin-dts": "^6.1.1",
|
|
179
179
|
"rollup-plugin-license": "^3.5.2",
|
|
180
180
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"@babel/core": "^7.25.2",
|
|
190
190
|
"@rushstack/eslint-plugin-security": "^0.8.2",
|
|
191
191
|
"@secretlint/secretlint-rule-preset-recommend": "^8.2.4",
|
|
192
|
-
"@swc/core": "^1.7.
|
|
192
|
+
"@swc/core": "^1.7.6",
|
|
193
193
|
"@swc/types": "0.1.12",
|
|
194
194
|
"@total-typescript/ts-reset": "^0.5.1",
|
|
195
195
|
"@types/estree": "^1.0.5",
|
|
@@ -199,8 +199,8 @@
|
|
|
199
199
|
"@types/react": "^18.3.3",
|
|
200
200
|
"@types/react-dom": "^18.3.0",
|
|
201
201
|
"@types/semver": "^7.5.8",
|
|
202
|
-
"@vitest/coverage-v8": "^2.0.
|
|
203
|
-
"@vitest/ui": "^2.0.
|
|
202
|
+
"@vitest/coverage-v8": "^2.0.5",
|
|
203
|
+
"@vitest/ui": "^2.0.5",
|
|
204
204
|
"conventional-changelog-conventionalcommits": "8.0.0",
|
|
205
205
|
"cross-env": "^7.0.3",
|
|
206
206
|
"detect-indent": "^7.0.1",
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
"estree-walker": "^3.0.3",
|
|
216
216
|
"execa": "^9.3.0",
|
|
217
217
|
"jiti": "^1.21.6",
|
|
218
|
-
"oxc-transform": "^0.
|
|
218
|
+
"oxc-transform": "^0.23.0",
|
|
219
219
|
"prettier": "^3.3.3",
|
|
220
220
|
"react": "^18.3.1",
|
|
221
221
|
"react-dom": "^18.3.1",
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
"tempy": "^3.1.0",
|
|
228
228
|
"ts-essentials": "^10.0.1",
|
|
229
229
|
"typescript": "^5.5.4",
|
|
230
|
-
"vitest": "^2.0.
|
|
230
|
+
"vitest": "^2.0.5"
|
|
231
231
|
},
|
|
232
232
|
"peerDependencies": {
|
|
233
233
|
"@swc/core": "^1.5.7",
|