@visulima/packem 2.0.0-alpha.23 → 2.0.0-alpha.24

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,18 @@
1
+ ## @visulima/packem [2.0.0-alpha.24](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.23...@visulima/packem@2.0.0-alpha.24) (2025-10-07)
2
+
3
+ ### Bug Fixes
4
+
5
+ * update documentation and references from Packen to Packem ([9983009](https://github.com/visulima/packem/commit/99830099c953e2b12269ea18606838d80f1e6e2b))
6
+
7
+ ### Miscellaneous Chores
8
+
9
+ * update package.json dependencies for packem and rollup-plugin-css ([8ff92d6](https://github.com/visulima/packem/commit/8ff92d6a904882076bda9ac796b4fe8740fc4f57))
10
+
11
+
12
+ ### Dependencies
13
+
14
+ * **@visulima/packem-rollup:** upgraded to 1.0.0-alpha.19
15
+
1
16
  ## @visulima/packem [2.0.0-alpha.23](https://github.com/visulima/packem/compare/@visulima/packem@2.0.0-alpha.22...@visulima/packem@2.0.0-alpha.23) (2025-10-02)
2
17
 
3
18
  ### Bug Fixes
@@ -1,5 +1,5 @@
1
- import { B as BuildContext } from '../../packem_shared/index-CzQ8bh8T.js';
2
- import { I as InternalBuildOptions } from '../../packem_shared/types-XVKzG-HR.js';
1
+ import { B as BuildContext } from '../../packem_shared/index-DrmPUIt8.js';
2
+ import { I as InternalBuildOptions } from '../../packem_shared/types-Hhg8-okS.js';
3
3
  import '@rollup/plugin-alias';
4
4
  import '@rollup/plugin-commonjs';
5
5
  import '@rollup/plugin-json';
package/dist/cli/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- var Q=Object.defineProperty;var k=(s,t)=>Q(s,"name",{value:t,configurable:!0});import Z from"@visulima/cerebro";import{SimpleReporter as ee}from"@visulima/pail/reporter";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 R,cancel as oe,outro as ie}from"@clack/prompts";import{isAccessible as ne,readFile as ae,writeFile as re,isAccessibleSync as S,collectSync as le,writeJsonSync as ce,writeFileSync as pe}from"@visulima/fs";import{join as x,resolve as T,extname as W,toNamespacedPath as de}from"@visulima/path";import{t as I,E as q,e as me,N as V,_ as fe,c as ye}from"../packem_shared/index-CUp9WuCG.js";import{createJiti as ve}from"jiti";import{cyan as be,bold as O,gray as we}from"@visulima/colorize";import{e as he,i as G,c as ke,x as $e}from"../packem_shared/index-D1mgDFnu.js";import{parsePackageJson as Se}from"@visulima/package/package-json";import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
2
+ var Q=Object.defineProperty;var k=(s,t)=>Q(s,"name",{value:t,configurable:!0});import Z from"@visulima/cerebro";import{SimpleReporter as ee}from"@visulima/pail/reporter";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 R,cancel as oe,outro as ie}from"@clack/prompts";import{isAccessible as ne,readFile as ae,writeFile as re,isAccessibleSync as S,collectSync as le,writeJsonSync as ce,writeFileSync as pe}from"@visulima/fs";import{join as x,resolve as T,extname as W,toNamespacedPath as de}from"@visulima/path";import{t as I,E as q,e as me,N as V,_ as fe,c as ye}from"../packem_shared/index-CUp9WuCG.js";import{createJiti as ve}from"jiti";import{cyan as be,bold as O,gray as we}from"@visulima/colorize";import{e as he,i as G,c as ke,x as $e}from"../packem_shared/index-DQUk9_13.js";import{parsePackageJson as Se}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 _=globalThis.process.getBuiltinModule("module").createRequire(import.meta.url),{cwd:A,exit:se}=globalThis.process,ue=_("magic-string"),{defu:ge}=_("defu"),xe="@visulima/packem",je="2.0.0-alpha.22";var Ce=Object.defineProperty,Ee=k((s,t)=>Ce(s,"name",{value:t,configurable:!0}),"t$2");const X=Ee(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 n of r)if(await ne(x(s,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"),H={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 De=Object.defineProperty,J=k((s,t)=>De(s,"name",{value:t,configurable:!0}),"g");const Pe=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults"],Ie=J(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:J(async({argument:t,logger:e,options:r})=>{const n=K(),i=T(A(),r.dir??".");let d;try{d=await X(i,r.config)}catch{e.error("Could not find a packem config file, please run `packem init` first.");return}const f=await ae(d,{buffer:!1});let y="cjs";f.includes("import")&&(y="esm");const o=new ue(f),u=" transformer,";let p=" transformer";if(f.includes(" transformer,")&&(p=" transformer,"),t.includes("typedoc")){if(f.includes("typedoc: typedocBuilder")||f.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 _=globalThis.process.getBuiltinModule("module").createRequire(import.meta.url),{cwd:A,exit:se}=globalThis.process,ue=_("magic-string"),{defu:ge}=_("defu"),xe="@visulima/packem",je="2.0.0-alpha.23";var Ce=Object.defineProperty,Ee=k((s,t)=>Ce(s,"name",{value:t,configurable:!0}),"t$2");const X=Ee(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 n of r)if(await ne(x(s,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"),H={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 De=Object.defineProperty,J=k((s,t)=>De(s,"name",{value:t,configurable:!0}),"g");const Pe=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults"],Ie=J(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:J(async({argument:t,logger:e,options:r})=>{const n=K(),i=T(A(),r.dir??".");let d;try{d=await X(i,r.config)}catch{e.error("Could not find a packem config file, please run `packem init` first.");return}const f=await ae(d,{buffer:!1});let y="cjs";f.includes("import")&&(y="esm");const o=new ue(f),u=" transformer,";let p=" transformer";if(f.includes(" transformer,")&&(p=" transformer,"),t.includes("typedoc")){if(f.includes("typedoc: typedocBuilder")||f.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
  `),f.includes("builder: {")?o.replace("builder: {",`builder: {
7
7
  typedoc: typedocBuilder,
@@ -1,5 +1,5 @@
1
- import { B as BuildConfig, c as BuildConfigFunction, d as BuildPreset } from '../packem_shared/types-XVKzG-HR.js';
2
- export { d as BuildHooks } from '../packem_shared/index-CzQ8bh8T.js';
1
+ import { B as BuildConfig, c as BuildConfigFunction, d as BuildPreset } from '../packem_shared/types-Hhg8-okS.js';
2
+ export { d as BuildHooks } from '../packem_shared/index-DrmPUIt8.js';
3
3
  import '@arethetypeswrong/core';
4
4
  import '@visulima/rollup-plugin-css';
5
5
  import 'jiti';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { ConstructorOptions } from '@visulima/pail';
2
- import { B as BuildConfig } from './packem_shared/types-XVKzG-HR.js';
3
- export { a as BuildEntry, b as BuildOptions, R as RollupBuildOptions } from './packem_shared/types-XVKzG-HR.js';
4
- import { E as Environment, M as Mode } from './packem_shared/index-CzQ8bh8T.js';
5
- export { B as BuildContext, b as BuildContextBuildAssetAndChunk, c as BuildContextBuildEntry, d as BuildHooks, I as IsolatedDeclarationsTransformer, R as Runtime, T as TransformerFn, a as TransformerName } from './packem_shared/index-CzQ8bh8T.js';
2
+ import { B as BuildConfig } from './packem_shared/types-Hhg8-okS.js';
3
+ export { a as BuildEntry, b as BuildOptions, R as RollupBuildOptions } from './packem_shared/types-Hhg8-okS.js';
4
+ import { E as Environment, M as Mode } from './packem_shared/index-DrmPUIt8.js';
5
+ export { B as BuildContext, b as BuildContextBuildAssetAndChunk, c as BuildContextBuildEntry, d as BuildHooks, I as IsolatedDeclarationsTransformer, R as Runtime, T as TransformerFn, a as TransformerName } from './packem_shared/index-DrmPUIt8.js';
6
6
  import '@arethetypeswrong/core';
7
7
  import '@visulima/rollup-plugin-css';
8
8
  import 'jiti';
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-D1mgDFnu.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-DQUk9_13.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};