@visulima/packem 1.19.3 → 1.19.4

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,9 @@
1
+ ## @visulima/packem [1.19.4](https://github.com/visulima/packem/compare/@visulima/packem@1.19.3...@visulima/packem@1.19.4) (2025-05-29)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **deps:** update dependency @swc/core to >=1.11.29 ([#149](https://github.com/visulima/packem/issues/149)) ([1b399bb](https://github.com/visulima/packem/commit/1b399bb24148cd5808cc9547f29dfcdb3c3d48b3))
6
+
1
7
  ## @visulima/packem [1.19.3](https://github.com/visulima/packem/compare/@visulima/packem@1.19.2...@visulima/packem@1.19.3) (2025-05-29)
2
8
 
3
9
  ### Bug Fixes
@@ -5,7 +5,7 @@ import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
5
5
  const __filename = __cjs_url__.fileURLToPath(import.meta.url);
6
6
  const __dirname = __cjs_path__.dirname(__filename);
7
7
  const require = __cjs_mod__.createRequire(import.meta.url);
8
- const Wa="@visulima/packem",Ua="1.19.2";var Va=Object.defineProperty,Ka=v((e,t)=>Va(e,"name",{value:t,configurable:!0}),"t$f");const Fi=Ka(async(e,t="")=>{let i=t;if(!i){const o=["packem.config.js","packem.config.mjs","packem.config.cjs","packem.config.ts","packem.config.cts","packem.config.mts"];for(const a of o)if(await Xe(j(e,a))){i=`./${a}`;break}}if(!/\.(?:js|mjs|cjs|ts|cts|mts)$/.test(i))throw new Error("Invalid packem config file extension. Only .js, .mjs, .cjs, .ts, .cts and .mts extensions are allowed.");return i},"findPackemFile"),Ri={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","icss-utils"],sass:["sass"],"sass-embedded":["sass-embedded"],stylus:["stylus"]};var Ga=Object.defineProperty,qt=v((e,t)=>Ga(e,"name",{value:t,configurable:!0}),"g$9");const Ha=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults"],Ya=qt(e=>{e.addCommand({argument:{description:"Add a packem feature to your project",name:"feature",required:!0},description:"Add a optional packem feature to your project",execute:qt(async({argument:t,logger:i,options:o})=>{const a=xt(),s=S(Et(),o.dir??".");let n;try{n=await Fi(s,o.config)}catch{i.error("Could not find a packem config file, please run `packem init` first.");return}const c=await Ce(n,{buffer:!1});let l="cjs";c.includes("import")&&(l="esm");const r=new L(c),p=" transformer,";let u=" transformer";if(c.includes(" transformer,")&&(u=" transformer,"),t.includes("typedoc")){if(c.includes("typedoc: typedocBuilder")||c.includes("@visulima/packem/builder/typedoc")){i.warn("Typedoc has already been added to the packem config.");return}l==="cjs"?r.prepend(`const typedocBuilder = require("@visulima/packem/builder/typedoc");
8
+ const Wa="@visulima/packem",Ua="1.19.3";var Va=Object.defineProperty,Ka=v((e,t)=>Va(e,"name",{value:t,configurable:!0}),"t$f");const Fi=Ka(async(e,t="")=>{let i=t;if(!i){const o=["packem.config.js","packem.config.mjs","packem.config.cjs","packem.config.ts","packem.config.cts","packem.config.mts"];for(const a of o)if(await Xe(j(e,a))){i=`./${a}`;break}}if(!/\.(?:js|mjs|cjs|ts|cts|mts)$/.test(i))throw new Error("Invalid packem config file extension. Only .js, .mjs, .cjs, .ts, .cts and .mts extensions are allowed.");return i},"findPackemFile"),Ri={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","icss-utils"],sass:["sass"],"sass-embedded":["sass-embedded"],stylus:["stylus"]};var Ga=Object.defineProperty,qt=v((e,t)=>Ga(e,"name",{value:t,configurable:!0}),"g$9");const Ha=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults"],Ya=qt(e=>{e.addCommand({argument:{description:"Add a packem feature to your project",name:"feature",required:!0},description:"Add a optional packem feature to your project",execute:qt(async({argument:t,logger:i,options:o})=>{const a=xt(),s=S(Et(),o.dir??".");let n;try{n=await Fi(s,o.config)}catch{i.error("Could not find a packem config file, please run `packem init` first.");return}const c=await Ce(n,{buffer:!1});let l="cjs";c.includes("import")&&(l="esm");const r=new L(c),p=" transformer,";let u=" transformer";if(c.includes(" transformer,")&&(u=" transformer,"),t.includes("typedoc")){if(c.includes("typedoc: typedocBuilder")||c.includes("@visulima/packem/builder/typedoc")){i.warn("Typedoc has already been added to the packem config.");return}l==="cjs"?r.prepend(`const typedocBuilder = require("@visulima/packem/builder/typedoc");
9
9
  `):r.prepend(`import typedocBuilder from "@visulima/packem/builder/typedoc";
10
10
  `),c.includes("builder: {")?r.replace("builder: {",`builder: {
11
11
  typedoc: typedocBuilder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/packem",
3
- "version": "1.19.3",
3
+ "version": "1.19.4",
4
4
  "description": "A fast and modern bundler for Node.js and TypeScript.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -393,7 +393,7 @@
393
393
  "tinyglobby": "0.2.14"
394
394
  },
395
395
  "peerDependencies": {
396
- "@swc/core": ">=1.5.7",
396
+ "@swc/core": ">=1.11.29",
397
397
  "cssnano": ">=7.0.6",
398
398
  "esbuild": ">=0.20.2",
399
399
  "icss-utils": ">=5.1.0",