@visulima/packem 2.0.0-alpha.98 → 2.0.0-alpha.99
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,13 @@
|
|
|
1
|
+
## @visulima/packem [2.0.0-alpha.99](https://github.com/visulima/packem/compare/%40visulima%2Fpackem%402.0.0-alpha.98...%40visulima%2Fpackem%402.0.0-alpha.99) (2026-07-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Dependencies
|
|
5
|
+
|
|
6
|
+
* **@visulima/packem-share:** upgraded to 1.0.0-alpha.56
|
|
7
|
+
* **@visulima/rollup-plugin-css:** upgraded to 1.0.0-alpha.60
|
|
8
|
+
* **@visulima/rollup-plugin-dts:** upgraded to 1.0.0-alpha.41
|
|
9
|
+
* **@visulima/packem-rollup:** upgraded to 1.0.0-alpha.81
|
|
10
|
+
|
|
1
11
|
## @visulima/packem [2.0.0-alpha.98](https://github.com/visulima/packem/compare/%40visulima%2Fpackem%402.0.0-alpha.97...%40visulima%2Fpackem%402.0.0-alpha.98) (2026-07-20)
|
|
2
12
|
|
|
3
13
|
|
package/dist/cli/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{createCerebro as Q}from"@visulima/cerebro";import Z from"@visulima/cerebro/logger/pail";import{SimpleReporter as ee}from"@visulima/pail/reporter/simple";import{a as A,m as te,b as se,c as ae,d as ie,B as ne,T as re,f as R,v as oe,n as ce}from"../packem_shared/index-
|
|
2
|
+
import{createCerebro as Q}from"@visulima/cerebro";import Z from"@visulima/cerebro/logger/pail";import{SimpleReporter as ee}from"@visulima/pail/reporter/simple";import{a as A,m as te,b as se,c as ae,d as ie,B as ne,T as re,f as R,v as oe,n as ce}from"../packem_shared/index-CVQ-yDKD.js";import k,{cwd as N,exit as le}from"node:process";import{installPackage as h}from"@antfu/install-pkg";import{spinner as D,confirm as f,cancel as B,select as g,multiselect as q,intro as G,log as E,outro as K,isCancel as z}from"@clack/prompts";import{B as O,z as de,q as ue,m as b,f as M,T as pe,O as me}from"../packem_shared/index-KXVG6Tyr.js";import{y as U}from"../packem_shared/oxcTransformPlugin-B5ATuMoi-DwCO2qaH.js";import fe from"magic-string";import{exec as ge}from"tinyexec";import{PRODUCTION_ENV as W,DEVELOPMENT_ENV as ye}from"@visulima/packem-share/constants";import{createJiti as we}from"jiti";import{writeFile as F,readFile as be}from"node:fs/promises";import{q as he}from"../packem_shared/create-or-update-key-storage-D8_VJrpX.js";import{existsSync as V}from"node:fs";import{parseEnv as J}from"node:util";import{createInterface as ve}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
4
|
const _={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"]},ke=/defineConfig\s*\(\s*\{/,$e=/preset:\s*['"][^'"]+['"]/,Se=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults"],Ce=["@babel/core","@babel/preset-react"],je=["react","react-dom"],xe=["@babel/core","babel-preset-solid"],Pe=["solid-js"],Ee=["@babel/core","@babel/preset-react","babel-plugin-transform-hook-names"],De=["preact"],Oe=["unplugin-vue"],Le=["vue"],Ie=["rollup-plugin-svelte"],Me=["svelte"],$=(t,e,a)=>t.includes(`preset: '${e}'`)||t.includes(`preset: "${e}"`)||t.includes(`preset: '${e}',`)||t.includes(`preset: "${e}",`)||t.includes(a)||t.includes(`@visulima/packem/config/preset/${e}`),S=(t,e)=>{const{logger:a,magic:s,packemConfig:i}=t,n=ke.exec(i);if(n?.index!==void 0){const r=n.index+n[0].length;if(i.includes("preset:")){const o=$e.exec(i);if(o)s.replace(o[0],`preset: '${e}'`);else throw a.warn(`A preset already exists in the config. Please manually set it to '${e}'.`),new Error("Preset exists but is not a string")}else s.appendLeft(r,`
|
|
5
5
|
preset: '${e}',`)}else if(i.includes("transformer:"))s.replace("transformer:",`preset: '${e}',
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createPail as s}from"@visulima/pail";import{SimpleReporter as c}from"@visulima/pail/reporter/simple";import{T as g}from"./packem_shared/index-
|
|
1
|
+
import{createPail as s}from"@visulima/pail";import{SimpleReporter as c}from"@visulima/pail/reporter/simple";import{T as g}from"./packem_shared/index-CVQ-yDKD.js";const h=async(e,r={})=>{const{debug:o,environment:t,logger:i,mode:m,tsconfigPath:n,...a}={debug:!1,environment:"production",logger:{},mode:"build",tsconfigPath:void 0,...r},d={reporters:[new c({error:{hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0}})],scope:"packem",...i},p=s(d);await g(e,m,t,p,o,a,n)};export{h as packem};
|