skeleton 5.0.1 → 5.0.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.d.mts +0 -2
- package/dist/index.mjs +40 -77
- package/package.json +15 -15
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -21,15 +21,15 @@ import { extname as extname$1, relative } from "path";
|
|
|
21
21
|
import { Argument, Command, Option } from "commander";
|
|
22
22
|
import { fileURLToPath } from "node:url";
|
|
23
23
|
import { bgBlueBright, bgGreenBright, black, dim, red } from "colorette";
|
|
24
|
-
|
|
24
|
+
// src/utility/install-dependencies.ts
|
|
25
25
|
const exec = promisify(child_process.exec);
|
|
26
26
|
async function installDependencies(cwd = process.cwd()) {
|
|
27
|
-
const
|
|
27
|
+
const pm = await detect({ cwd });
|
|
28
|
+
const resolvedCommand = resolveCommand(pm?.agent ?? "npm", "install", []);
|
|
28
29
|
if (!resolvedCommand) throw new Error("Could not resolve package manager command.");
|
|
29
30
|
return exec(`${resolvedCommand.command} ${resolvedCommand.args.join(" ")}`, { cwd });
|
|
30
31
|
}
|
|
31
|
-
|
|
32
|
-
//#region src/commands/migrate/migrations/skeleton-3/transformers/transform-classes.ts
|
|
32
|
+
// src/commands/migrate/migrations/skeleton-3/transformers/transform-classes.ts
|
|
33
33
|
const COLOR_PAIRING_REGEXES = [
|
|
34
34
|
{
|
|
35
35
|
find: /(\w+)-50-900-token\b/g,
|
|
@@ -235,8 +235,7 @@ function transformClasses$1(code) {
|
|
|
235
235
|
return result.replace(migration.find, migration.replace);
|
|
236
236
|
}, code) };
|
|
237
237
|
}
|
|
238
|
-
|
|
239
|
-
//#region src/commands/migrate/migrations/skeleton-3/transformers/transform-stylesheet.ts
|
|
238
|
+
// src/commands/migrate/migrations/skeleton-3/transformers/transform-stylesheet.ts
|
|
240
239
|
function transformStylesheet$2(code) {
|
|
241
240
|
try {
|
|
242
241
|
const parsed = parse(code);
|
|
@@ -249,8 +248,7 @@ function transformStylesheet$2(code) {
|
|
|
249
248
|
return { code };
|
|
250
249
|
}
|
|
251
250
|
}
|
|
252
|
-
|
|
253
|
-
//#region src/commands/migrate/migrations/skeleton-3/transformers/transform-app.css.ts
|
|
251
|
+
// src/commands/migrate/migrations/skeleton-3/transformers/transform-app.css.ts
|
|
254
252
|
function getTailwindImport(root) {
|
|
255
253
|
let tailwindImport;
|
|
256
254
|
root.walkAtRules("import", (atRule) => {
|
|
@@ -277,17 +275,14 @@ function transformAppCss(code, theme) {
|
|
|
277
275
|
params: `"@skeletonlabs/skeleton/themes/${theme.value}"`
|
|
278
276
|
}));
|
|
279
277
|
break;
|
|
280
|
-
case "custom":
|
|
281
|
-
nodes.push(comment({ text: `Add your theme import for your theme: "${theme.value}" here` }));
|
|
282
|
-
break;
|
|
278
|
+
case "custom": nodes.push(comment({ text: `Add your theme import for your theme: "${theme.value}" here` }));
|
|
283
279
|
}
|
|
284
280
|
const tailwindImport = getTailwindImport(root);
|
|
285
281
|
if (tailwindImport) root.insertAfter(tailwindImport, nodes);
|
|
286
282
|
else root.prepend(nodes);
|
|
287
283
|
return { code: root.toString() };
|
|
288
284
|
}
|
|
289
|
-
|
|
290
|
-
//#region src/commands/migrate/migrations/skeleton-3/utility/theme-mappings.ts
|
|
285
|
+
// src/commands/migrate/migrations/skeleton-3/utility/theme-mappings.ts
|
|
291
286
|
const THEME_MAPPINGS = {
|
|
292
287
|
skeleton: {
|
|
293
288
|
type: "preset",
|
|
@@ -330,8 +325,7 @@ const THEME_MAPPINGS = {
|
|
|
330
325
|
value: "crimson"
|
|
331
326
|
}
|
|
332
327
|
};
|
|
333
|
-
|
|
334
|
-
//#region src/commands/migrate/migrations/skeleton-3/transformers/transform-app.html.ts
|
|
328
|
+
// src/commands/migrate/migrations/skeleton-3/transformers/transform-app.html.ts
|
|
335
329
|
function transformAppHtml(code) {
|
|
336
330
|
const parsed = parse$1(code);
|
|
337
331
|
const html = parsed.querySelector("html");
|
|
@@ -362,8 +356,7 @@ function transformAppHtml(code) {
|
|
|
362
356
|
} }
|
|
363
357
|
};
|
|
364
358
|
}
|
|
365
|
-
|
|
366
|
-
//#region src/utility/ts-morph/add-named-import.ts
|
|
359
|
+
// src/utility/ts-morph/add-named-import.ts
|
|
367
360
|
function addNamedImport(file, specifier, name) {
|
|
368
361
|
const existingImportDeclaration = file.getImportDeclaration((importDeclaration) => {
|
|
369
362
|
return importDeclaration.getModuleSpecifier().getLiteralText() === specifier;
|
|
@@ -375,8 +368,7 @@ function addNamedImport(file, specifier, name) {
|
|
|
375
368
|
namedImports: [name]
|
|
376
369
|
});
|
|
377
370
|
}
|
|
378
|
-
|
|
379
|
-
//#region src/utility/ts-morph/parse-source-file.ts
|
|
371
|
+
// src/utility/ts-morph/parse-source-file.ts
|
|
380
372
|
const project$1 = new Project({
|
|
381
373
|
useInMemoryFileSystem: true,
|
|
382
374
|
skipAddingFilesFromTsConfig: true,
|
|
@@ -386,8 +378,7 @@ const project$1 = new Project({
|
|
|
386
378
|
function parseSourceFile(code) {
|
|
387
379
|
return project$1.createSourceFile(`${nanoid()}.ts`, code);
|
|
388
380
|
}
|
|
389
|
-
|
|
390
|
-
//#region src/commands/migrate/migrations/skeleton-3/utility/export-mappings.ts
|
|
381
|
+
// src/commands/migrate/migrations/skeleton-3/utility/export-mappings.ts
|
|
391
382
|
const EXPORT_MAPPINGS = {
|
|
392
383
|
AccordionItem: {
|
|
393
384
|
namedImport: {
|
|
@@ -776,8 +767,7 @@ const EXPORT_MAPPINGS = {
|
|
|
776
767
|
}
|
|
777
768
|
}
|
|
778
769
|
};
|
|
779
|
-
|
|
780
|
-
//#region src/commands/migrate/migrations/skeleton-3/transformers/transform-module.ts
|
|
770
|
+
// src/commands/migrate/migrations/skeleton-3/transformers/transform-module.ts
|
|
781
771
|
function transformModule$1(code) {
|
|
782
772
|
const file = parseSourceFile(code);
|
|
783
773
|
const skeletonImports = [];
|
|
@@ -827,16 +817,14 @@ function transformModule$1(code) {
|
|
|
827
817
|
meta: { skeletonImports }
|
|
828
818
|
};
|
|
829
819
|
}
|
|
830
|
-
|
|
831
|
-
//#region src/utility/sort-properties-alphabetically.ts
|
|
820
|
+
// src/utility/sort-properties-alphabetically.ts
|
|
832
821
|
function sortPropertiesAlphabetically(object) {
|
|
833
822
|
const orderedObject = {};
|
|
834
823
|
const sortedEntries = Object.entries(object).sort(([a], [b]) => a.localeCompare(b));
|
|
835
824
|
for (const [key, value] of sortedEntries) orderedObject[key] = value;
|
|
836
825
|
return orderedObject;
|
|
837
826
|
}
|
|
838
|
-
|
|
839
|
-
//#region src/commands/migrate/migrations/skeleton-3/transformers/transform-package.json.ts
|
|
827
|
+
// src/commands/migrate/migrations/skeleton-3/transformers/transform-package.json.ts
|
|
840
828
|
function transformPackageJson$2(code, skeletonVersion, skeletonSvelteVersion) {
|
|
841
829
|
let isUsingComponents = false;
|
|
842
830
|
const pkg = JSON.parse(code);
|
|
@@ -859,13 +847,11 @@ function transformPackageJson$2(code, skeletonVersion, skeletonSvelteVersion) {
|
|
|
859
847
|
meta: { isUsingComponents }
|
|
860
848
|
};
|
|
861
849
|
}
|
|
862
|
-
|
|
863
|
-
//#region src/utility/svelte/has-range.ts
|
|
850
|
+
// src/utility/svelte/has-range.ts
|
|
864
851
|
function hasRange(node) {
|
|
865
852
|
return "start" in node && "end" in node && typeof node.start === "number" && typeof node.end === "number";
|
|
866
853
|
}
|
|
867
|
-
|
|
868
|
-
//#region src/utility/svelte/rename-component.ts
|
|
854
|
+
// src/utility/svelte/rename-component.ts
|
|
869
855
|
function renameComponent(s, node, name) {
|
|
870
856
|
const adjustedStart = node.start + 1;
|
|
871
857
|
s.update(adjustedStart, adjustedStart + node.name.length, name);
|
|
@@ -873,8 +859,7 @@ function renameComponent(s, node, name) {
|
|
|
873
859
|
if (indexOfNonSelfClosingTag === -1 || node.start + indexOfNonSelfClosingTag > node.end) return;
|
|
874
860
|
s.update(node.start + indexOfNonSelfClosingTag + 2, node.start + indexOfNonSelfClosingTag + 2 + node.name.length, name);
|
|
875
861
|
}
|
|
876
|
-
|
|
877
|
-
//#region src/commands/migrate/migrations/skeleton-3/transformers/transform-svelte.ts
|
|
862
|
+
// src/commands/migrate/migrations/skeleton-3/transformers/transform-svelte.ts
|
|
878
863
|
function transformScript$1(s, script) {
|
|
879
864
|
if (!script || !("start" in script.content && typeof script.content.start === "number" && "end" in script.content && typeof script.content.end === "number")) return { meta: { skeletonImports: [] } };
|
|
880
865
|
const transformed = transformModule$1(s.original.slice(script.content.start, script.content.end));
|
|
@@ -926,14 +911,12 @@ function transformSvelte$2(code) {
|
|
|
926
911
|
transformCss$2(s, root.css);
|
|
927
912
|
return { code: s.toString() };
|
|
928
913
|
}
|
|
929
|
-
|
|
930
|
-
//#region src/commands/migrate/migrations/skeleton-3/utility/constants.ts
|
|
914
|
+
// src/commands/migrate/migrations/skeleton-3/utility/constants.ts
|
|
931
915
|
const FALLBACK_THEME = {
|
|
932
916
|
type: "preset",
|
|
933
917
|
value: "cerberus"
|
|
934
918
|
};
|
|
935
|
-
|
|
936
|
-
//#region src/commands/migrate/migrations/skeleton-3/index.ts
|
|
919
|
+
// src/commands/migrate/migrations/skeleton-3/index.ts
|
|
937
920
|
async function skeleton_3_default(options) {
|
|
938
921
|
const cwd = options.cwd ?? process.cwd();
|
|
939
922
|
const migrations = [];
|
|
@@ -1099,8 +1082,7 @@ async function skeleton_3_default(options) {
|
|
|
1099
1082
|
}
|
|
1100
1083
|
log.info("Migration complete! Visit https://skeleton.dev for more information.");
|
|
1101
1084
|
}
|
|
1102
|
-
|
|
1103
|
-
//#region src/commands/migrate/migrations/skeleton-4/utility/identifier-mappings.ts
|
|
1085
|
+
// src/commands/migrate/migrations/skeleton-4/utility/identifier-mappings.ts
|
|
1104
1086
|
const IDENTIFIER_MAPPINGS = {
|
|
1105
1087
|
Modal: "Dialog",
|
|
1106
1088
|
"Navigation.Bar": "Navigation",
|
|
@@ -1110,8 +1092,7 @@ const IDENTIFIER_MAPPINGS = {
|
|
|
1110
1092
|
Segment: "SegmentedControl",
|
|
1111
1093
|
Toaster: "Toast.Group"
|
|
1112
1094
|
};
|
|
1113
|
-
|
|
1114
|
-
//#region src/commands/migrate/migrations/skeleton-4/utility/import-mappings.ts
|
|
1095
|
+
// src/commands/migrate/migrations/skeleton-4/utility/import-mappings.ts
|
|
1115
1096
|
const IMPORT_MAPPINGS = {
|
|
1116
1097
|
Modal: "Dialog",
|
|
1117
1098
|
Navigation: "Navigation",
|
|
@@ -1120,8 +1101,7 @@ const IMPORT_MAPPINGS = {
|
|
|
1120
1101
|
Segment: "SegmentedControl",
|
|
1121
1102
|
Toaster: "Toast"
|
|
1122
1103
|
};
|
|
1123
|
-
|
|
1124
|
-
//#region src/commands/migrate/migrations/skeleton-4/transformers/transform-module.ts
|
|
1104
|
+
// src/commands/migrate/migrations/skeleton-4/transformers/transform-module.ts
|
|
1125
1105
|
function transformModule(code) {
|
|
1126
1106
|
const file = parseSourceFile(code);
|
|
1127
1107
|
const skeletonImports = [];
|
|
@@ -1147,8 +1127,7 @@ function transformModule(code) {
|
|
|
1147
1127
|
meta: { skeletonImports }
|
|
1148
1128
|
};
|
|
1149
1129
|
}
|
|
1150
|
-
|
|
1151
|
-
//#region src/commands/migrate/migrations/skeleton-4/transformers/transform-package.json.ts
|
|
1130
|
+
// src/commands/migrate/migrations/skeleton-4/transformers/transform-package.json.ts
|
|
1152
1131
|
function transformPackageJson$1(code) {
|
|
1153
1132
|
const pkg = JSON.parse(code);
|
|
1154
1133
|
for (const field of ["dependencies", "devDependencies"]) {
|
|
@@ -1169,8 +1148,7 @@ function transformPackageJson$1(code) {
|
|
|
1169
1148
|
}
|
|
1170
1149
|
return { code: JSON.stringify(pkg, void 0, detectIndent(code).indent || " ") };
|
|
1171
1150
|
}
|
|
1172
|
-
|
|
1173
|
-
//#region src/commands/migrate/migrations/skeleton-4/transformers/transform-stylesheet.ts
|
|
1151
|
+
// src/commands/migrate/migrations/skeleton-4/transformers/transform-stylesheet.ts
|
|
1174
1152
|
function transformStylesheet$1(content) {
|
|
1175
1153
|
try {
|
|
1176
1154
|
const ast = parse(content);
|
|
@@ -1193,8 +1171,7 @@ function transformStylesheet$1(content) {
|
|
|
1193
1171
|
return { code: content };
|
|
1194
1172
|
}
|
|
1195
1173
|
}
|
|
1196
|
-
|
|
1197
|
-
//#region src/commands/migrate/migrations/skeleton-4/transformers/transform-svelte.ts
|
|
1174
|
+
// src/commands/migrate/migrations/skeleton-4/transformers/transform-svelte.ts
|
|
1198
1175
|
function transformScript(s, script) {
|
|
1199
1176
|
if (!script || !("start" in script.content && typeof script.content.start === "number" && "end" in script.content && typeof script.content.end === "number")) return { meta: { skeletonImports: [] } };
|
|
1200
1177
|
const transformed = transformModule(s.original.slice(script.content.start, script.content.end));
|
|
@@ -1224,8 +1201,7 @@ function transformSvelte$1(code) {
|
|
|
1224
1201
|
transformCss$1(s, root.css);
|
|
1225
1202
|
return { code: s.toString() };
|
|
1226
1203
|
}
|
|
1227
|
-
|
|
1228
|
-
//#region src/commands/migrate/migrations/skeleton-4/index.ts
|
|
1204
|
+
// src/commands/migrate/migrations/skeleton-4/index.ts
|
|
1229
1205
|
async function skeleton_4_default(options) {
|
|
1230
1206
|
const cwd = options.cwd ?? process.cwd();
|
|
1231
1207
|
const migrations = [];
|
|
@@ -1308,7 +1284,6 @@ async function skeleton_4_default(options) {
|
|
|
1308
1284
|
path,
|
|
1309
1285
|
content: transformedModule.code
|
|
1310
1286
|
});
|
|
1311
|
-
break;
|
|
1312
1287
|
}
|
|
1313
1288
|
sourceFilesSpinner.message(`Migrated source file: ${path}!`);
|
|
1314
1289
|
}
|
|
@@ -1334,8 +1309,7 @@ async function skeleton_4_default(options) {
|
|
|
1334
1309
|
}
|
|
1335
1310
|
log.info("Migration complete! Visit https://skeleton.dev for more information.");
|
|
1336
1311
|
}
|
|
1337
|
-
|
|
1338
|
-
//#region src/commands/migrate/migrations/skeleton-5/utility/manual-steps.ts
|
|
1312
|
+
// src/commands/migrate/migrations/skeleton-5/utility/manual-steps.ts
|
|
1339
1313
|
const MANUAL_CLASS_RULES = [
|
|
1340
1314
|
{
|
|
1341
1315
|
pattern: /^ig-cell$/,
|
|
@@ -1399,8 +1373,7 @@ function dedupeManualSteps(steps) {
|
|
|
1399
1373
|
return true;
|
|
1400
1374
|
});
|
|
1401
1375
|
}
|
|
1402
|
-
|
|
1403
|
-
//#region src/commands/migrate/migrations/skeleton-5/transformers/transform-classes.ts
|
|
1376
|
+
// src/commands/migrate/migrations/skeleton-5/transformers/transform-classes.ts
|
|
1404
1377
|
const CLASS_MAPPINGS = [
|
|
1405
1378
|
{
|
|
1406
1379
|
find: /\binput-group\b/g,
|
|
@@ -1501,8 +1474,7 @@ function transformClasses(code) {
|
|
|
1501
1474
|
meta: { manual: detectManualClasses(code) }
|
|
1502
1475
|
};
|
|
1503
1476
|
}
|
|
1504
|
-
|
|
1505
|
-
//#region src/commands/migrate/migrations/skeleton-5/transformers/transform-jsx.ts
|
|
1477
|
+
// src/commands/migrate/migrations/skeleton-5/transformers/transform-jsx.ts
|
|
1506
1478
|
const project = new Project({
|
|
1507
1479
|
useInMemoryFileSystem: true,
|
|
1508
1480
|
skipAddingFilesFromTsConfig: true,
|
|
@@ -1539,8 +1511,7 @@ function transformJsx(code) {
|
|
|
1539
1511
|
};
|
|
1540
1512
|
}
|
|
1541
1513
|
}
|
|
1542
|
-
|
|
1543
|
-
//#region src/commands/migrate/migrations/skeleton-5/transformers/transform-package.json.ts
|
|
1514
|
+
// src/commands/migrate/migrations/skeleton-5/transformers/transform-package.json.ts
|
|
1544
1515
|
function transformPackageJson(code) {
|
|
1545
1516
|
const pkg = JSON.parse(code);
|
|
1546
1517
|
for (const field of ["dependencies", "devDependencies"]) {
|
|
@@ -1561,8 +1532,7 @@ function transformPackageJson(code) {
|
|
|
1561
1532
|
}
|
|
1562
1533
|
return { code: JSON.stringify(pkg, void 0, detectIndent(code).indent || " ") };
|
|
1563
1534
|
}
|
|
1564
|
-
|
|
1565
|
-
//#region src/commands/migrate/migrations/skeleton-5/utility/token-mappings.ts
|
|
1535
|
+
// src/commands/migrate/migrations/skeleton-5/utility/token-mappings.ts
|
|
1566
1536
|
const TOKEN_MAPPINGS = {
|
|
1567
1537
|
"--base-font-family": "--typo-base--font-family",
|
|
1568
1538
|
"--base-font-size": "--typo-base--font-size",
|
|
@@ -1645,8 +1615,7 @@ const ADDED_TOKENS = {
|
|
|
1645
1615
|
"--color-brand-dark": "var(--color-primary-500)",
|
|
1646
1616
|
"--color-brand-contrast-dark": "var(--color-primary-contrast-500)"
|
|
1647
1617
|
};
|
|
1648
|
-
|
|
1649
|
-
//#region src/commands/migrate/migrations/skeleton-5/transformers/transform-stylesheet.ts
|
|
1618
|
+
// src/commands/migrate/migrations/skeleton-5/transformers/transform-stylesheet.ts
|
|
1650
1619
|
function renameTokens(content) {
|
|
1651
1620
|
return Object.entries(TOKEN_MAPPINGS).reduce((result, [from, to]) => {
|
|
1652
1621
|
return result.replace(new RegExp(`${from}(?![-\\w])`, "g"), to);
|
|
@@ -1700,8 +1669,7 @@ function transformStylesheet(content, options = {}) {
|
|
|
1700
1669
|
};
|
|
1701
1670
|
}
|
|
1702
1671
|
}
|
|
1703
|
-
|
|
1704
|
-
//#region src/commands/migrate/migrations/skeleton-5/transformers/transform-svelte.ts
|
|
1672
|
+
// src/commands/migrate/migrations/skeleton-5/transformers/transform-svelte.ts
|
|
1705
1673
|
function transformCss(s, css) {
|
|
1706
1674
|
if (!css) return [];
|
|
1707
1675
|
try {
|
|
@@ -1763,8 +1731,7 @@ function transformSvelte(code) {
|
|
|
1763
1731
|
meta: { manual }
|
|
1764
1732
|
};
|
|
1765
1733
|
}
|
|
1766
|
-
|
|
1767
|
-
//#region src/commands/migrate/migrations/skeleton-5/index.ts
|
|
1734
|
+
// src/commands/migrate/migrations/skeleton-5/index.ts
|
|
1768
1735
|
async function skeleton_5_default(options) {
|
|
1769
1736
|
const cwd = options.cwd ?? process.cwd();
|
|
1770
1737
|
const migrations = [];
|
|
@@ -1855,7 +1822,6 @@ async function skeleton_5_default(options) {
|
|
|
1855
1822
|
content: transformedJsx.code
|
|
1856
1823
|
});
|
|
1857
1824
|
recordManual(path, transformedJsx.meta.manual);
|
|
1858
|
-
break;
|
|
1859
1825
|
}
|
|
1860
1826
|
sourceFilesSpinner.message(`Migrated source file: ${path}!`);
|
|
1861
1827
|
}
|
|
@@ -1888,22 +1854,20 @@ async function skeleton_5_default(options) {
|
|
|
1888
1854
|
}
|
|
1889
1855
|
log.info("Migration complete! Visit https://skeleton.dev for more information.");
|
|
1890
1856
|
}
|
|
1891
|
-
|
|
1892
|
-
//#region src/commands/migrate/index.ts
|
|
1857
|
+
// src/commands/migrate/index.ts
|
|
1893
1858
|
const MIGRATIONS = {
|
|
1894
1859
|
"skeleton-3": skeleton_3_default,
|
|
1895
1860
|
"skeleton-4": skeleton_4_default,
|
|
1896
1861
|
"skeleton-5": skeleton_5_default
|
|
1897
1862
|
};
|
|
1898
1863
|
const migrate = new Command("migrate").description("Run a migration").addArgument(new Argument("<migration>", "The migration to run").choices(Object.keys(MIGRATIONS))).addOption(new Option("--cwd <cwd>", "The directory to run the migration in")).action((migration, options) => MIGRATIONS[migration](options));
|
|
1899
|
-
|
|
1900
|
-
//#region src/utility/get-our-package-json.ts
|
|
1864
|
+
// src/utility/get-our-package-json.ts
|
|
1901
1865
|
async function getOurPackageJson() {
|
|
1902
|
-
const
|
|
1866
|
+
const packageJsonPath = join(dirname(fileURLToPath(import.meta.url)), "../package.json");
|
|
1867
|
+
const content = await readFile(packageJsonPath, "utf-8");
|
|
1903
1868
|
return JSON.parse(content);
|
|
1904
1869
|
}
|
|
1905
|
-
|
|
1906
|
-
//#region src/index.ts
|
|
1870
|
+
// src/index.ts
|
|
1907
1871
|
const pkg = await getOurPackageJson();
|
|
1908
1872
|
const cli = new Command().name(pkg.name).description(pkg.description).version(pkg.version).addCommand(migrate).copyInheritedSettings(migrate).configureOutput({
|
|
1909
1873
|
writeOut: log.info,
|
|
@@ -1922,5 +1886,4 @@ async function skeleton() {
|
|
|
1922
1886
|
outro(bgGreenBright(black(" All Done! ")));
|
|
1923
1887
|
}
|
|
1924
1888
|
await skeleton();
|
|
1925
|
-
//#endregion
|
|
1926
1889
|
export { cli };
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skeleton",
|
|
3
|
+
"version": "5.0.3",
|
|
3
4
|
"description": "The CLI for Skeleton related tooling.",
|
|
4
|
-
"
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
8
|
"url": "git+https://github.com/skeletonlabs/skeleton.git",
|
|
8
9
|
"directory": "packages/cli"
|
|
9
10
|
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"skeleton": "./dist/index.mjs"
|
|
13
|
+
},
|
|
10
14
|
"files": [
|
|
11
15
|
"dist"
|
|
12
16
|
],
|
|
17
|
+
"type": "module",
|
|
13
18
|
"sideEffects": false,
|
|
14
19
|
"dependencies": {
|
|
15
|
-
"@clack/prompts": "1.
|
|
20
|
+
"@clack/prompts": "1.8.1",
|
|
16
21
|
"colorette": "2.0.20",
|
|
17
22
|
"commander": "15.0.0",
|
|
18
23
|
"detect-indent": "7.0.2",
|
|
19
24
|
"latest-version": "9.0.0",
|
|
20
|
-
"magic-string": "1.
|
|
21
|
-
"nanoid": "6.0.
|
|
22
|
-
"node-html-parser": "
|
|
23
|
-
"package-manager-detector": "1.
|
|
24
|
-
"postcss": "8.5.
|
|
25
|
-
"semver": "7.8.
|
|
26
|
-
"svelte": "5.
|
|
25
|
+
"magic-string": "1.4.5",
|
|
26
|
+
"nanoid": "6.0.2",
|
|
27
|
+
"node-html-parser": "9.0.6",
|
|
28
|
+
"package-manager-detector": "1.9.0",
|
|
29
|
+
"postcss": "8.5.32",
|
|
30
|
+
"semver": "7.8.6",
|
|
31
|
+
"svelte": "5.57.3",
|
|
27
32
|
"tinyglobby": "0.2.17",
|
|
28
33
|
"ts-morph": "28.0.0",
|
|
29
|
-
"zimmerframe": "1.1.
|
|
30
|
-
},
|
|
31
|
-
"license": "MIT",
|
|
32
|
-
"type": "module",
|
|
33
|
-
"bin": {
|
|
34
|
-
"skeleton": "./dist/index.mjs"
|
|
34
|
+
"zimmerframe": "1.1.5"
|
|
35
35
|
}
|
|
36
36
|
}
|