untitledui 0.1.14 → 0.1.15

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -29,4 +29,4 @@ Your project is ready, you can now start adding components.`)}}var n1=G.join(a1.
29
29
  Failed to add the component ${H.red(B?.example)}`),console.error(H.red(W)),process.exit(1)}if(J.size&&!B?.overwrite)if(console.log(`
30
30
  Following files already exist in the directory.`),J.forEach((q)=>{console.log(H.green(`- ${G.relative(z,q.path)}`))}),(await s({type:"confirm",name:"overwrite",message:"Do you want to overwrite the existing files?",initial:!0})).overwrite){let q=X0("Overwriting files").start();J.forEach((L)=>{let S=G.relative(G.resolve(z,`${Z?.isSrcDir&&"src"}`,B.path),L.path).split("/").length,V=S===1?"./":"../".repeat(S-1),C=R.addSourceFileAtPath(G.resolve(L.path));C.replaceWithText(L.code),C.getImportDeclarations().forEach((u)=>{let g=u.getModuleSpecifierValue();u.setModuleSpecifier(t(g,B.path,Z?.aliasPrefix,V))}),C.saveSync()}),q.succeed("Files are overwritten")}else console.log(`Use ${H.cyan("--overwrite")} or ${H.cyan("-o")} to overwrite existing files, or refer to the documentation ${H.cyan("https://untitled.xyz/docs")} for manual installation. The rest of the files are added.`),process.exit(1);let $=x();if(U?.dependencies?.length){let W=X0("Installing example dependencies").start();await F0(()=>j0($,[$==="npm"?"install":"add",...U.dependencies],{cwd:z}).catch(async(q)=>{if(q.message.includes("peer"))W.warn("Dependency conflict detected. Retrying with --legacy-peer-deps..."),W.start("Installing dependencies with --legacy-peer-deps flag"),await j0($,[$==="npm"?"install":"add",...U.dependencies,"--legacy-peer-deps"],{cwd:z})}),{retries:1}),W.succeed("Example dependencies are installed")}if(U?.devDependencies?.length){let W=X0("Installing example devDependencies").start();await F0(()=>j0($,[$==="npm"?"install":"add","-D",...U.devDependencies],{cwd:z}).catch(async(q)=>{if(q.message.includes("peer"))W.warn("DevDependency conflict detected. Retrying with --legacy-peer-deps..."),W.start("Installing devDependencies with --legacy-peer-deps flag"),await j0($,[$==="npm"?"install":"add","-D",...U.devDependencies,"--legacy-peer-deps"],{cwd:z})}),{retries:1}),W.succeed("Example devDependencies are installed")}if(B?.components?.length)await F0(()=>R0({components:B.components,dir:P0?.projectPath||"",path:B.path,message:`
31
31
  \uD83C\uDF89 Example ${H.green(B.example)} has been added to ${H.green(A)}`}),{retries:1});console.log(`
32
- \uD83C\uDF89 Example ${H.green(B.example)} has been added to ${H.green(A)}`),process.exit(0)}var g0={name:"untitledui",version:"0.1.13",main:"dist/index.mjs",description:"Untitled UI CLI",type:"module",publishConfig:{access:"public"},scripts:{test:'echo "Error: no test specified" && exit 1',dev:"bun build --entrypoints ./index.ts --entry-naming=[name].mjs --outdir=dist --target=node --minify --packages=external --env=inline --define=process.env.API_URL=http://localhost:3000/react/api --watch",build:"bun build --entrypoints ./index.ts --entry-naming=[name].mjs --outdir=dist --target=node --minify --packages=external --env=inline --define=process.env.API_URL=https://untitledui.xyz/react/api","publish:npm":"bun run build && npm publish --access public",start:"node dist/index.mjs"},repository:{type:"git",url:"https://github.com/a-peak-works/untitledui-tailwind.git"},bugs:{url:"https://github.com/a-peak-works/untitledui-tailwind/issues"},homepage:"https://github.com/a-peak-works/untitledui-tailwind#readme",keywords:["untitled-ui","cli","tailwindcss","nextjs"],files:["dist","config"],author:"",license:"MIT",bin:{untitledui:"dist/index.mjs"},exports:"./dist/index.mjs",dependencies:{"async-retry":"^1.3.3",chalk:"^5.4.1",commander:"^13.1.0",execa:"^7.0.0","fast-glob":"^3.3.3","node-fetch":"^3.3.2",open:"^10.1.0",ora:"^8.2.0",prettier:"^3.5.3",prompts:"^2.4.2",tar:"^7.4.3","ts-morph":"^25.0.1","tsconfig-paths":"^4.2.0","update-check":"^1.5.4"},devDependencies:{"@types/async-retry":"^1.4.9","@types/prompts":"^2.4.9","@types/tar":"^6.1.13","type-fest":"^4.37.0",typescript:"^5.8.2"}};process.on("SIGINT",()=>process.exit(0));process.on("SIGTERM",()=>process.exit(0));async function o1(){let Q=new p1().name(g0.name).version(g0.version);Q.addCommand(Y1).addCommand(a0).addCommand(Q1).addCommand(i0),Q.parse()}o1();
32
+ \uD83C\uDF89 Example ${H.green(B.example)} has been added to ${H.green(A)}`),process.exit(0)}var g0={name:"untitledui",version:"0.1.14",main:"dist/index.mjs",description:"Untitled UI CLI",type:"module",publishConfig:{access:"public"},scripts:{test:'echo "Error: no test specified" && exit 1',dev:"bun build --entrypoints ./index.ts --entry-naming=[name].mjs --outdir=dist --target=node --minify --packages=external --env=inline --define=process.env.API_URL=http://localhost:3000/react/api --watch",build:"bun build --entrypoints ./index.ts --entry-naming=[name].mjs --outdir=dist --target=node --minify --packages=external --env=inline --define=process.env.API_URL=https://untitledui.xyz/react/api","publish:npm":"bun run build && npm publish --access public",start:"node dist/index.mjs"},repository:{type:"git",url:"https://github.com/a-peak-works/untitledui-tailwind.git"},bugs:{url:"https://github.com/a-peak-works/untitledui-tailwind/issues"},homepage:"https://github.com/a-peak-works/untitledui-tailwind#readme",keywords:["untitled-ui","cli","tailwindcss","nextjs"],files:["dist","config"],author:"",license:"MIT",bin:{untitledui:"dist/index.mjs"},exports:"./dist/index.mjs",dependencies:{"async-retry":"^1.3.3",chalk:"^5.4.1",commander:"^13.1.0",execa:"^7.0.0","fast-glob":"^3.3.3","node-fetch":"^3.3.2",open:"^10.1.0",ora:"^8.2.0",prettier:"^3.5.3",prompts:"^2.4.2",tar:"^7.4.3","ts-morph":"^25.0.1","tsconfig-paths":"^4.2.0","update-check":"^1.5.4"},devDependencies:{"@types/async-retry":"^1.4.9","@types/prompts":"^2.4.9","@types/tar":"^6.1.13","type-fest":"^4.37.0",typescript:"^5.8.2"}};process.on("SIGINT",()=>process.exit(0));process.on("SIGTERM",()=>process.exit(0));async function o1(){let Q=new p1().name(g0.name).version(g0.version);Q.addCommand(Y1).addCommand(a0).addCommand(Q1).addCommand(i0),Q.parse()}o1();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "untitledui",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "main": "dist/index.mjs",
5
5
  "description": "Untitled UI CLI",
6
6
  "type": "module",