@visulima/packem 2.0.0-alpha.25 → 2.0.0-alpha.26
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,14 @@
|
|
|
1
|
+
## @visulima/packem [2.0.0-alpha.26](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.25...@visulima/packem@2.0.0-alpha.26) (2025-10-08)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* update dependencies and improve minification options ([25b69b5](https://github.com/visulima/packem/commit/25b69b50f7631655303a417e61f3a37e2aa3c017))
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Dependencies
|
|
9
|
+
|
|
10
|
+
* **@visulima/packem-rollup:** upgraded to 1.0.0-alpha.21
|
|
11
|
+
|
|
1
12
|
## @visulima/packem [2.0.0-alpha.25](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.24...@visulima/packem@2.0.0-alpha.25) (2025-10-08)
|
|
2
13
|
|
|
3
14
|
### Bug Fixes
|
package/dist/cli/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var re=Object.defineProperty;var k=(s,t)=>re(s,"name",{value:t,configurable:!0});import le from"@visulima/cerebro";import{SimpleReporter as ce}from"@visulima/pail/reporter";import{installPackage as J}from"@antfu/install-pkg";import{spinner as R,select as S,multiselect as ee,confirm as w,intro as de,log as W,cancel as ue,outro as me}from"@clack/prompts";import{isAccessible as fe,readFile as ye,writeFile as ge,isAccessibleSync as j,collectSync as be,writeJsonSync as ve,writeFileSync as we}from"@visulima/fs";import{join as C,resolve as E,extname as se,toNamespacedPath as he}from"@visulima/path";import{t as O,E as G,e as ke,N as te,_ as Se,c as xe}from"../packem_shared/index-CUp9WuCG.js";import{createJiti as Ce}from"jiti";import{cyan as De,bold as V,gray as Ee}from"@visulima/colorize";import{e as Pe,i as _,c as Te,x as Me}from"../packem_shared/index-
|
|
2
|
+
var re=Object.defineProperty;var k=(s,t)=>re(s,"name",{value:t,configurable:!0});import le from"@visulima/cerebro";import{SimpleReporter as ce}from"@visulima/pail/reporter";import{installPackage as J}from"@antfu/install-pkg";import{spinner as R,select as S,multiselect as ee,confirm as w,intro as de,log as W,cancel as ue,outro as me}from"@clack/prompts";import{isAccessible as fe,readFile as ye,writeFile as ge,isAccessibleSync as j,collectSync as be,writeJsonSync as ve,writeFileSync as we}from"@visulima/fs";import{join as C,resolve as E,extname as se,toNamespacedPath as he}from"@visulima/path";import{t as O,E as G,e as ke,N as te,_ as Se,c as xe}from"../packem_shared/index-CUp9WuCG.js";import{createJiti as Ce}from"jiti";import{cyan as De,bold as V,gray as Ee}from"@visulima/colorize";import{e as Pe,i as _,c as Te,x as Me}from"../packem_shared/index-KjC11dSQ.js";import{parsePackageJson as Be}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 Q=globalThis.process.getBuiltinModule("module").createRequire(import.meta.url),{cwd:U,exit:pe}=globalThis.process,$e=Q("magic-string"),{defu:je}=Q("defu"),Ie=globalThis.process.getBuiltinModule("node:fs/promises"),X=globalThis.process.getBuiltinModule("node:path/posix"),Le="@visulima/packem",Oe="2.0.0-alpha.
|
|
4
|
+
const Q=globalThis.process.getBuiltinModule("module").createRequire(import.meta.url),{cwd:U,exit:pe}=globalThis.process,$e=Q("magic-string"),{defu:je}=Q("defu"),Ie=globalThis.process.getBuiltinModule("node:fs/promises"),X=globalThis.process.getBuiltinModule("node:path/posix"),Le="@visulima/packem",Oe="2.0.0-alpha.25";var Ne=Object.defineProperty,Ke=k((s,t)=>Ne(s,"name",{value:t,configurable:!0}),"t$2");const oe=Ke(async(s,t="")=>{let e=t;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 fe(C(s,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"),ie={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 Ae=Object.defineProperty,H=k((s,t)=>Ae(s,"name",{value:t,configurable:!0}),"g");const qe=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults"],Ve=H(s=>{s.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:t,logger:e,options:r})=>{const a=R(),o=E(U(),r.dir??".");let p;try{p=await oe(o,r.config)}catch{e.error("Could not find a packem config file, please run `packem init` first.");return}const u=await ye(p,{buffer:!1});let y="cjs";u.includes("import")&&(y="esm");const i=new $e(u),m=" transformer,";let n=" transformer";if(u.includes(" transformer,")&&(n=" transformer,"),t.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-
|
|
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-KjC11dSQ.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};
|