untitledui 0.1.1 → 0.1.2

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.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -22,4 +22,4 @@ Failed to download and extract the repository`)),$ instanceof Error)console.erro
22
22
  Tailwind config file exists in the project directory. You can add it to your globals.css as follows:`),console.log(`
23
23
  ${G.cyan(`@config "../${R?.isSrcDir&&"../"}${K.relative(process.cwd(),M.tailwindFile)}";`)}
24
24
  `);let P=M?.layoutFile||M?.appFile||"",w=new t0({tsConfigFilePath:K.resolve(M?.tsConfig||"")}).addSourceFileAtPath(K.resolve(P)),k=["colors.css","globals.css","inter.css","text-styles.css","theme.css","typography.css"];w.getImportDeclarations().filter((L)=>k.includes(L.getModuleSpecifierValue())).forEach((L)=>L.remove());let D=K.relative(K.resolve(process.cwd(),`${R?.isSrcDir&&"src"}`),P).split("/").length;w.addImportDeclarations(H.filter((L)=>L.includes("styles")).map((L)=>({moduleSpecifier:`${R?.aliasPrefix?.stylesPrefix||R?.aliasPrefix?.srcPrefix||"../".repeat(D-1)}${R?.aliasPrefix?.stylesPrefix?L?.split("styles/")[1]:L}`}))),w.saveSync();let C=o(),m=z0.sync(["**/styles/theme.css"],{cwd:Q,absolute:!0,onlyFiles:!0,ignore:N});if(!m?.length)return q.fail("Failed to copy theme.css file");if(q0("brand",b.color,m[0]??""),!J)C.fail("Failed to get dependencies from package.json"),process.exit(1);C.start("Installing dependencies"),await t(j(),[j()==="npm"?"install":"add",...J.dependencies],{}),await t(j(),[j()==="npm"?"install":"add","-D",...J.devDependencies],{}),C.succeed("Dependencies installed"),q.succeed(G.green("Files are extracted successfully!")),console.log(`
25
- Your project is ready, you can now start adding components.`),process.exit(1)}}var B0={name:"untitledui",version:"0.1.1",main:"dist/index.js",description:"Untitled UI CLI",publishConfig:{access:"public"},type:"module",scripts:{test:'echo "Error: no test specified" && exit 1',dev:"bun build --entrypoints ./index.ts --outdir=dist --target=node --minify --packages=external --watch",build:"bun build --entrypoints ./index.ts --outdir=dist --target=node --minify --packages=external","publish:npm":"bun run build && npm publish --access public",start:"node dist/index.js"},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","templates"],author:"",license:"MIT",bin:{untitledui:"dist/index.js"},exports:"./dist/index.js",dependencies:{"async-retry":"^1.3.3",chalk:"^5.4.1",commander:"^13.1.0",execa:"^9.5.2","fast-glob":"^3.3.3",ora:"^8.2.0",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",prettier:"^3.5.3","type-fest":"^4.37.0",typescript:"^5.8.2"}};process.on("SIGINT",()=>process.exit(0));process.on("SIGTERM",()=>process.exit(0));async function Y3(){let W=new X3().name(B0.name).version(B0.version);W.addCommand(E0).addCommand(R0),W.parse()}Y3();
25
+ Your project is ready, you can now start adding components.`),process.exit(1)}}var B0={name:"untitledui",version:"0.1.2",main:"dist/index.js",description:"Untitled UI CLI",publishConfig:{access:"public"},type:"module",scripts:{test:'echo "Error: no test specified" && exit 1',dev:"bun build --entrypoints ./index.ts --outdir=dist --target=node --minify --packages=external --watch",build:"bun build --entrypoints ./index.ts --outdir=dist --target=node --minify --packages=external","publish:npm":"bun run build && npm publish --access public",start:"node dist/index.js"},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","templates"],author:"",license:"MIT",bin:{untitledui:"dist/index.js"},exports:"./dist/index.js",dependencies:{"async-retry":"^1.3.3",chalk:"^5.4.1",commander:"^13.1.0",execa:"^9.5.2","fast-glob":"^3.3.3",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","type-fest":"^4.37.0",typescript:"^5.8.2"}};process.on("SIGINT",()=>process.exit(0));process.on("SIGTERM",()=>process.exit(0));async function Y3(){let W=new X3().name(B0.name).version(B0.version);W.addCommand(E0).addCommand(R0),W.parse()}Y3();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "untitledui",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "main": "dist/index.js",
5
5
  "description": "Untitled UI CLI",
6
6
  "publishConfig": {
@@ -45,6 +45,7 @@
45
45
  "execa": "^9.5.2",
46
46
  "fast-glob": "^3.3.3",
47
47
  "ora": "^8.2.0",
48
+ "prettier": "^3.5.3",
48
49
  "prompts": "^2.4.2",
49
50
  "tar": "^7.4.3",
50
51
  "ts-morph": "^25.0.1",
@@ -54,7 +55,6 @@
54
55
  "devDependencies": {
55
56
  "@types/async-retry": "^1.4.9",
56
57
  "@types/prompts": "^2.4.9",
57
- "prettier": "^3.5.3",
58
58
  "type-fest": "^4.37.0",
59
59
  "typescript": "^5.8.2"
60
60
  }