@visulima/packem 2.0.0-alpha.44 → 2.0.0-alpha.45
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 +13 -0
- package/dist/cli/index.js +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## @visulima/packem [2.0.0-alpha.45](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.44...@visulima/packem@2.0.0-alpha.45) (2025-12-13)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* update package versions in pnpm-lock.yaml and package.json files ([c227ecf](https://github.com/visulima/packem/commit/c227ecf2b15b900242c37958f754a48a6d47b57f))
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Dependencies
|
|
9
|
+
|
|
10
|
+
* **@visulima/packem-rollup:** upgraded to 1.0.0-alpha.33
|
|
11
|
+
* **@visulima/packem-share:** upgraded to 1.0.0-alpha.16
|
|
12
|
+
* **@visulima/rollup-plugin-css:** upgraded to 1.0.0-alpha.13
|
|
13
|
+
|
|
1
14
|
## @visulima/packem [2.0.0-alpha.44](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.43...@visulima/packem@2.0.0-alpha.44) (2025-12-13)
|
|
2
15
|
|
|
3
16
|
### Bug Fixes
|
package/dist/cli/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
var X=Object.defineProperty;var h=(t,s)=>X(t,"name",{value:s,configurable:!0});import{createCerebro as _}from"@visulima/cerebro";import Y from"@visulima/cerebro/logger/pail";import{SimpleReporter as H}from"@visulima/pail/reporter/simple";import j,{cwd as L,exit as Q}from"node:process";import{installPackage as D}from"@antfu/install-pkg";import{confirm as w,select as v,multiselect as q,spinner as E,cancel as F,intro as Z,log as N,outro as ee}from"@clack/prompts";import{isAccessible as se,readFile as te,writeFile as ae,isAccessibleSync as O,writeJsonSync as ie,writeFileSync as oe}from"@visulima/fs";import{parsePackageJson as G}from"@visulima/package/package-json";import{join as S,resolve as B}from"@visulima/path";import re from"magic-string";import{exec as ne}from"tinyexec";import{t as V,E as ce}from"../packem_shared/index-CUp9WuCG.js";import{defu as le}from"defu";import{createJiti as de}from"jiti";import{j as pe,w as ue}from"../packem_shared/index-ChtiNkgT.js";import{existsSync as U}from"node:fs";import{readFile as me,writeFile as fe}from"node:fs/promises";import{createInterface as ge}from"node:readline/promises";import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
|
|
3
3
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
4
|
-
var ye="@visulima/packem",J="2.0.0-alpha.
|
|
4
|
+
var ye="@visulima/packem",J="2.0.0-alpha.44";const R={version:J};var we=Object.defineProperty,be=h((t,s)=>we(t,"name",{value:s,configurable:!0}),"t");const z=be(async(t,s="")=>{let e=s;if(!e){const a=["packem.config.js","packem.config.mjs","packem.config.cjs","packem.config.ts","packem.config.cts","packem.config.mts"];for(const o of a)if(await se(S(t,o))){e=`./${o}`;break}}if(!/\.(?:js|mjs|cjs|ts|cts|mts)$/.test(e))throw new Error("Invalid packem config file extension. Only .js, .mjs, .cjs, .ts, .cts and .mts extensions are allowed.");return e},"findPackemFile"),K={less:["less"],lightningcss:["lightningcss"],"node-sass":["node-sass"],postcss:["postcss","postcss-load-config","postcss-modules-extract-imports","postcss-modules-local-by-default","postcss-modules-scope","postcss-modules-values","postcss-value-parser","@csstools/css-parser-algorithms","@csstools/css-tokenizer","@csstools/postcss-slow-plugins","icss-utils","@visulima/css-style-inject"],sass:["sass"],"sass-embedded":["sass-embedded"],stylus:["stylus"],tailwindcss:["@tailwindcss/node","@tailwindcss/oxide","tailwindcss"]};var ve=Object.defineProperty,y=h((t,s)=>ve(t,"name",{value:s,configurable:!0}),"r$2");const he=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults"],ke=["@babel/core","@babel/preset-react"],Se=["react","react-dom"],$e=["@babel/core","babel-preset-solid"],je=["solid-js"],Ce=["unplugin-vue"],xe=["vue"],De=["rollup-plugin-svelte"],Pe=["svelte"],M=y((t,s,e)=>t.includes(`preset: '${s}'`)||t.includes(`preset: "${s}"`)||t.includes(`preset: '${s}',`)||t.includes(`preset: "${s}",`)||t.includes(e)||t.includes(`@visulima/packem/config/preset/${s}`),"checkPresetExists"),T=y((t,s)=>{const{logger:e,magic:a,packemConfig:o}=t,r=o.match(/defineConfig\s*\(\s*\{/);if(r&&r.index!==void 0){const n=r.index+r[0].length;if(o.includes("preset:")){const i=o.match(/preset:\s*['"]([^'"]+)['"]/);if(i)a.replace(i[0],`preset: '${s}'`);else throw e.warn(`A preset already exists in the config. Please manually set it to '${s}'.`),new Error("Preset exists but is not a string")}else a.appendLeft(n,`
|
|
5
5
|
preset: '${s}',`)}else if(o.includes("transformer:"))a.replace("transformer:",`preset: '${s}',
|
|
6
6
|
transformer:`);else{const n=o.indexOf("{");n!==-1&&a.appendLeft(n+1,`
|
|
7
7
|
preset: '${s}',`)}},"insertPreset"),Me=y(async t=>{try{return((await ne("git",["status","--porcelain"],{nodeOptions:{cwd:t,stdio:["pipe","pipe","pipe"]}})).stdout?.trim().length??0)>0}catch{return!1}},"checkGitDirty"),Te=y(async t=>{const s=S(t,"package.json"),e=await G(s,{resolveCatalogs:!0});return!!(e.devDependencies?.typescript??e.dependencies?.typescript)},"checkTypeScriptInstalled"),Ie=y(async t=>{const s=await Te(t),e=[...Se],a=[...ke];return s?a.push("@types/react","@types/react-dom"):await w({initialValue:!1,message:"Do you want to use TypeScript?"})&&a.push("typescript","@types/react","@types/react-dom"),{devPackages:a,packages:e}},"getReactTypeDependencies"),I=y(async(t,s,e)=>{const{rootDirectory:a,spinner:o}=t;o.start("Installing packages"),await D(e,{cwd:a,dev:!1,silent:!0}),await D(s,{cwd:a,dev:!0,silent:!0}),o.stop("Installed packages")},"installPackages"),Oe=y(async t=>{const{logger:s,magic:e,packemConfig:a,packemConfigFormat:o,rootDirectory:r,spinner:n,transformerReplaceKey:i,transformerSearchKey:l}=t;if(a.includes("typedoc: typedocBuilder")||a.includes("@visulima/packem/builder/typedoc")){s.warn("Typedoc has already been added to the packem config.");return}o==="cjs"?e.prepend(`const typedocBuilder = require("@visulima/packem/builder/typedoc");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/packem",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.45",
|
|
4
4
|
"description": "A fast and modern bundler for Node.js and TypeScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -187,11 +187,11 @@
|
|
|
187
187
|
"@visulima/fs": "4.0.4",
|
|
188
188
|
"@visulima/humanizer": "2.0.3",
|
|
189
189
|
"@visulima/package": "4.1.4",
|
|
190
|
-
"@visulima/packem-rollup": "1.0.0-alpha.
|
|
191
|
-
"@visulima/packem-share": "1.0.0-alpha.
|
|
190
|
+
"@visulima/packem-rollup": "1.0.0-alpha.33",
|
|
191
|
+
"@visulima/packem-share": "1.0.0-alpha.16",
|
|
192
192
|
"@visulima/pail": "3.2.0",
|
|
193
193
|
"@visulima/path": "1.4.0",
|
|
194
|
-
"@visulima/rollup-plugin-css": "1.0.0-alpha.
|
|
194
|
+
"@visulima/rollup-plugin-css": "1.0.0-alpha.13",
|
|
195
195
|
"@visulima/source-map": "2.0.3",
|
|
196
196
|
"@visulima/tabular": "^3.1.3",
|
|
197
197
|
"@visulima/tsconfig": "2.1.0",
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
"defu": "6.1.4",
|
|
202
202
|
"fastest-levenshtein": "1.0.16",
|
|
203
203
|
"hookable": "5.5.3",
|
|
204
|
-
"html-minifier-next": "^4.
|
|
204
|
+
"html-minifier-next": "^4.9.0",
|
|
205
205
|
"jiti": "2.6.0",
|
|
206
206
|
"magic-string": "0.30.19",
|
|
207
207
|
"mlly": "1.8.0",
|
|
@@ -214,8 +214,8 @@
|
|
|
214
214
|
"peerDependencies": {
|
|
215
215
|
"@arethetypeswrong/core": ">=0.18.2",
|
|
216
216
|
"@swc/core": ">=1.11.29",
|
|
217
|
-
"@tailwindcss/node": "^4.1.
|
|
218
|
-
"@tailwindcss/oxide": "^4.1.
|
|
217
|
+
"@tailwindcss/node": "^4.1.18",
|
|
218
|
+
"@tailwindcss/oxide": "^4.1.18",
|
|
219
219
|
"cssnano": ">=7.0.6",
|
|
220
220
|
"esbuild": ">=0.20.2",
|
|
221
221
|
"icss-utils": ">=5.1.0",
|
|
@@ -230,16 +230,16 @@
|
|
|
230
230
|
"postcss-modules-scope": ">=3.2.0",
|
|
231
231
|
"postcss-modules-values": ">=4.0.0",
|
|
232
232
|
"postcss-value-parser": ">=4.2.0",
|
|
233
|
+
"rollup-plugin-svelte": ">=7",
|
|
233
234
|
"sass": ">=1.43.4",
|
|
234
235
|
"sass-embedded": ">=1.79.4",
|
|
235
236
|
"stylus": ">=0.63.0",
|
|
236
|
-
"unplugin-vue": ">=7",
|
|
237
|
-
"rollup-plugin-svelte": ">=7",
|
|
238
237
|
"sucrase": ">=3.35.0",
|
|
239
238
|
"typedoc": ">=0.26.0",
|
|
240
239
|
"typedoc-plugin-markdown": ">=4.2.0",
|
|
241
240
|
"typedoc-plugin-rename-defaults": ">=0.7.0",
|
|
242
|
-
"typescript": ">=4.5 || >=5.0"
|
|
241
|
+
"typescript": ">=4.5 || >=5.0",
|
|
242
|
+
"unplugin-vue": ">=7"
|
|
243
243
|
},
|
|
244
244
|
"peerDependenciesMeta": {
|
|
245
245
|
"@arethetypeswrong/core": {
|