@sugarcube-org/cli 0.0.0-alpha.23 → 0.0.0-alpha.24
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/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var Xe=Object.defineProperty;var o=(e,t)=>Xe(e,"name",{value:t,configurable:!0});import{Command as U}from"commander";import{relative as R,join as C,basename as Te,resolve as L,dirname as et,normalize as tt}from"pathe";import c from"picocolors";import{existsSync as F,readFileSync as Se}from"node:fs";import nt from"node-fetch";import{z as w}from"zod";import oe,{mkdir as V,writeFile as Q,readFile as Ie}from"node:fs/promises";import{execa as st}from"execa";import X from"fast-glob";import{loadAndResolveTokens as ot,configFileExists as D,loadInternalConfig as ee,loadUserConfig as rt,processAndConvertTokens as re,generateCSSVariables as Ee,writeCSSVariablesToDisk as ke,writeCSSUtilitiesToDisk as _e,convertConfigToUnoRules as it,DEFAULT_STYLES_PATH as at,DEFAULT_CONFIG as te,fillDefaults as ct}from"@sugarcube-org/core";import ie,{resolve as lt}from"node:path";import{select as ut,isCancel as ae,log as ft,multiselect as pt,confirm as dt,cancel as $e}from"@clack/prompts";import{getColumns as gt}from"@clack/core";import{wrapAnsi as mt}from"fast-wrap-ansi";import ht from"is-unicode-supported";import*as Re from"node:readline";import Ce from"node:readline";import{createLogUpdate as be}from"log-update";import{detect as wt}from"@antfu/ni";import{getTsconfig as yt}from"get-tsconfig";import{createGenerator as Tt}from"@unocss/core";var St="0.0.0-alpha.
|
|
2
|
+
var Xe=Object.defineProperty;var o=(e,t)=>Xe(e,"name",{value:t,configurable:!0});import{Command as U}from"commander";import{relative as R,join as C,basename as Te,resolve as L,dirname as et,normalize as tt}from"pathe";import c from"picocolors";import{existsSync as F,readFileSync as Se}from"node:fs";import nt from"node-fetch";import{z as w}from"zod";import oe,{mkdir as V,writeFile as Q,readFile as Ie}from"node:fs/promises";import{execa as st}from"execa";import X from"fast-glob";import{loadAndResolveTokens as ot,configFileExists as D,loadInternalConfig as ee,loadUserConfig as rt,processAndConvertTokens as re,generateCSSVariables as Ee,writeCSSVariablesToDisk as ke,writeCSSUtilitiesToDisk as _e,convertConfigToUnoRules as it,DEFAULT_STYLES_PATH as at,DEFAULT_CONFIG as te,fillDefaults as ct}from"@sugarcube-org/core";import ie,{resolve as lt}from"node:path";import{select as ut,isCancel as ae,log as ft,multiselect as pt,confirm as dt,cancel as $e}from"@clack/prompts";import{getColumns as gt}from"@clack/core";import{wrapAnsi as mt}from"fast-wrap-ansi";import ht from"is-unicode-supported";import*as Re from"node:readline";import Ce from"node:readline";import{createLogUpdate as be}from"log-update";import{detect as wt}from"@antfu/ni";import{getTsconfig as yt}from"get-tsconfig";import{createGenerator as Tt}from"@unocss/core";var St="0.0.0-alpha.24",It={version:St};const ce="fluid",Et="**/*.json",le="@sugarcube-org/vite",kt=["node_modules",".git",".next","dist","build"],_t=5,N={INIT:"make-sugarcube init",COMPONENTS:"make-sugarcube components",GENERATE:"make-sugarcube generate",CUBE:"make-sugarcube cube"},ve={INITIALIZATION:"https://sugarcube.sh/docs/setup",CONFIGURATION:"https://sugarcube.sh/docs/configuration"},m={PROJECT_REQUIRED:`No sugarcube project detected. Please run ${c.cyan(N.INIT)} first.
|
|
3
3
|
|
|
4
4
|
For more information, visit: ${c.cyan(ve.INITIALIZATION)}`,CONFIG_EXISTS:o(()=>`A sugarcube config file already exists in this projct.
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sugarcube-org/cli",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.24",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": false
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@antfu/ni": "23.3.0",
|
|
41
41
|
"@clack/core": "1.0.0-alpha.3",
|
|
42
42
|
"@clack/prompts": "1.0.0-alpha.3",
|
|
43
|
-
"@sugarcube-org/core": "0.0.1-alpha.
|
|
43
|
+
"@sugarcube-org/core": "0.0.1-alpha.11",
|
|
44
44
|
"@unocss/core": "66.5.2",
|
|
45
45
|
"commander": "12.1.0",
|
|
46
46
|
"execa": "9.5.2",
|