@builder.io/dev-tools 1.21.16-dev.202601302342.7af7ffd7f → 1.22.0-dev.202602021245.ba8683d35
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/cli/index.cjs +455 -314
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +2 -2
- package/server/index.mjs +2 -2
- package/types/cli/codegen.d.ts +3 -7
- package/types/cli/indexing.d.ts +5 -0
- package/types/cli/launch/InitStateMachine.d.ts +1 -6
- package/types/cli/launch/github.d.ts +3 -0
- package/types/cli/repo-indexing.d.ts +17 -0
- package/types/cli/repo-indexing.mock.d.ts +5 -0
- package/types/cli/utils/git-snapshot.d.ts +17 -0
- package/types/cli/utils/git-snapshot.test.d.ts +1 -0
- package/types/cli/utils/git.d.ts +1 -2
- package/types/cli/utils/repo-indexing-group-prompts.d.ts +1 -0
- package/types/common/ast/component-input-types.d.ts +1 -1
- package/types/common/ast/convert-values.d.ts +1 -1
- package/types/scripts/analyze-projects.d.ts +18 -0
- package/types/scripts/call-ensure-container.d.ts +4 -0
- package/types/scripts/check-backup.d.ts +1 -0
- package/types/scripts/cli.d.ts +1 -0
- package/types/scripts/download-projects.d.ts +12 -0
- package/types/scripts/utils/db.d.ts +3 -0
- package/types/scripts/utils/ensure-container.d.ts +7 -0
- package/types/scripts/utils/remove-machine-and-volume.d.ts +5 -0
- package/types/tsconfig.tsbuildinfo +1 -1
- package/cli/index.mjs +0 -4905
- package/cli/index.mjs.map +0 -7
- package/cli/main.mjs +0 -26
- package/types/cli/builder-ink.d.ts +0 -9
- package/types/cli/repo-indexing/lsp-references.d.ts +0 -17
- package/types/cli/ui/App.d.ts +0 -15
- package/types/cli/ui/AppWrapper.d.ts +0 -8
- package/types/cli/ui/AsciiLogo.d.ts +0 -1
- package/types/cli/ui/ComponentDiscoveryPhase.d.ts +0 -5
- package/types/cli/ui/ComponentIndexingPhase.d.ts +0 -5
- package/types/cli/ui/DesignSystemCRUD.d.ts +0 -16
- package/types/cli/ui/DesignSystemCreationComplete.d.ts +0 -5
- package/types/cli/ui/DesignSystemCreationPrompt.d.ts +0 -12
- package/types/cli/ui/DesignSystemDetail.d.ts +0 -7
- package/types/cli/ui/DesignSystemsTable.d.ts +0 -10
- package/types/cli/ui/GradientBorder.d.ts +0 -7
- package/types/cli/ui/InkDemo.d.ts +0 -6
- package/types/cli/ui/MainMenu.d.ts +0 -12
- package/types/cli/ui/SpaceSelector.d.ts +0 -14
- package/types/cli/ui/types.d.ts +0 -16
- /package/types/cli/{code.test.d.ts → codegen-git-snapshot.test.d.ts} +0 -0
package/cli/main.mjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
var version = process.version;
|
|
4
|
-
var [majorVersion, minorVersion] = version.replace("v", "").split(".");
|
|
5
|
-
if (Number(majorVersion) < 18) {
|
|
6
|
-
console.error(
|
|
7
|
-
"Builder.io Dev Tools requires Node.js 18.11 or higher. You are currently running Node.js " +
|
|
8
|
-
version,
|
|
9
|
-
);
|
|
10
|
-
process.exit(1);
|
|
11
|
-
} else if (Number(majorVersion) === 18) {
|
|
12
|
-
if (Number(minorVersion) < 4) {
|
|
13
|
-
console.error(
|
|
14
|
-
"Builder.io Dev Tools requires Node.js 18.4 or higher. You are currently running Node.js" +
|
|
15
|
-
version,
|
|
16
|
-
);
|
|
17
|
-
process.exit(1);
|
|
18
|
-
} else if (Number(minorVersion) < 11) {
|
|
19
|
-
console.error(
|
|
20
|
-
"Node.js 18.11 or higher is REQUIRED. From Node 18.0.0 to 18.11.0, there is a bug preventing correct behaviour of Builder.io. You are currently running Node.js " +
|
|
21
|
-
version,
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
import("./index.mjs");
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare let Box: typeof import("ink").Box;
|
|
2
|
-
declare let Text: typeof import("ink").Text;
|
|
3
|
-
declare let useApp: typeof import("ink").useApp;
|
|
4
|
-
declare let useInput: typeof import("ink").useInput;
|
|
5
|
-
declare let render: typeof import("ink").render;
|
|
6
|
-
declare let Newline: typeof import("ink").Newline;
|
|
7
|
-
declare let Spinner: typeof import("ink-spinner").default;
|
|
8
|
-
declare let TextInput: typeof import("ink-text-input").default;
|
|
9
|
-
export { Box, Text, useApp, useInput, render, Newline, Spinner, TextInput };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from "../../types";
|
|
2
|
-
export type ProjectLanguage = "typescript" | "javascript" | "swift";
|
|
3
|
-
export interface ComponentReference {
|
|
4
|
-
filePath: string;
|
|
5
|
-
line: number;
|
|
6
|
-
column: number;
|
|
7
|
-
context: string;
|
|
8
|
-
isDeclaration: boolean;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Detect the primary language of a project based on file extensions
|
|
12
|
-
*/
|
|
13
|
-
export declare function detectProjectLanguage(sys: DevToolsSys, relevantFiles: string[]): ProjectLanguage;
|
|
14
|
-
/**
|
|
15
|
-
* Find all references to a component using TypeScript compiler API
|
|
16
|
-
*/
|
|
17
|
-
export declare function findComponentReferences(sys: DevToolsSys, componentName: string, declarationFile: string, relevantFiles: string[], debug?: boolean): Promise<ComponentReference[]>;
|
package/types/cli/ui/App.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Credentials } from '../credentials.js';
|
|
2
|
-
import type { DevToolsSys } from '@builder.io/dev-tools/core';
|
|
3
|
-
import type { CLIArgs } from '../index.js';
|
|
4
|
-
type Props = {
|
|
5
|
-
sys: DevToolsSys;
|
|
6
|
-
credentials: Credentials;
|
|
7
|
-
args: CLIArgs;
|
|
8
|
-
};
|
|
9
|
-
export type Space = {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
code: string;
|
|
13
|
-
};
|
|
14
|
-
export declare function App({ sys, credentials, args }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
showLogo?: boolean;
|
|
5
|
-
useGradientBorder?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare function AppWrapper({ children, showLogo, useGradientBorder }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function AsciiLogo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { DesignSystem } from './types.js';
|
|
3
|
-
import type { DevToolsSys } from '@builder.io/dev-tools/core';
|
|
4
|
-
import type { Credentials } from '../credentials.js';
|
|
5
|
-
import type { CLIArgs } from '../index.js';
|
|
6
|
-
interface DesignSystemCRUDProps {
|
|
7
|
-
sys: DevToolsSys;
|
|
8
|
-
credentials: Credentials;
|
|
9
|
-
args: CLIArgs;
|
|
10
|
-
onBack: () => void;
|
|
11
|
-
onDesignSystemCreated?: (designSystem: DesignSystem) => void;
|
|
12
|
-
onDesignSystemUpdated?: (designSystem: DesignSystem) => void;
|
|
13
|
-
onDesignSystemDeleted?: (designSystemId: string) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const DesignSystemCRUD: React.FC<DesignSystemCRUDProps>;
|
|
16
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from '@builder.io/dev-tools/core';
|
|
2
|
-
type Props = {
|
|
3
|
-
sys: DevToolsSys;
|
|
4
|
-
onConfirm: (config: {
|
|
5
|
-
name?: string;
|
|
6
|
-
packageName?: string;
|
|
7
|
-
includeDirectories?: string;
|
|
8
|
-
}) => void;
|
|
9
|
-
onCancel: () => void;
|
|
10
|
-
};
|
|
11
|
-
export declare function DesignSystemCreationPrompt({ sys, onConfirm, onCancel }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { DesignSystem } from './types.js';
|
|
2
|
-
import type { DevToolsSys } from '@builder.io/dev-tools/core';
|
|
3
|
-
import type { Credentials } from '../credentials.js';
|
|
4
|
-
type Props = {
|
|
5
|
-
sys: DevToolsSys;
|
|
6
|
-
credentials: Credentials;
|
|
7
|
-
onDesignSystemSelect: (designSystem: DesignSystem) => void;
|
|
8
|
-
};
|
|
9
|
-
export declare function DesignSystemsTable({ sys, credentials, onDesignSystemSelect }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from '@builder.io/dev-tools/core';
|
|
2
|
-
import type { Credentials } from '../credentials.js';
|
|
3
|
-
type Props = {
|
|
4
|
-
onOptionSelect: (option: string) => void;
|
|
5
|
-
spaceName?: string;
|
|
6
|
-
spaceCode?: string;
|
|
7
|
-
userName?: string;
|
|
8
|
-
sys: DevToolsSys;
|
|
9
|
-
credentials: Credentials;
|
|
10
|
-
};
|
|
11
|
-
export declare function MainMenu({ onOptionSelect, spaceName, spaceCode, userName, sys, credentials }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { DevToolsSys } from '@builder.io/dev-tools/core';
|
|
2
|
-
import type { Credentials } from '../credentials.js';
|
|
3
|
-
export type Space = {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
code: string;
|
|
7
|
-
};
|
|
8
|
-
type Props = {
|
|
9
|
-
sys: DevToolsSys;
|
|
10
|
-
credentials: Credentials;
|
|
11
|
-
onSpaceSelect: (space: Space) => void;
|
|
12
|
-
};
|
|
13
|
-
export declare function SpaceSelector({ sys, credentials, onSpaceSelect }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
package/types/cli/ui/types.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface DesignSystem {
|
|
2
|
-
id: string;
|
|
3
|
-
designSystemName: string;
|
|
4
|
-
designSystemPackage?: string;
|
|
5
|
-
designSystemVersion?: string;
|
|
6
|
-
scope: 'space' | 'organization' | 'public';
|
|
7
|
-
docCount: number;
|
|
8
|
-
status?: 'active' | 'in-progress' | 'failed' | 'completed';
|
|
9
|
-
createdDate?: {
|
|
10
|
-
_seconds: number;
|
|
11
|
-
_nanoseconds: number;
|
|
12
|
-
};
|
|
13
|
-
createdByUserId?: string;
|
|
14
|
-
designSystemId?: string;
|
|
15
|
-
spaceId?: string;
|
|
16
|
-
}
|
|
File without changes
|