@visulima/packem 1.3.0-alpha.1 → 1.4.0
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 +12 -0
- package/dist/cli.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## @visulima/packem [1.4.0](https://github.com/visulima/packem/compare/@visulima/packem@1.3.0...@visulima/packem@1.4.0) (2024-11-04)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* support css (PostCSS, Sass, Less, Stylus, Lightningcss) ([#28](https://github.com/visulima/packem/issues/28)) ([#46](https://github.com/visulima/packem/issues/46)) ([314d71f](https://github.com/visulima/packem/commit/314d71f66258c8a229dd309c1c382a6fc3ddcc45))
|
|
6
|
+
|
|
1
7
|
## @visulima/packem [1.3.0-alpha.1](https://github.com/visulima/packem/compare/@visulima/packem@1.2.2...@visulima/packem@1.3.0-alpha.1) (2024-11-04)
|
|
2
8
|
|
|
3
9
|
### Features
|
|
@@ -25,6 +31,12 @@
|
|
|
25
31
|
|
|
26
32
|
* skip css test if prod build ([9910924](https://github.com/visulima/packem/commit/991092433d7502fba9cb52dce08182a0f3f7559f))
|
|
27
33
|
|
|
34
|
+
## @visulima/packem [1.3.0](https://github.com/visulima/packem/compare/@visulima/packem@1.2.2...@visulima/packem@1.3.0) (2024-11-04)
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* added onSuccess - execute a command/function after successful run ([#50](https://github.com/visulima/packem/issues/50)) ([df34a47](https://github.com/visulima/packem/commit/df34a47d2b7e5def48044562765389495e9799f8))
|
|
39
|
+
|
|
28
40
|
## @visulima/packem [1.2.0-alpha.3](https://github.com/visulima/packem/compare/@visulima/packem@1.2.0-alpha.2...@visulima/packem@1.2.0-alpha.3) (2024-10-31)
|
|
29
41
|
|
|
30
42
|
### Bug Fixes
|
package/dist/cli.mjs
CHANGED
|
@@ -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 Gs="@visulima/packem",Hs="1.
|
|
8
|
+
const Gs="@visulima/packem",Hs="1.3.0-alpha.1";var Ys=Object.defineProperty,Xs=m((e,t)=>Ys(e,"name",{value:t,configurable:!0}),"t$c");const io=Xs(async(e,t="")=>{let o=t;if(!o){const s=["packem.config.js","packem.config.mjs","packem.config.cjs","packem.config.ts","packem.config.cts","packem.config.mts"];for(const r of s)if(await rt(x(e,r))){o="./"+r;break}}if(!/\.(?:js|mjs|cjs|ts|cts|mts)$/.test(o))throw new Error("Invalid packem config file extension. Only .js, .mjs, .cjs, .ts, .cts and .mts extensions are allowed.");return o},"findPackemFile");var Qs=Object.defineProperty,bt=m((e,t)=>Qs(e,"name",{value:t,configurable:!0}),"d$j");const Zs=["typedoc","typedoc-plugin-markdown","typedoc-plugin-rename-defaults","@ckeditor/typedoc-plugins"],er=bt(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:bt(async({argument:t,logger:o,options:s})=>{const r=k(Xo(),s.dir??"."),n=await io(r,s.config??""),i=await nt(n,{buffer:!1}),a=new G(i);if(t.includes("typedoc")){if(i.includes("typedoc: typedocBuilder")||i.includes("@visulima/packem/builder/typedoc")){o.warn("Typedoc has already been added to the packem config.");return}o.info("Adding typedoc dependencies..."),await ce(Zs,{cwd:process.cwd(),dev:!0,silent:!0}),a.prepend(`import typedocBuilder from "@visulima/packem/builder/typedoc";
|
|
9
9
|
`),i.includes("builder: {")?a.replace("builder: {",`builder: {
|
|
10
10
|
typedoc: typedocBuilder,
|
|
11
11
|
`):a.replace("transformer,",`transformer,
|