@sugarcube-sh/cli 0.1.2 → 0.1.3
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 Qe=Object.defineProperty;var s=(e,t)=>Qe(e,"name",{value:t,configurable:!0});import{Command as D}from"commander";import i from"picocolors";import{existsSync as L,readFileSync as et}from"node:fs";import{relative as A,join as v,basename as we,resolve as j,dirname as tt,isAbsolute as nt}from"pathe";import{z as g}from"zod";import ne,{mkdir as G,writeFile as se,readFile as ye}from"node:fs/promises";import{execa as st}from"execa";import{select as re,isCancel as W,log as rt,multiselect as ot,confirm as it,cancel as Se}from"@clack/prompts";import{loadInternalConfig as z,isNoConfigError as Ee,loadAndResolveTokens as at,extractFileRefs as ct,configFileExists as Ie,findResolverDocument as lt,fillDefaults as ut,clearMatchCache as dt,processAndConvertTokens as pt,generateCSSVariables as ft,writeCSSVariablesToDisk as mt,writeCSSUtilitiesToDisk as ht,convertConfigToUnoRules as gt,DEFAULT_CONFIG as Te}from"@sugarcube-sh/core";import wt,{resolve as be}from"node:path";import{getColumns as yt}from"@clack/core";import{wrapAnsi as St}from"fast-wrap-ansi";import Et from"is-unicode-supported";import*as Re from"node:readline";import _e from"node:readline";import{createLogUpdate as ve}from"log-update";import{detect as It}from"@antfu/ni";import{createGenerator as Tt}from"@unocss/core";import{glob as oe}from"tinyglobby";import{watch as $e}from"chokidar";var bt="0.1.
|
|
2
|
+
var Qe=Object.defineProperty;var s=(e,t)=>Qe(e,"name",{value:t,configurable:!0});import{Command as D}from"commander";import i from"picocolors";import{existsSync as L,readFileSync as et}from"node:fs";import{relative as A,join as v,basename as we,resolve as j,dirname as tt,isAbsolute as nt}from"pathe";import{z as g}from"zod";import ne,{mkdir as G,writeFile as se,readFile as ye}from"node:fs/promises";import{execa as st}from"execa";import{select as re,isCancel as W,log as rt,multiselect as ot,confirm as it,cancel as Se}from"@clack/prompts";import{loadInternalConfig as z,isNoConfigError as Ee,loadAndResolveTokens as at,extractFileRefs as ct,configFileExists as Ie,findResolverDocument as lt,fillDefaults as ut,clearMatchCache as dt,processAndConvertTokens as pt,generateCSSVariables as ft,writeCSSVariablesToDisk as mt,writeCSSUtilitiesToDisk as ht,convertConfigToUnoRules as gt,DEFAULT_CONFIG as Te}from"@sugarcube-sh/core";import wt,{resolve as be}from"node:path";import{getColumns as yt}from"@clack/core";import{wrapAnsi as St}from"fast-wrap-ansi";import Et from"is-unicode-supported";import*as Re from"node:readline";import _e from"node:readline";import{createLogUpdate as ve}from"log-update";import{detect as It}from"@antfu/ni";import{createGenerator as Tt}from"@unocss/core";import{glob as oe}from"tinyglobby";import{watch as $e}from"chokidar";var bt="0.1.3",Ce={version:bt};const Z={INIT:"@sugarcube-sh/cli init"},$={INITIALIZATION:"https://sugarcube.sh/docs/getting-started",ISSUES:"https://github.com/sugarcube-sh/sugarcube/issues",RESOLVER:"https://sugarcube.sh/docs/resolver",DESIGN_TOKENS:"https://sugarcube.sh/docs/tokens",COMPONENTS_CLI:"https://sugarcube.sh/docs/reference/cli-commands/#components",DOCS:"https://sugarcube.sh/docs"},S={PROJECT_REQUIRED:`No sugarcube project detected. Please run ${i.cyan(Z.INIT)} first.
|
|
3
3
|
|
|
4
4
|
For more information, visit: ${i.cyan($.INITIALIZATION)}`,CONFIG_EXISTS:s(()=>`A sugarcube config file already exists in this project.
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sugarcube-sh/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": false
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"picocolors": "1.1.1",
|
|
60
60
|
"tinyglobby": "^0.2.9",
|
|
61
61
|
"zod": "^3.23.8",
|
|
62
|
-
"@sugarcube-sh/core": "0.1.
|
|
62
|
+
"@sugarcube-sh/core": "0.1.3"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"cross-env": "7.0.3",
|