@visulima/packem 1.11.2 → 1.12.1
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 +20 -0
- package/dist/builder/typedoc/index.cjs +3 -3
- package/dist/builder/typedoc/index.mjs +3 -3
- package/dist/cli.mjs +94 -92
- package/dist/config/index.mjs +1 -1
- package/dist/packem.cjs +74 -74
- package/dist/packem.mjs +80 -80
- package/dist/packem_shared/{Mime-gG42xY61.mjs → Mime-Bx-qqQwc.mjs} +1 -1
- package/dist/packem_shared/create-or-update-key-storage-CckGx9A8.mjs +3 -0
- package/dist/packem_shared/create-or-update-key-storage-Cw8FjvBx.cjs +3 -0
- package/dist/packem_shared/ensure-auto-modules-DZqNdUxP.cjs +1 -0
- package/dist/packem_shared/ensure-auto-modules-DqEPN0fu.mjs +1 -0
- package/dist/packem_shared/index-D0PXAVC1.mjs +1 -0
- package/dist/packem_shared/index-Tbl-mDsb.cjs +1 -0
- package/dist/packem_shared/{resolve-CcpYTonY.mjs → resolve-C7N_MxXM.mjs} +1 -1
- package/dist/packem_shared/resolve-file-B9G3pXxG.cjs +1 -0
- package/dist/packem_shared/resolve-file-D0UE7Ha4.mjs +1 -0
- package/dist/packem_shared/{sourcemap-CXAd1Jcz.cjs → sourcemap-BtmVnsYw.cjs} +2 -2
- package/dist/rollup/plugins/css/loaders/less/index.cjs +1 -1
- package/dist/rollup/plugins/css/loaders/less/index.mjs +1 -1
- package/dist/rollup/plugins/css/loaders/lightningcss.cjs +1 -1
- package/dist/rollup/plugins/css/loaders/lightningcss.mjs +3 -3
- package/dist/rollup/plugins/css/loaders/postcss/index.cjs +10 -10
- package/dist/rollup/plugins/css/loaders/postcss/index.mjs +11 -11
- package/dist/rollup/plugins/css/loaders/sass/index.cjs +6 -6
- package/dist/rollup/plugins/css/loaders/sass/index.mjs +7 -7
- package/dist/rollup/plugins/css/loaders/sourcemap.cjs +1 -1
- package/dist/rollup/plugins/css/loaders/sourcemap.mjs +1 -1
- package/dist/rollup/plugins/css/loaders/stylus/index.cjs +1 -1
- package/dist/rollup/plugins/css/loaders/stylus/index.mjs +1 -1
- package/dist/rollup/plugins/css/minifiers/cssnano.cjs +1 -1
- package/dist/rollup/plugins/css/minifiers/cssnano.mjs +1 -1
- package/dist/rollup/plugins/css/minifiers/lightningcss.mjs +3 -3
- package/dist/rollup/plugins/css/runtime/inject-css.cjs +1 -1
- package/dist/rollup/plugins/css/runtime/inject-css.mjs +1 -1
- package/dist/rollup/plugins/esbuild/index.cjs +1 -1
- package/dist/rollup/plugins/esbuild/index.mjs +2 -2
- package/dist/rollup/plugins/sucrase/index.cjs +1 -1
- package/dist/rollup/plugins/sucrase/index.mjs +1 -1
- package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.cjs +1 -1
- package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.mjs +1 -1
- package/dist/rollup/plugins/swc/swc-plugin.cjs +1 -1
- package/dist/rollup/plugins/swc/swc-plugin.mjs +1 -1
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.cjs +1 -1
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.mjs +2 -2
- package/dist/rollup/utils/sort-user-plugins.d.cts +6 -0
- package/dist/rollup/utils/sort-user-plugins.d.mts +4 -0
- package/dist/rollup/utils/sort-user-plugins.d.ts +6 -0
- package/dist/types.d.cts +2 -1
- package/dist/types.d.mts +2 -1
- package/dist/types.d.ts +2 -1
- package/package.json +2 -2
- package/dist/packem_shared/create-or-update-key-storage-DqBj3nUO.mjs +0 -3
- package/dist/packem_shared/create-or-update-key-storage-j3JKDA99.cjs +0 -3
- package/dist/packem_shared/ensure-auto-modules-9cmxx7iZ.mjs +0 -1
- package/dist/packem_shared/ensure-auto-modules-DBW-5Idh.cjs +0 -1
- package/dist/packem_shared/index-B4tUSomc.cjs +0 -1
- package/dist/packem_shared/index-CsX3kGje.mjs +0 -1
- package/dist/packem_shared/resolve-file-BffLoYJG.cjs +0 -1
- package/dist/packem_shared/resolve-file-CuB1s0x9.mjs +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## @visulima/packem [1.12.1](https://github.com/visulima/packem/compare/@visulima/packem@1.12.0...@visulima/packem@1.12.1) (2025-01-17)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* removed file cache from resolveExternalsPlugin, removed resolveTypescriptMjsCtsPlugin from builds config, added first ecosystem test ([33a3a26](https://github.com/visulima/packem/commit/33a3a26c219939f5abeec3b0152db9b49f4669c8))
|
|
6
|
+
|
|
7
|
+
### Tests
|
|
8
|
+
|
|
9
|
+
* improved tests, added runtime to all test with react ([741a1dd](https://github.com/visulima/packem/commit/741a1dd0913641adf9daf3917b025e708eb04e70))
|
|
10
|
+
|
|
11
|
+
## @visulima/packem [1.12.0](https://github.com/visulima/packem/compare/@visulima/packem@1.11.2...@visulima/packem@1.12.0) (2025-01-17)
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* added new runtime option to switch between browser and node, node is the default. ([59332b7](https://github.com/visulima/packem/commit/59332b7170033de1653d3ff29ce05d083721c28a))
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* fixed check for with and assert based on the node version, now all future node versions are supported ([ac63669](https://github.com/visulima/packem/commit/ac6366983dacf67b1919beb64aaa8d15504f0aee))
|
|
20
|
+
|
|
1
21
|
## @visulima/packem [1.11.2](https://github.com/visulima/packem/compare/@visulima/packem@1.11.1...@visulima/packem@1.11.2) (2025-01-16)
|
|
2
22
|
|
|
3
23
|
### Bug Fixes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
`+
|
|
3
|
-
`),e.logger.info({message:"Using "+
|
|
1
|
+
"use strict";var P=Object.defineProperty;var g=(e,t)=>P(e,"name",{value:t,configurable:!0});const v=require("@visulima/colorize"),h=require("@visulima/path"),k=require("../../packem_shared/create-or-update-key-storage-Cw8FjvBx.cjs"),A=require("node:fs"),y=require("@visulima/fs"),F=require("typedoc");var $=Object.defineProperty,b=g((e,t)=>$(e,"name",{value:t,configurable:!0}),"w");const q=b(async(e,t,r,a)=>{if(t.length===0)return;const{format:n,marker:o,output:R,plugin:j,readmePath:s,jsonFileName:p,...w}=e;if(n==="inline"&&s===void 0)throw new Error("The `readmePath` option is required when using the `inline` format.");if(n!=="inline"&&typeof s=="string"&&a.warn({message:"The `readmePath` option is only used when the `inline` format is used.",prefix:"typedoc"}),n==="json"){if(p===void 0)throw new Error("The `jsonFileName` option is required when using the `json` format.");if(p.endsWith(".json")===!1)throw new Error("The `jsonFileName` option must end with `.json`.")}n!=="json"&&typeof p=="string"&&a.warn({message:"The `jsonFileName` option is only used when the `json` format is used.",prefix:"typedoc"});const E=t.map(f=>f.input),u=j??[];u.push("typedoc-plugin-rename-defaults"),(n==="inline"||n==="markdown")&&u.push("typedoc-plugin-markdown");const d=await F.Application.bootstrapWithPlugins({...w,compilerOptions:{allowJs:!0,declaration:!1,declarationMap:!1,esModuleInterop:!0,module:99,moduleResolution:100,noEmit:!0,noImplicitAny:!1,skipLibCheck:!0,sourceMap:!1,target:99,...w.compilerOptions},entryPoints:E,hideGenerator:!0,plugin:u,out:r,...n==="inline"?{hideBreadcrumbs:!0,hidePageHeader:!0,navigation:!1,outputFileStrategy:"modules",useCodeBlocks:!0}:{}},[]),l=await d.convert();if(l){if(n==="json")await d.generateJson(l,p);else if(n==="html")await d.generateDocs(l,r);else if(await d.generateOutputs(l),n==="inline"){if(o===void 0)throw new Error("The `marker` option is required when using the `inline` format.");const f=A.readdirSync(r,{withFileTypes:!0}).filter(i=>i.isFile());let m="";for(const i of f)i.name==="README.md"&&t.length>1||(m+=y.readFileSync(h.join(r,i.name)).replaceAll(`<!-- ${o}`,`<!-- _REPLACE_${o}`).replaceAll("<!-- ${marker}",`<!-- _REPLACE_\\${o}`));if(m!==""){const i=y.readFileSync(s),c=k.g(i,o,`
|
|
2
|
+
`+m);if(!c){a.error({message:`Could not find the typedoc marker: <!-- ${o} --><!-- /${o} --> in ${s}`,prefix:"typedoc"});return}if(i===c)return;c&&y.writeFileSync(s,c.replaceAll(`<!-- _REPLACE_${o}`,`<!-- ${o}`).replaceAll(`<!-- _REPLACE_\\${o}`,"<!-- ${marker}"),{overwrite:!0})}}}},"generateReferenceDocumentation");var _=Object.defineProperty,T=g((e,t)=>_(e,"name",{value:t,configurable:!0}),"r");const C=T(async(e,t,r,a)=>{if(e.options.typedoc&&e.options.typedoc.format!==void 0){let n="unknown";e.pkg.dependencies?.typedoc?n=e.pkg.dependencies.typedoc:e.pkg.devDependencies?.typedoc&&(n=e.pkg.devDependencies.typedoc),t&&k.d("typedoc",t,e.logger,!0),a&&e.logger.raw(`
|
|
3
|
+
`),e.logger.info({message:"Using "+v.cyan("typedoc")+" "+n+" to generate reference documentation",prefix:"typedoc"}),await e.hooks.callHook("typedoc:before",e);let o=e.options.rootDir;e.options.typedoc.output?o=e.options.typedoc.output:e.options.typedoc.format==="inline"&&t?o=h.join(t,"typedoc"):e.options.typedoc.format!=="json"&&(o=h.join(o,"api-docs")),await q(e.options.typedoc,e.options.entries,o,e.logger),await e.hooks.callHook("typedoc:done",e)}},"builder");module.exports=C;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var j=Object.defineProperty;var g=(e,t)=>j(e,"name",{value:t,configurable:!0});import{cyan as
|
|
2
|
-
`+
|
|
3
|
-
`),e.logger.info({message:"Using "+
|
|
1
|
+
var j=Object.defineProperty;var g=(e,t)=>j(e,"name",{value:t,configurable:!0});import{cyan as P}from"@visulima/colorize";import{join as h}from"@visulima/path";import{g as v,d as A}from"../../packem_shared/create-or-update-key-storage-CckGx9A8.mjs";import{readdirSync as $}from"node:fs";import{readFileSync as w,writeFileSync as F}from"@visulima/fs";import{Application as b}from"typedoc";var T=Object.defineProperty,_=g((e,t)=>T(e,"name",{value:t,configurable:!0}),"w");const C=_(async(e,t,r,a)=>{if(t.length===0)return;const{format:n,marker:o,output:x,plugin:k,readmePath:s,jsonFileName:p,...y}=e;if(n==="inline"&&s===void 0)throw new Error("The `readmePath` option is required when using the `inline` format.");if(n!=="inline"&&typeof s=="string"&&a.warn({message:"The `readmePath` option is only used when the `inline` format is used.",prefix:"typedoc"}),n==="json"){if(p===void 0)throw new Error("The `jsonFileName` option is required when using the `json` format.");if(p.endsWith(".json")===!1)throw new Error("The `jsonFileName` option must end with `.json`.")}n!=="json"&&typeof p=="string"&&a.warn({message:"The `jsonFileName` option is only used when the `json` format is used.",prefix:"typedoc"});const E=t.map(f=>f.input),u=k??[];u.push("typedoc-plugin-rename-defaults"),(n==="inline"||n==="markdown")&&u.push("typedoc-plugin-markdown");const l=await b.bootstrapWithPlugins({...y,compilerOptions:{allowJs:!0,declaration:!1,declarationMap:!1,esModuleInterop:!0,module:99,moduleResolution:100,noEmit:!0,noImplicitAny:!1,skipLibCheck:!0,sourceMap:!1,target:99,...y.compilerOptions},entryPoints:E,hideGenerator:!0,plugin:u,out:r,...n==="inline"?{hideBreadcrumbs:!0,hidePageHeader:!0,navigation:!1,outputFileStrategy:"modules",useCodeBlocks:!0}:{}},[]),d=await l.convert();if(d){if(n==="json")await l.generateJson(d,p);else if(n==="html")await l.generateDocs(d,r);else if(await l.generateOutputs(d),n==="inline"){if(o===void 0)throw new Error("The `marker` option is required when using the `inline` format.");const f=$(r,{withFileTypes:!0}).filter(i=>i.isFile());let m="";for(const i of f)i.name==="README.md"&&t.length>1||(m+=w(h(r,i.name)).replaceAll(`<!-- ${o}`,`<!-- _REPLACE_${o}`).replaceAll("<!-- ${marker}",`<!-- _REPLACE_\\${o}`));if(m!==""){const i=w(s),c=v(i,o,`
|
|
2
|
+
`+m);if(!c){a.error({message:`Could not find the typedoc marker: <!-- ${o} --><!-- /${o} --> in ${s}`,prefix:"typedoc"});return}if(i===c)return;c&&F(s,c.replaceAll(`<!-- _REPLACE_${o}`,`<!-- ${o}`).replaceAll(`<!-- _REPLACE_\\${o}`,"<!-- ${marker}"),{overwrite:!0})}}}},"generateReferenceDocumentation");var R=Object.defineProperty,D=g((e,t)=>R(e,"name",{value:t,configurable:!0}),"r");const B=D(async(e,t,r,a)=>{if(e.options.typedoc&&e.options.typedoc.format!==void 0){let n="unknown";e.pkg.dependencies?.typedoc?n=e.pkg.dependencies.typedoc:e.pkg.devDependencies?.typedoc&&(n=e.pkg.devDependencies.typedoc),t&&A("typedoc",t,e.logger,!0),a&&e.logger.raw(`
|
|
3
|
+
`),e.logger.info({message:"Using "+P("typedoc")+" "+n+" to generate reference documentation",prefix:"typedoc"}),await e.hooks.callHook("typedoc:before",e);let o=e.options.rootDir;e.options.typedoc.output?o=e.options.typedoc.output:e.options.typedoc.format==="inline"&&t?o=h(t,"typedoc"):e.options.typedoc.format!=="json"&&(o=h(o,"api-docs")),await C(e.options.typedoc,e.options.entries,o,e.logger),await e.hooks.callHook("typedoc:done",e)}},"builder");export{B as default};
|