@format.dev/cli 0.1.2 → 0.2.0
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { a as readConfigFile, i as findConfigPath, o as writeConfigVersion, r as detectIndent, s as CliError } from "./config-Dq7O4e8N.mjs";
|
|
3
|
-
import { C as joinNames, D as commandForPlatform, E as truncateForSpinner, O as detectPackageManager, S as installManifest, T as runInstall$2, c as getDocumentsDir, g as validateDocumentName, i as generateRandomName, k as installCommand, l as readExistingDocumentNames, n as maybeSetupProject, r as writeDocumentDependencies, s as createDocument, w as writeDependenciesToManifest } from "./install-
|
|
3
|
+
import { C as joinNames, D as commandForPlatform, E as truncateForSpinner, O as detectPackageManager, S as installManifest, T as runInstall$2, c as getDocumentsDir, g as validateDocumentName, i as generateRandomName, k as installCommand, l as readExistingDocumentNames, n as maybeSetupProject, r as writeDocumentDependencies, s as createDocument, w as writeDependenciesToManifest } from "./install-nInHtWQW.mjs";
|
|
4
4
|
import { a as rewriteFormatDependencies, i as mayHaveBreakingChanges, n as isExactVersion, r as isNewer, t as loadProjectState } from "./project-pX62Di_9.mjs";
|
|
5
5
|
import { a as DEFAULT_STYLING, f as STYLING_LABELS, h as SUPPORTED_FRAMEWORKS, l as SCHEMA_KINDS, n as DEFAULT_PAGE_SIZE_ID, s as PAGE_SIZES, u as SCHEMA_LABELS, v as isValidDimension, y as methodsForFramework } from "./shared-CM3vyUlL.mjs";
|
|
6
6
|
import "./draw-random-name-Dpt6YmUk.mjs";
|
|
@@ -250,7 +250,7 @@ var cli_spec_default = { commands: [
|
|
|
250
250
|
|
|
251
251
|
//#endregion
|
|
252
252
|
//#region src/versioning/js-version.ts
|
|
253
|
-
const jsVersion = "0.
|
|
253
|
+
const jsVersion = "0.2.0";
|
|
254
254
|
|
|
255
255
|
//#endregion
|
|
256
256
|
//#region src/versioning/registry.ts
|
|
@@ -427,7 +427,8 @@ async function spawnStudioForProject(state, argv) {
|
|
|
427
427
|
return spawnStudio("npm", [
|
|
428
428
|
"exec",
|
|
429
429
|
"-y",
|
|
430
|
-
"--
|
|
430
|
+
"--fetch-retries=1",
|
|
431
|
+
"--fetch-retry-mintimeout=1000",
|
|
431
432
|
"--",
|
|
432
433
|
`${target.packageName}@${state.pinnedVersion}`,
|
|
433
434
|
...argv
|
|
@@ -631,6 +632,7 @@ function installArgs(packageManager, packages, dev) {
|
|
|
631
632
|
switch (packageManager) {
|
|
632
633
|
case "npm": return [
|
|
633
634
|
"install",
|
|
635
|
+
"--no-fund",
|
|
634
636
|
"--save-exact",
|
|
635
637
|
...dev ? ["--save-dev"] : [],
|
|
636
638
|
...packages
|
|
@@ -46,7 +46,7 @@ async function detectPackageManager(projectDir) {
|
|
|
46
46
|
function installCommand(packageManager) {
|
|
47
47
|
if (packageManager === "npm") return {
|
|
48
48
|
command: "npm",
|
|
49
|
-
args: ["install"]
|
|
49
|
+
args: ["install", "--no-fund"]
|
|
50
50
|
};
|
|
51
51
|
if (packageManager === "pnpm") return {
|
|
52
52
|
command: "pnpm",
|
package/dist/scaffold.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as CliError } from "./config-Dq7O4e8N.mjs";
|
|
2
|
-
import { _ as RESERVED_WORDS, a as DOCUMENTS_DIR_NAME, b as DEFAULT_TEMPLATE, c as getDocumentsDir, d as resolveStyling, f as STYLING_STRATEGIES, g as validateDocumentName, h as suggestAvailableName, i as generateRandomName, l as readExistingDocumentNames, m as RESERVED_DOCUMENT_NAMES, n as maybeSetupProject, o as buildDocumentPlan, p as readProjectDependencies, s as createDocument, t as maybeInstallDependencies, u as writeDocument, v as buildDocumentExportMap, x as EMPTY_STYLESHEET_COMMENT, y as getDocumentExportName } from "./install-
|
|
2
|
+
import { _ as RESERVED_WORDS, a as DOCUMENTS_DIR_NAME, b as DEFAULT_TEMPLATE, c as getDocumentsDir, d as resolveStyling, f as STYLING_STRATEGIES, g as validateDocumentName, h as suggestAvailableName, i as generateRandomName, l as readExistingDocumentNames, m as RESERVED_DOCUMENT_NAMES, n as maybeSetupProject, o as buildDocumentPlan, p as readProjectDependencies, s as createDocument, t as maybeInstallDependencies, u as writeDocument, v as buildDocumentExportMap, x as EMPTY_STYLESHEET_COMMENT, y as getDocumentExportName } from "./install-nInHtWQW.mjs";
|
|
3
3
|
import { y as methodsForFramework } from "./shared-CM3vyUlL.mjs";
|
|
4
4
|
import { t as drawRandomName } from "./draw-random-name-Dpt6YmUk.mjs";
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@format.dev/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Format CLI: run Studio, compile documents, and keep Format packages in lockstep",
|
|
6
6
|
"author": "the format.dev developers",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"verdaccio": "^6.8.0",
|
|
73
73
|
"vitest": "^4.0.18",
|
|
74
74
|
"vue": "^3.5.25",
|
|
75
|
-
"@format.dev/
|
|
76
|
-
"@format.dev/
|
|
75
|
+
"@format.dev/react": "0.2.0",
|
|
76
|
+
"@format.dev/vue": "0.2.0"
|
|
77
77
|
},
|
|
78
78
|
"engines": {
|
|
79
79
|
"node": ">=22.12.0"
|