@visulima/packem 2.0.0-alpha.33 → 2.0.0-alpha.35

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,21 @@
1
+ ## @visulima/packem [2.0.0-alpha.35](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.34...@visulima/packem@2.0.0-alpha.35) (2025-11-11)
2
+
3
+ ### Bug Fixes
4
+
5
+ * improve isolated declarations plugin and update filtering logic ([7efdf0d](https://github.com/visulima/packem/commit/7efdf0d052805a3d46cf767447728ca3d537fc24))
6
+ * update license files and improve plugin configurations ([6372411](https://github.com/visulima/packem/commit/6372411fefbad9cb67d912c1447994b93a9ebc6f))
7
+
8
+
9
+ ### Dependencies
10
+
11
+ * **@visulima/packem-rollup:** upgraded to 1.0.0-alpha.27
12
+
13
+ ## @visulima/packem [2.0.0-alpha.34](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.33...@visulima/packem@2.0.0-alpha.34) (2025-11-10)
14
+
15
+ ### Bug Fixes
16
+
17
+ * update dependencies and configurations across multiple packages ([74aeb65](https://github.com/visulima/packem/commit/74aeb6569713c08d19f5581952febf9934c56024))
18
+
1
19
  ## @visulima/packem [2.0.0-alpha.33](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.32...@visulima/packem@2.0.0-alpha.33) (2025-11-08)
2
20
 
3
21
  ### Features
package/dist/cli/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- var ae=Object.defineProperty;var k=(t,s)=>ae(t,"name",{value:s,configurable:!0});import re from"@visulima/cerebro";import{SimpleReporter as le}from"@visulima/pail/reporter";import{cwd as U,exit as ce}from"node:process";import{installPackage as q}from"@antfu/install-pkg";import{spinner as R,select as S,multiselect as Q,confirm as w,intro as pe,log as W,cancel as de,outro as ue}from"@clack/prompts";import{isAccessible as me,readFile as fe,writeFile as ye,isAccessibleSync as j,collectSync as ge,writeJsonSync as be,writeFileSync as ve}from"@visulima/fs";import{join as C,resolve as E,extname as ee,toNamespacedPath as we}from"@visulima/path";import he from"magic-string";import{t as O,E as G,e as $e,N as te,_ as ke,c as Se}from"../packem_shared/index-CUp9WuCG.js";import{defu as xe}from"defu";import{createJiti as je}from"jiti";import{cyan as Ce,bold as J,gray as De}from"@visulima/colorize";import{e as Ee,i as _,c as Pe,x as Ie}from"../packem_shared/index-BgdmVZI8.js";import Me from"node:fs/promises";import X from"node:path/posix";import{parsePackageJson as Te}from"@visulima/package/package-json";import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
2
+ var ae=Object.defineProperty;var k=(t,s)=>ae(t,"name",{value:s,configurable:!0});import re from"@visulima/cerebro";import{SimpleReporter as le}from"@visulima/pail/reporter";import{cwd as U,exit as ce}from"node:process";import{installPackage as q}from"@antfu/install-pkg";import{spinner as R,select as S,multiselect as Q,confirm as w,intro as pe,log as W,cancel as de,outro as ue}from"@clack/prompts";import{isAccessible as me,readFile as fe,writeFile as ye,isAccessibleSync as j,collectSync as ge,writeJsonSync as be,writeFileSync as ve}from"@visulima/fs";import{join as C,resolve as E,extname as ee,toNamespacedPath as we}from"@visulima/path";import he from"magic-string";import{t as O,E as G,e as $e,N as te,_ as ke,c as Se}from"../packem_shared/index-CUp9WuCG.js";import{defu as xe}from"defu";import{createJiti as je}from"jiti";import{cyan as Ce,bold as J,gray as De}from"@visulima/colorize";import{e as Ee,i as _,c as Pe,x as Ie}from"../packem_shared/index-ClFhhCHV.js";import Me from"node:fs/promises";import X from"node:path/posix";import{parsePackageJson as Te}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 Le="@visulima/packem",Be="2.0.0-alpha.32";var Oe=Object.defineProperty,Ne=k((t,s)=>Oe(t,"name",{value:s,configurable:!0}),"t$2");const se=Ne(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 a of r)if(await me(C(t,a))){e=`./${a}`;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"),oe={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 Ke=Object.defineProperty,H=k((t,s)=>Ke(t,"name",{value:s,configurable:!0}),"g");const Ae=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults"],Ve=H(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:H(async({argument:s,logger:e,options:r})=>{const a=R(),o=E(U(),r.dir??".");let p;try{p=await se(o,r.config)}catch{e.error("Could not find a packem config file, please run `packem init` first.");return}const u=await fe(p,{buffer:!1});let y="cjs";u.includes("import")&&(y="esm");const i=new he(u),m=" transformer,";let n=" transformer";if(u.includes(" transformer,")&&(n=" transformer,"),s.includes("typedoc")){if(u.includes("typedoc: typedocBuilder")||u.includes("@visulima/packem/builder/typedoc")){e.warn("Typedoc has already been added to the packem config.");return}y==="cjs"?i.prepend(`const typedocBuilder = require("@visulima/packem/builder/typedoc");
4
+ var Le="@visulima/packem",Be="2.0.0-alpha.34",Oe=Object.defineProperty,Ne=k((t,s)=>Oe(t,"name",{value:s,configurable:!0}),"t$2");const se=Ne(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 a of r)if(await me(C(t,a))){e=`./${a}`;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"),oe={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 Ke=Object.defineProperty,H=k((t,s)=>Ke(t,"name",{value:s,configurable:!0}),"g");const Ae=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults"],Ve=H(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:H(async({argument:s,logger:e,options:r})=>{const a=R(),o=E(U(),r.dir??".");let p;try{p=await se(o,r.config)}catch{e.error("Could not find a packem config file, please run `packem init` first.");return}const u=await fe(p,{buffer:!1});let y="cjs";u.includes("import")&&(y="esm");const i=new he(u),m=" transformer,";let n=" transformer";if(u.includes(" transformer,")&&(n=" transformer,"),s.includes("typedoc")){if(u.includes("typedoc: typedocBuilder")||u.includes("@visulima/packem/builder/typedoc")){e.warn("Typedoc has already been added to the packem config.");return}y==="cjs"?i.prepend(`const typedocBuilder = require("@visulima/packem/builder/typedoc");
5
5
  `):i.prepend(`import typedocBuilder from "@visulima/packem/builder/typedoc";
6
6
  `),u.includes("builder: {")?i.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{x as g}from"./packem_shared/index-BgdmVZI8.js";var f=Object.defineProperty,l=o((e,r)=>f(e,"name",{value:r,configurable:!0}),"r");const C=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{C 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{x as g}from"./packem_shared/index-ClFhhCHV.js";var f=Object.defineProperty,l=o((e,r)=>f(e,"name",{value:r,configurable:!0}),"r");const C=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{C as packem};