@visulima/packem 2.0.0-alpha.53 → 2.0.0-alpha.55

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 CHANGED
@@ -1,3 +1,31 @@
1
+ ## @visulima/packem [2.0.0-alpha.55](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.54...@visulima/packem@2.0.0-alpha.55) (2026-03-14)
2
+
3
+ ### Miscellaneous Chores
4
+
5
+ * **packem:** update dependencies and clean up fixture package.json files ([9cf26d1](https://github.com/visulima/packem/commit/9cf26d177534aaa692971a630145273b87912ef0))
6
+
7
+
8
+ ### Dependencies
9
+
10
+ * **@visulima/packem-rollup:** upgraded to 1.0.0-alpha.42
11
+ * **@visulima/packem-share:** upgraded to 1.0.0-alpha.23
12
+ * **@visulima/rollup-plugin-css:** upgraded to 1.0.0-alpha.22
13
+ * **@visulima/rollup-plugin-dts:** upgraded to 1.0.0-alpha.3
14
+
15
+ ## @visulima/packem [2.0.0-alpha.54](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.53...@visulima/packem@2.0.0-alpha.54) (2026-03-06)
16
+
17
+ ### Bug Fixes
18
+
19
+ * fixed broken publishing ([002f29a](https://github.com/visulima/packem/commit/002f29a6a3edf695d98abae0f18c6b0c328ef832))
20
+
21
+
22
+ ### Dependencies
23
+
24
+ * **@visulima/packem-rollup:** upgraded to 1.0.0-alpha.41
25
+ * **@visulima/packem-share:** upgraded to 1.0.0-alpha.22
26
+ * **@visulima/rollup-plugin-css:** upgraded to 1.0.0-alpha.21
27
+ * **@visulima/rollup-plugin-dts:** upgraded to 1.0.0-alpha.2
28
+
1
29
  ## @visulima/packem [2.0.0-alpha.53](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.52...@visulima/packem@2.0.0-alpha.53) (2026-03-05)
2
30
 
3
31
  ### Features
package/dist/cli/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  var Z=Object.defineProperty;var v=(t,s)=>Z(t,"name",{value:s,configurable:!0});import{createCerebro as ee}from"@visulima/cerebro";import se from"@visulima/cerebro/logger/pail";import{SimpleReporter as te}from"@visulima/pail/reporter/simple";import C,{cwd as B,exit as ae}from"node:process";import{installPackage as D}from"@antfu/install-pkg";import{confirm as w,select as h,multiselect as U,spinner as N,cancel as G,intro as ie,log as A,outro as re}from"@clack/prompts";import{isAccessible as oe,readFile as ne,writeFile as ce,isAccessibleSync as L,writeJsonSync as le,writeFileSync as de}from"@visulima/fs";import{parsePackageJson as z}from"@visulima/package/package-json";import{join as $,resolve as I}from"@visulima/path";import pe from"magic-string";import{exec as ue}from"tinyexec";import{PRODUCTION_ENV as R,DEVELOPMENT_ENV as me}from"@visulima/packem-share/constants";import{createJiti as fe}from"jiti";import{c as ge,$ as ye,j as be}from"../packem_shared/index-CIcDqRps.js";import{existsSync as V}from"node:fs";import{parseEnv as F}from"node:util";import{readFile as we,writeFile as ve}from"node:fs/promises";import{createInterface as he}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 ke="@visulima/packem",W="2.0.0-alpha.52";const q={version:W};var Se=Object.defineProperty,$e=v((t,s)=>Se(t,"name",{value:s,configurable:!0}),"t");const _=$e(async(t,s="")=>{let a=s;if(!a){const e=["packem.config.js","packem.config.mjs","packem.config.cjs","packem.config.ts","packem.config.cts","packem.config.mts"];for(const r of e)if(await oe($(t,r))){a=`./${r}`;break}}if(!/\.(?:js|mjs|cjs|ts|cts|mts)$/.test(a))throw new Error("Invalid packem config file extension. Only .js, .mjs, .cjs, .ts, .cts and .mts extensions are allowed.");return a},"findPackemFile"),X={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 je=Object.defineProperty,b=v((t,s)=>je(t,"name",{value:s,configurable:!0}),"r$1");const Ce=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults"],Pe=["@babel/core","@babel/preset-react"],xe=["react","react-dom"],De=["@babel/core","babel-preset-solid"],Me=["solid-js"],Oe=["@babel/core","@babel/preset-react","babel-plugin-transform-hook-names"],Ee=["preact"],Te=["unplugin-vue"],Ie=["vue"],Le=["rollup-plugin-svelte"],Ne=["svelte"],M=b((t,s,a)=>t.includes(`preset: '${s}'`)||t.includes(`preset: "${s}"`)||t.includes(`preset: '${s}',`)||t.includes(`preset: "${s}",`)||t.includes(a)||t.includes(`@visulima/packem/config/preset/${s}`),"checkPresetExists"),O=b((t,s)=>{const{logger:a,magic:e,packemConfig:r}=t,o=r.match(/defineConfig\s*\(\s*\{/);if(o&&o.index!==void 0){const n=o.index+o[0].length;if(r.includes("preset:")){const i=r.match(/preset:\s*['"]([^'"]+)['"]/);if(i)e.replace(i[0],`preset: '${s}'`);else throw a.warn(`A preset already exists in the config. Please manually set it to '${s}'.`),new Error("Preset exists but is not a string")}else e.appendLeft(n,`
4
+ var ke="@visulima/packem",W="2.0.0-alpha.54";const q={version:W};var Se=Object.defineProperty,$e=v((t,s)=>Se(t,"name",{value:s,configurable:!0}),"t");const _=$e(async(t,s="")=>{let a=s;if(!a){const e=["packem.config.js","packem.config.mjs","packem.config.cjs","packem.config.ts","packem.config.cts","packem.config.mts"];for(const r of e)if(await oe($(t,r))){a=`./${r}`;break}}if(!/\.(?:js|mjs|cjs|ts|cts|mts)$/.test(a))throw new Error("Invalid packem config file extension. Only .js, .mjs, .cjs, .ts, .cts and .mts extensions are allowed.");return a},"findPackemFile"),X={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 je=Object.defineProperty,b=v((t,s)=>je(t,"name",{value:s,configurable:!0}),"r$1");const Ce=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults"],Pe=["@babel/core","@babel/preset-react"],xe=["react","react-dom"],De=["@babel/core","babel-preset-solid"],Me=["solid-js"],Oe=["@babel/core","@babel/preset-react","babel-plugin-transform-hook-names"],Ee=["preact"],Te=["unplugin-vue"],Ie=["vue"],Le=["rollup-plugin-svelte"],Ne=["svelte"],M=b((t,s,a)=>t.includes(`preset: '${s}'`)||t.includes(`preset: "${s}"`)||t.includes(`preset: '${s}',`)||t.includes(`preset: "${s}",`)||t.includes(a)||t.includes(`@visulima/packem/config/preset/${s}`),"checkPresetExists"),O=b((t,s)=>{const{logger:a,magic:e,packemConfig:r}=t,o=r.match(/defineConfig\s*\(\s*\{/);if(o&&o.index!==void 0){const n=o.index+o[0].length;if(r.includes("preset:")){const i=r.match(/preset:\s*['"]([^'"]+)['"]/);if(i)e.replace(i[0],`preset: '${s}'`);else throw a.warn(`A preset already exists in the config. Please manually set it to '${s}'.`),new Error("Preset exists but is not a string")}else e.appendLeft(n,`
5
5
  preset: '${s}',`)}else if(r.includes("transformer:"))e.replace("transformer:",`preset: '${s}',
6
6
  transformer:`);else{const n=r.indexOf("{");n!==-1&&e.appendLeft(n+1,`
7
7
  preset: '${s}',`)}},"insertPreset"),Be=b(async t=>{try{return((await ue("git",["status","--porcelain"],{nodeOptions:{cwd:t,stdio:["pipe","pipe","pipe"]}})).stdout?.trim().length??0)>0}catch{return!1}},"checkGitDirty"),H=b(async t=>{const s=$(t,"package.json"),a=await z(s,{resolveCatalogs:!0});return!!(a.devDependencies?.typescript??a.dependencies?.typescript)},"checkTypeScriptInstalled"),Ve=b(async t=>{const s=await H(t),a=[...xe],e=[...Pe];return s?e.push("@types/react","@types/react-dom"):await w({initialValue:!1,message:"Do you want to use TypeScript?"})&&e.push("typescript","@types/react","@types/react-dom"),{devPackages:e,packages:a}},"getReactTypeDependencies"),E=b(async(t,s,a)=>{const{rootDirectory:e,spinner:r}=t;r.start("Installing packages"),await D(a,{cwd:e,dev:!1,silent:!0}),await D(s,{cwd:e,dev:!0,silent:!0}),r.stop("Installed packages")},"installPackages"),Ae=b(async t=>{const{logger:s,magic:a,packemConfig:e,packemConfigFormat:r,rootDirectory:o,spinner:n,transformerReplaceKey:i,transformerSearchKey:l}=t;if(e.includes("typedoc: typedocBuilder")||e.includes("@visulima/packem/builder/typedoc")){s.warn("Typedoc has already been added to the packem config.");return}r==="cjs"?a.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.53",
3
+ "version": "2.0.0-alpha.55",
4
4
  "description": "A fast and modern bundler for Node.js and TypeScript.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -191,12 +191,12 @@
191
191
  "@visulima/fs": "4.1.0",
192
192
  "@visulima/humanizer": "2.0.5",
193
193
  "@visulima/package": "4.1.7",
194
- "@visulima/packem-rollup": "1.0.0-alpha.40",
195
- "@visulima/packem-share": "1.0.0-alpha.21",
194
+ "@visulima/packem-rollup": "1.0.0-alpha.42",
195
+ "@visulima/packem-share": "1.0.0-alpha.23",
196
196
  "@visulima/pail": "3.2.2",
197
197
  "@visulima/path": "2.0.5",
198
- "@visulima/rollup-plugin-css": "1.0.0-alpha.20",
199
- "@visulima/rollup-plugin-dts": "1.0.0-alpha.1",
198
+ "@visulima/rollup-plugin-css": "1.0.0-alpha.22",
199
+ "@visulima/rollup-plugin-dts": "1.0.0-alpha.3",
200
200
  "@visulima/tabular": "^3.1.3",
201
201
  "@visulima/tsconfig": "2.1.3",
202
202
  "browserslist": "4.28.1",
@@ -206,10 +206,11 @@
206
206
  "jiti": "2.6.1",
207
207
  "magic-string": "0.30.21",
208
208
  "mlly": "1.8.1",
209
+ "oxc-transform": "0.119.0",
209
210
  "picomatch": "4.0.3",
210
211
  "rollup": "4.59.0",
211
212
  "semver": "7.7.4",
212
- "tinyexec": "1.0.2",
213
+ "tinyexec": "1.0.4",
213
214
  "tinyglobby": "0.2.15"
214
215
  },
215
216
  "peerDependencies": {