@visulima/packem 2.0.0-alpha.6 → 2.0.0-alpha.8

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,20 @@
1
+ ## @visulima/packem [2.0.0-alpha.8](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.7...@visulima/packem@2.0.0-alpha.8) (2025-08-11)
2
+
3
+ ### Bug Fixes
4
+
5
+ * fixed undefined based on exitCode ([9bd9a54](https://github.com/visulima/packem/commit/9bd9a5413d78163b56efda75c18270ad9f099106))
6
+
7
+ ## @visulima/packem [2.0.0-alpha.7](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.6...@visulima/packem@2.0.0-alpha.7) (2025-08-10)
8
+
9
+ ### Features
10
+
11
+ * add lucide-static integration and SVG comment stripping ([ac344b3](https://github.com/visulima/packem/commit/ac344b3eb9566e479764625cd877617379d10c16))
12
+
13
+
14
+ ### Dependencies
15
+
16
+ * **@visulima/packem-rollup:** upgraded to 1.0.0-alpha.6
17
+
1
18
  ## @visulima/packem [2.0.0-alpha.6](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.5...@visulima/packem@2.0.0-alpha.6) (2025-08-10)
2
19
 
3
20
  ### Bug Fixes
package/dist/cli/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- var Y=Object.defineProperty;var h=(t,s)=>Y(t,"name",{value:s,configurable:!0});import Q from"@visulima/cerebro";import{SimpleReporter as Z}from"@visulima/pail/reporter";import{cwd as A,exit as ee}from"node:process";import{installPackage as N}from"@antfu/install-pkg";import{spinner as K,select as $,multiselect as F,confirm as w,intro as te,log as G,cancel as se,outro as oe}from"@clack/prompts";import{isAccessible as ie,readFile as ne,writeFile as ae,isAccessibleSync as S,collectSync as re,writeJsonSync as le,writeFileSync as ce}from"@visulima/fs";import{join as j,resolve as M,extname as W,toNamespacedPath as pe}from"@visulima/path";import de from"magic-string";import{t as I,E as V,e as ue,N as q,_ as me,c as fe}from"../packem_shared/index-CUp9WuCG.js";import{defu as ye}from"defu";import{createJiti as ge}from"jiti";import{cyan as ve,bold as O,gray as be}from"@visulima/colorize";import{e as we,i as J,c as he,y as ke}from"../packem_shared/index-BHVpfOuE.js";import{parsePackageJson as $e}from"@visulima/package/package-json";import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
2
+ var Y=Object.defineProperty;var h=(t,s)=>Y(t,"name",{value:s,configurable:!0});import Q from"@visulima/cerebro";import{SimpleReporter as Z}from"@visulima/pail/reporter";import{cwd as A,exit as ee}from"node:process";import{installPackage as N}from"@antfu/install-pkg";import{spinner as K,select as $,multiselect as F,confirm as w,intro as te,log as G,cancel as se,outro as oe}from"@clack/prompts";import{isAccessible as ie,readFile as ne,writeFile as ae,isAccessibleSync as S,collectSync as re,writeJsonSync as le,writeFileSync as ce}from"@visulima/fs";import{join as j,resolve as M,extname as W,toNamespacedPath as pe}from"@visulima/path";import de from"magic-string";import{t as I,E as V,e as ue,N as q,_ as me,c as fe}from"../packem_shared/index-CUp9WuCG.js";import{defu as ye}from"defu";import{createJiti as ge}from"jiti";import{cyan as ve,bold as O,gray as be}from"@visulima/colorize";import{e as we,i as J,c as he,y as ke}from"../packem_shared/index-CDdkRKp3.js";import{parsePackageJson as $e}from"@visulima/package/package-json";import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
3
3
  const require = __cjs_mod__.createRequire(import.meta.url);
4
- const Se="@visulima/packem",je="2.0.0-alpha.5";var xe=Object.defineProperty,Ce=h((t,s)=>xe(t,"name",{value:s,configurable:!0}),"t$2");const _=Ce(async(t,s="")=>{let e=s;if(!e){const r=["packem.config.js","packem.config.mjs","packem.config.cjs","packem.config.ts","packem.config.cts","packem.config.mts"];for(const n of r)if(await ie(j(t,n))){e=`./${n}`;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"),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"],sass:["sass"],"sass-embedded":["sass-embedded"],stylus:["stylus"]};var Ee=Object.defineProperty,R=h((t,s)=>Ee(t,"name",{value:s,configurable:!0}),"g");const De=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults"],Pe=R(t=>{t.addCommand({argument:{description:"Add a packem feature to your project",name:"feature",required:!0},description:"Add a optional packem feature to your project",execute:R(async({argument:s,logger:e,options:r})=>{const n=K(),i=M(A(),r.dir??".");let p;try{p=await _(i,r.config)}catch{e.error("Could not find a packem config file, please run `packem init` first.");return}const m=await ne(p,{buffer:!1});let y="cjs";m.includes("import")&&(y="esm");const o=new de(m),d=" transformer,";let c=" transformer";if(m.includes(" transformer,")&&(c=" transformer,"),s.includes("typedoc")){if(m.includes("typedoc: typedocBuilder")||m.includes("@visulima/packem/builder/typedoc")){e.warn("Typedoc has already been added to the packem config.");return}y==="cjs"?o.prepend(`const typedocBuilder = require("@visulima/packem/builder/typedoc");
4
+ const Se="@visulima/packem",je="2.0.0-alpha.7";var xe=Object.defineProperty,Ce=h((t,s)=>xe(t,"name",{value:s,configurable:!0}),"t$2");const _=Ce(async(t,s="")=>{let e=s;if(!e){const r=["packem.config.js","packem.config.mjs","packem.config.cjs","packem.config.ts","packem.config.cts","packem.config.mts"];for(const n of r)if(await ie(j(t,n))){e=`./${n}`;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"),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"],sass:["sass"],"sass-embedded":["sass-embedded"],stylus:["stylus"]};var Ee=Object.defineProperty,R=h((t,s)=>Ee(t,"name",{value:s,configurable:!0}),"g");const De=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults"],Pe=R(t=>{t.addCommand({argument:{description:"Add a packem feature to your project",name:"feature",required:!0},description:"Add a optional packem feature to your project",execute:R(async({argument:s,logger:e,options:r})=>{const n=K(),i=M(A(),r.dir??".");let p;try{p=await _(i,r.config)}catch{e.error("Could not find a packem config file, please run `packem init` first.");return}const m=await ne(p,{buffer:!1});let y="cjs";m.includes("import")&&(y="esm");const o=new de(m),d=" transformer,";let c=" transformer";if(m.includes(" transformer,")&&(c=" transformer,"),s.includes("typedoc")){if(m.includes("typedoc: typedocBuilder")||m.includes("@visulima/packem/builder/typedoc")){e.warn("Typedoc has already been added to the packem config.");return}y==="cjs"?o.prepend(`const typedocBuilder = require("@visulima/packem/builder/typedoc");
5
5
  `):o.prepend(`import typedocBuilder from "@visulima/packem/builder/typedoc";
6
6
  `),m.includes("builder: {")?o.replace("builder: {",`builder: {
7
7
  typedoc: typedocBuilder,
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var c=Object.defineProperty;var o=(e,r)=>c(e,"name",{value:r,configurable:!0});import{createPail as s}from"@visulima/pail";import{SimpleReporter as u}from"@visulima/pail/reporter";import{y as g}from"./packem_shared/index-BHVpfOuE.js";var f=Object.defineProperty,l=o((e,r)=>f(e,"name",{value:r,configurable:!0}),"r");const y=l(async(e,r={})=>{const{debug:t,environment:i,logger:a,mode:n,tsconfigPath:m,...d}={debug:!1,environment:"production",logger:{},mode:"build",tsconfigPath:void 0,...r},p=s({reporters:[new u({error:{hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0}})],scope:"packem",...a});await g(e,n,i,p,t,d,m)},"packem");export{y as packem};
1
+ var c=Object.defineProperty;var o=(e,r)=>c(e,"name",{value:r,configurable:!0});import{createPail as s}from"@visulima/pail";import{SimpleReporter as u}from"@visulima/pail/reporter";import{y as g}from"./packem_shared/index-CDdkRKp3.js";var f=Object.defineProperty,l=o((e,r)=>f(e,"name",{value:r,configurable:!0}),"r");const y=l(async(e,r={})=>{const{debug:t,environment:i,logger:a,mode:n,tsconfigPath:m,...d}={debug:!1,environment:"production",logger:{},mode:"build",tsconfigPath:void 0,...r},p=s({reporters:[new u({error:{hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0}})],scope:"packem",...a});await g(e,n,i,p,t,d,m)},"packem");export{y as packem};