@teambit/bit 1.9.122 → 1.9.124
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_bit@1.9.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_bit@1.9.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_bit@1.9.124/dist/bit.compositions.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_bit@1.9.124/dist/bit.docs.js';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/dist/server-commander.js
CHANGED
|
@@ -137,6 +137,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
137
137
|
const CMD_SERVER_PORT = 'cli-server-port';
|
|
138
138
|
const CMD_SERVER_PORT_DELETE = 'cli-server-port-delete';
|
|
139
139
|
const CMD_SERVER_SOCKET_PORT = 'cli-server-socket-port';
|
|
140
|
+
const SKIP_PORT_VALIDATION_ARG = '--skip-port-validation';
|
|
140
141
|
class ServerPortFileNotFound extends Error {
|
|
141
142
|
constructor(filePath) {
|
|
142
143
|
super(`server port file not found at ${filePath}`);
|
|
@@ -365,7 +366,8 @@ Please run the command "bit server-forever" first to start the server.`));
|
|
|
365
366
|
}
|
|
366
367
|
async getExistingUsedPort() {
|
|
367
368
|
const port = await this.getExistingPort();
|
|
368
|
-
const
|
|
369
|
+
const shouldSkipPortValidation = process.argv.includes(SKIP_PORT_VALIDATION_ARG);
|
|
370
|
+
const isPortInUse = shouldSkipPortValidation ? true : await this.isPortInUseForCurrentDir(port);
|
|
369
371
|
if (!isPortInUse) {
|
|
370
372
|
await this.deleteServerPortFile();
|
|
371
373
|
throw new ServerIsNotRunning(port);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_nodeFetch","data","_interopRequireDefault","require","_net","_fsExtra","_child_process","_path","_os","_eventsource","_scopeModules","_chalk","_legacy","_bootstrap","_serverForever","e","__esModule","default","CMD_SERVER_PORT","CMD_SERVER_PORT_DELETE","CMD_SERVER_SOCKET_PORT","ServerPortFileNotFound","Error","constructor","filePath","ServerIsNotRunning","port","ScopeNotFound","scopePath","ServerCommander","execute","results","runCommandWithHttpServer","exitCode","loader","off","dataToPrint","JSON","stringify","undefined","console","log","process","exit","err","error","chalk","red","message","shouldUseTTYPath","platform","env","BIT_CLI_SERVER_TTY","argv","includes","printPortAndExit","printSocketPortAndExit","deletePortAndExit","printBitVersionIfAsked","getExistingUsedPort","url","shouldUsePTY","BIT_CLI_SERVER_PTY","connectToSocket","ttyPath","execSync","encoding","stdio","trim","initSSE","args","slice","on","endpoint","pwd","cwd","body","command","envBitFeatures","BIT_FEATURES","isPty","res","fetch","method","headers","code","deleteServerPortFile","join","ok","json","jsonResponse","statusText","Promise","resolve","reject","socketPort","getSocketPort","socket","net","createConnection","resetStdin","stdin","setRawMode","pause","destroy","resume","write","toString","end","stdout","cleanup","eventSource","EventSource","onerror","_error","close","addEventListener","event","parsed","parse","getExistingPort","isPortInUse","isPortInUseForCurrentDir","pid","getPidByPort","dirUsedByPort","getCwdByPid","currentDir","getServerPortFilePath","fileContent","fs","readFile","parseInt","remove","findScopePath","exports","shouldUseBitServer","commandsToSkip","hasFlag","BIT_CLI_SERVER","length","execCommand","cmd","exec","os","output","line","split","find","l","parts"],"sources":["server-commander.ts"],"sourcesContent":["/**\n * This file is responsible for interacting with bit through a long-running background process \"bit-server\" rather than directly.\n * Why not directly?\n * 1. startup cost. currently it takes around 1 second to bootstrap bit.\n * 2. an experimental package-manager saves node_modules in-memory. if a client starts a new process, it won't have the node_modules in-memory.\n *\n * In this file, there are three ways to achieve this. It's outlined in the order it was evolved.\n * The big challenge here is to show the output correctly to the client even though the server is running in a different process.\n *\n * 1. process.env.BIT_CLI_SERVER === 'true'\n * This method uses SSE - Server Send Events. The server sends events to the client with the output to print. The client listens to\n * these events and prints them. It's cumbersome. For this, the logger was changed and every time the logger needs to print to the console,\n * it was using this SSE to send events. Same with the loader.\n * Cons: Other output, such as pnpm, needs an extra effort to print - for pnpm, the \"process\" object was passed to pnpm\n * and its stdout was modified to use the SSE.\n * However, other tools that print directly to the console, such as Jest, won't work.\n *\n * 2. process.env.BIT_CLI_SERVER_TTY === 'true'\n * Because the terminal - tty is a fd (file descriptor) on mac/linux, it can be passed to the server. The server can write to this\n * fd and it will be printed to the client terminal. On the server, the process.stdout.write was monkey-patched to\n * write to the tty. (see cli-raw.route.ts file).\n * It solves the problem of Jest and other tools that print directly to the console.\n * Cons:\n * A. It doesn't work on Windows. Windows doesn't treat tty as a file descriptor.\n * B. We need two ways communication. Commands such as \"bit update\", display a prompt with option to select using the arrow keys.\n * This is not possible with the tty approach. Also, if the client hits Ctrl+C, the server won't know about it and it\n * won't kill the process.\n *\n * 3. process.env.BIT_CLI_SERVER_PTY === 'true'\n * This is the most advanced approach. It spawns a pty (pseudo terminal) process to communicate between the client and the server.\n * The client connects to the server using a socket. The server writes to the socket and the client reads from it.\n * The client also writes to the socket and the server reads from it. See server-forever.ts to understand better.\n * In order to pass terminal sequences, such as arrow keys or Ctrl+C, the stdin of the client is set to raw mode.\n * In theory, this approach could work by spawning a normal process, not pty, however, then, the stdin/stdout are non-tty,\n * and as a result, loaders such as Ora and chalk won't work.\n * With this new approach, we also support terminating and reloading the server. A new command is added\n * \"bit server-forever\", which spawns the pty-process. If the client hits Ctrl+C, this server-forever process will kill\n * the pty-process and re-load it.\n * Keep in mind, that to send the command and get the results, we still using http. The usage of the pty is only for\n * the input/output during the command.\n * I was trying to avoid the http, and use only the pty, by implementing readline to get the command from the socket,\n * but then I wasn't able to return the prompt to the user easily. So, I decided to keep the http for the request/response part.\n */\n\nimport fetch from 'node-fetch';\nimport net from 'net';\nimport fs from 'fs-extra';\nimport { exec, execSync } from 'child_process';\nimport { join } from 'path';\nimport os from 'os';\nimport EventSource from 'eventsource';\nimport { findScopePath } from '@teambit/scope.modules.find-scope-path';\nimport chalk from 'chalk';\nimport { loader } from '@teambit/legacy.loader';\nimport { printBitVersionIfAsked } from './bootstrap';\nimport { getPidByPort, getSocketPort } from './server-forever';\n\nconst CMD_SERVER_PORT = 'cli-server-port';\nconst CMD_SERVER_PORT_DELETE = 'cli-server-port-delete';\nconst CMD_SERVER_SOCKET_PORT = 'cli-server-socket-port';\n\nclass ServerPortFileNotFound extends Error {\n constructor(filePath: string) {\n super(`server port file not found at ${filePath}`);\n }\n}\nclass ServerIsNotRunning extends Error {\n constructor(port: number) {\n super(`bit server is not running on port ${port}`);\n }\n}\nclass ScopeNotFound extends Error {\n constructor(scopePath: string) {\n super(`scope not found at ${scopePath}`);\n }\n}\n\ntype CommandResult = { data: any; exitCode: number };\n\nexport class ServerCommander {\n async execute() {\n try {\n const results = await this.runCommandWithHttpServer();\n if (results) {\n const { data, exitCode } = results;\n loader.off();\n const dataToPrint = typeof data === 'string' ? data : JSON.stringify(data, undefined, 2);\n // eslint-disable-next-line no-console\n console.log(dataToPrint);\n process.exit(exitCode);\n }\n\n process.exit(0);\n } catch (err: any) {\n if (err instanceof ScopeNotFound || err instanceof ServerPortFileNotFound || err instanceof ServerIsNotRunning) {\n throw err;\n }\n loader.off();\n // eslint-disable-next-line no-console\n console.error(chalk.red(err.message));\n process.exit(1);\n }\n }\n\n private shouldUseTTYPath() {\n if (process.platform === 'win32') return false; // windows doesn't support tty path\n return process.env.BIT_CLI_SERVER_TTY === 'true';\n }\n\n async runCommandWithHttpServer(): Promise<CommandResult | undefined | void> {\n if (process.argv.includes(CMD_SERVER_PORT)) return this.printPortAndExit();\n if (process.argv.includes(CMD_SERVER_SOCKET_PORT)) return this.printSocketPortAndExit();\n if (process.argv.includes(CMD_SERVER_PORT_DELETE)) return this.deletePortAndExit();\n printBitVersionIfAsked();\n const port = await this.getExistingUsedPort();\n const url = `http://localhost:${port}/api`;\n const shouldUsePTY = process.env.BIT_CLI_SERVER_PTY === 'true';\n\n if (shouldUsePTY) {\n await this.connectToSocket();\n }\n const ttyPath = this.shouldUseTTYPath()\n ? execSync('tty', {\n encoding: 'utf8',\n stdio: ['inherit', 'pipe', 'pipe'],\n }).trim()\n : undefined;\n if (!ttyPath && !shouldUsePTY) this.initSSE(url);\n // parse the args and options from the command\n const args = process.argv.slice(2);\n if (!args.includes('--json') && !args.includes('-j')) {\n loader.on();\n }\n const endpoint = `cli-raw`;\n const pwd = process.cwd();\n const body = { command: args, pwd, envBitFeatures: process.env.BIT_FEATURES, ttyPath, isPty: shouldUsePTY };\n let res;\n try {\n res = await fetch(`${url}/${endpoint}`, {\n method: 'post',\n body: JSON.stringify(body),\n headers: { 'Content-Type': 'application/json' },\n });\n } catch (err: any) {\n if (err.code === 'ECONNREFUSED') {\n await this.deleteServerPortFile();\n throw new ServerIsNotRunning(port);\n }\n throw new Error(`failed to run command \"${args.join(' ')}\" on the server. ${err.message}`);\n }\n\n if (res.ok) {\n const results = await res.json();\n return results;\n }\n\n let jsonResponse;\n try {\n jsonResponse = await res.json();\n } catch {\n // the response is not json, ignore the body.\n }\n throw new Error(jsonResponse?.message || jsonResponse || res.statusText);\n }\n\n private async connectToSocket() {\n return new Promise<void>((resolve, reject) => {\n const socketPort = getSocketPort();\n const socket = net.createConnection({ port: socketPort });\n\n const resetStdin = () => {\n process.stdin.setRawMode(false);\n process.stdin.pause();\n };\n\n // Handle errors that occur before or after connection\n socket.on('error', (err: any) => {\n if (err.code === 'ECONNREFUSED') {\n reject(\n new Error(`Error: Unable to connect to the socket on port ${socketPort}.\nPlease run the command \"bit server-forever\" first to start the server.`)\n );\n }\n resetStdin();\n socket.destroy(); // Ensure the socket is fully closed\n reject(err);\n });\n\n // Handle successful connection\n socket.on('connect', () => {\n process.stdin.setRawMode(true);\n process.stdin.resume();\n\n // Forward stdin to the socket\n process.stdin.on('data', (data: any) => {\n socket.write(data);\n\n // Detect Ctrl+C (hex code '03')\n if (data.toString('hex') === '03') {\n // Important to write it to the socket so the server knows to kill the PTY process\n process.stdin.setRawMode(false);\n process.stdin.pause();\n socket.end();\n process.exit();\n }\n });\n\n // Forward data from the socket to stdout\n socket.on('data', (data: any) => {\n process.stdout.write(data);\n });\n\n // Handle socket close and end events\n const cleanup = () => {\n resetStdin();\n socket.destroy();\n };\n\n socket.on('close', cleanup);\n socket.on('end', cleanup);\n\n resolve(); // Connection successful, resolve the Promise\n });\n });\n }\n\n /**\n * Initialize the server-sent events (SSE) connection to the server.\n * This is used to print the logs and show the loader during the command.\n * Without this, it only shows the response from http server, but not the \"logger.console\" or \"logger.setStatusLine\" texts.\n *\n * I wasn't able to find a better way to do it. The challenge here is that the http server is running in a different\n * process, which is not connected to the current process in any way. (unlike the IDE which is its child process and\n * can access its stdout).\n * One of the attempts I made is sending the \"tty\" path to the server and let the server console log to that path, but\n * it didn't work well. It was printed only after the response came back from the server.\n */\n private initSSE(url: string) {\n const eventSource = new EventSource(`${url}/sse-events`);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n eventSource.onerror = (_error: any) => {\n // eslint-disable-next-line no-console\n // console.error('Error occurred in SSE connection:', _error);\n // probably was unable to connect to the server and will throw ServerNotFound right after. no need to show this error.\n eventSource.close();\n };\n eventSource.addEventListener('onLoader', (event: any) => {\n const parsed = JSON.parse(event.data);\n const { method, args } = parsed;\n loader[method](...(args || []));\n });\n eventSource.addEventListener('onLogWritten', (event: any) => {\n const parsed = JSON.parse(event.data);\n process.stdout.write(parsed.message);\n });\n }\n\n private async printPortAndExit() {\n try {\n const port = await this.getExistingUsedPort();\n process.stdout.write(port.toString());\n process.exit(0);\n } catch (err: any) {\n if (err instanceof ScopeNotFound || err instanceof ServerPortFileNotFound || err instanceof ServerIsNotRunning) {\n process.exit(0);\n }\n console.error(err.message); // eslint-disable-line no-console\n process.exit(1);\n }\n }\n private async deletePortAndExit() {\n try {\n await this.deleteServerPortFile();\n process.exit(0);\n } catch {\n // probably file doesn't exist.\n process.exit(0);\n }\n }\n\n private printSocketPortAndExit() {\n try {\n const port = getSocketPort();\n process.stdout.write(port.toString());\n process.exit(0);\n } catch (err: any) {\n console.error(err.message); // eslint-disable-line no-console\n process.exit(1);\n }\n }\n\n private async getExistingUsedPort(): Promise<number> {\n const port = await this.getExistingPort();\n const isPortInUse = await this.isPortInUseForCurrentDir(port);\n if (!isPortInUse) {\n await this.deleteServerPortFile();\n throw new ServerIsNotRunning(port);\n }\n\n return port;\n }\n\n private async isPortInUseForCurrentDir(port: number) {\n const pid = getPidByPort(port);\n if (!pid) {\n return false;\n }\n const dirUsedByPort = await getCwdByPid(pid);\n if (!dirUsedByPort) {\n // might not be supported by Windows. this is on-best-effort basis.\n return true;\n }\n const currentDir = process.cwd();\n return dirUsedByPort === currentDir;\n }\n\n private async getExistingPort(): Promise<number> {\n const filePath = this.getServerPortFilePath();\n try {\n const fileContent = await fs.readFile(filePath, 'utf8');\n return parseInt(fileContent, 10);\n } catch (err: any) {\n if (err.code === 'ENOENT') {\n throw new ServerPortFileNotFound(filePath);\n }\n throw err;\n }\n }\n\n private async deleteServerPortFile() {\n const filePath = this.getServerPortFilePath();\n await fs.remove(filePath);\n }\n\n private getServerPortFilePath() {\n const scopePath = findScopePath(process.cwd());\n if (!scopePath) {\n throw new ScopeNotFound(process.cwd());\n }\n return join(scopePath, 'server-port.txt');\n }\n}\n\nexport function shouldUseBitServer() {\n const commandsToSkip = ['start', 'run', 'watch', 'server'];\n const hasFlag =\n process.env.BIT_CLI_SERVER === 'true' ||\n process.env.BIT_CLI_SERVER === '1' ||\n process.env.BIT_CLI_SERVER_PTY === 'true' ||\n process.env.BIT_CLI_SERVER_TTY === 'true';\n return (\n hasFlag &&\n process.argv.length > 2 && // if it has no args, it shows the help\n !commandsToSkip.includes(process.argv[2])\n );\n}\n\n/**\n * Executes a command and returns stdout as a string.\n */\nfunction execCommand(cmd: string): Promise<string> {\n return new Promise((resolve, reject) => {\n exec(cmd, { encoding: 'utf-8' }, (error, stdout) => {\n if (error) {\n return reject(error);\n }\n resolve(stdout.trim());\n });\n });\n}\n\n/**\n * Get the CWD of a process by PID.\n *\n * On Linux: readlink /proc/<pid>/cwd\n * On macOS: lsof -p <pid> and parse line with 'cwd'\n * On Windows: forget about it. tried with wmic, didn't went well.\n */\nasync function getCwdByPid(pid: string): Promise<string | null> {\n const platform = os.platform();\n\n try {\n if (platform === 'linux') {\n const cwd = await execCommand(`readlink /proc/${pid}/cwd`);\n return cwd || null;\n } else if (platform === 'darwin') {\n // macOS does not have /proc, but lsof -p <pid> shows cwd line like:\n // COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME\n // node 12345 user cwd DIR 1,2 1024 56789 /Users/username/project\n const output = await execCommand(`lsof -p ${pid}`);\n const line = output.split('\\n').find((l) => l.includes(' cwd '));\n if (!line) return null;\n const parts = line.trim().split(/\\s+/);\n // The last part should be the directory path\n return parts[parts.length - 1] || null;\n } else if (platform === 'win32') {\n return null;\n } else {\n throw new Error(`Platform ${platform} not supported`);\n }\n } catch {\n return null;\n }\n}\n"],"mappings":";;;;;;;AA4CA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,UAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,KAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,IAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,SAAA;EAAA,MAAAJ,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAE,QAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,eAAA;EAAA,MAAAL,IAAA,GAA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OAAO,CAAC,CAAC;MAChE,IAAI,CAAC4F,IAAI,EAAE,OAAO,IAAI;MACtB,MAAMI,KAAK,GAAGJ,IAAI,CAAC9E,IAAI,CAAC,CAAC,CAAC+E,KAAK,CAAC,KAAK,CAAC;MACtC;MACA,OAAOG,KAAK,CAACA,KAAK,CAACV,MAAM,GAAG,CAAC,CAAC,IAAI,IAAI;IACxC,CAAC,MAAM,IAAI1F,QAAQ,KAAK,OAAO,EAAE;MAC/B,OAAO,IAAI;IACb,CAAC,MAAM;MACL,MAAM,IAAI5B,KAAK,CAAC,YAAY4B,QAAQ,gBAAgB,CAAC;IACvD;EACF,CAAC,CAAC,MAAM;IACN,OAAO,IAAI;EACb;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_nodeFetch","data","_interopRequireDefault","require","_net","_fsExtra","_child_process","_path","_os","_eventsource","_scopeModules","_chalk","_legacy","_bootstrap","_serverForever","e","__esModule","default","CMD_SERVER_PORT","CMD_SERVER_PORT_DELETE","CMD_SERVER_SOCKET_PORT","SKIP_PORT_VALIDATION_ARG","ServerPortFileNotFound","Error","constructor","filePath","ServerIsNotRunning","port","ScopeNotFound","scopePath","ServerCommander","execute","results","runCommandWithHttpServer","exitCode","loader","off","dataToPrint","JSON","stringify","undefined","console","log","process","exit","err","error","chalk","red","message","shouldUseTTYPath","platform","env","BIT_CLI_SERVER_TTY","argv","includes","printPortAndExit","printSocketPortAndExit","deletePortAndExit","printBitVersionIfAsked","getExistingUsedPort","url","shouldUsePTY","BIT_CLI_SERVER_PTY","connectToSocket","ttyPath","execSync","encoding","stdio","trim","initSSE","args","slice","on","endpoint","pwd","cwd","body","command","envBitFeatures","BIT_FEATURES","isPty","res","fetch","method","headers","code","deleteServerPortFile","join","ok","json","jsonResponse","statusText","Promise","resolve","reject","socketPort","getSocketPort","socket","net","createConnection","resetStdin","stdin","setRawMode","pause","destroy","resume","write","toString","end","stdout","cleanup","eventSource","EventSource","onerror","_error","close","addEventListener","event","parsed","parse","getExistingPort","shouldSkipPortValidation","isPortInUse","isPortInUseForCurrentDir","pid","getPidByPort","dirUsedByPort","getCwdByPid","currentDir","getServerPortFilePath","fileContent","fs","readFile","parseInt","remove","findScopePath","exports","shouldUseBitServer","commandsToSkip","hasFlag","BIT_CLI_SERVER","length","execCommand","cmd","exec","os","output","line","split","find","l","parts"],"sources":["server-commander.ts"],"sourcesContent":["/**\n * This file is responsible for interacting with bit through a long-running background process \"bit-server\" rather than directly.\n * Why not directly?\n * 1. startup cost. currently it takes around 1 second to bootstrap bit.\n * 2. an experimental package-manager saves node_modules in-memory. if a client starts a new process, it won't have the node_modules in-memory.\n *\n * In this file, there are three ways to achieve this. It's outlined in the order it was evolved.\n * The big challenge here is to show the output correctly to the client even though the server is running in a different process.\n *\n * 1. process.env.BIT_CLI_SERVER === 'true'\n * This method uses SSE - Server Send Events. The server sends events to the client with the output to print. The client listens to\n * these events and prints them. It's cumbersome. For this, the logger was changed and every time the logger needs to print to the console,\n * it was using this SSE to send events. Same with the loader.\n * Cons: Other output, such as pnpm, needs an extra effort to print - for pnpm, the \"process\" object was passed to pnpm\n * and its stdout was modified to use the SSE.\n * However, other tools that print directly to the console, such as Jest, won't work.\n *\n * 2. process.env.BIT_CLI_SERVER_TTY === 'true'\n * Because the terminal - tty is a fd (file descriptor) on mac/linux, it can be passed to the server. The server can write to this\n * fd and it will be printed to the client terminal. On the server, the process.stdout.write was monkey-patched to\n * write to the tty. (see cli-raw.route.ts file).\n * It solves the problem of Jest and other tools that print directly to the console.\n * Cons:\n * A. It doesn't work on Windows. Windows doesn't treat tty as a file descriptor.\n * B. We need two ways communication. Commands such as \"bit update\", display a prompt with option to select using the arrow keys.\n * This is not possible with the tty approach. Also, if the client hits Ctrl+C, the server won't know about it and it\n * won't kill the process.\n *\n * 3. process.env.BIT_CLI_SERVER_PTY === 'true'\n * This is the most advanced approach. It spawns a pty (pseudo terminal) process to communicate between the client and the server.\n * The client connects to the server using a socket. The server writes to the socket and the client reads from it.\n * The client also writes to the socket and the server reads from it. See server-forever.ts to understand better.\n * In order to pass terminal sequences, such as arrow keys or Ctrl+C, the stdin of the client is set to raw mode.\n * In theory, this approach could work by spawning a normal process, not pty, however, then, the stdin/stdout are non-tty,\n * and as a result, loaders such as Ora and chalk won't work.\n * With this new approach, we also support terminating and reloading the server. A new command is added\n * \"bit server-forever\", which spawns the pty-process. If the client hits Ctrl+C, this server-forever process will kill\n * the pty-process and re-load it.\n * Keep in mind, that to send the command and get the results, we still using http. The usage of the pty is only for\n * the input/output during the command.\n * I was trying to avoid the http, and use only the pty, by implementing readline to get the command from the socket,\n * but then I wasn't able to return the prompt to the user easily. So, I decided to keep the http for the request/response part.\n */\n\nimport fetch from 'node-fetch';\nimport net from 'net';\nimport fs from 'fs-extra';\nimport { exec, execSync } from 'child_process';\nimport { join } from 'path';\nimport os from 'os';\nimport EventSource from 'eventsource';\nimport { findScopePath } from '@teambit/scope.modules.find-scope-path';\nimport chalk from 'chalk';\nimport { loader } from '@teambit/legacy.loader';\nimport { printBitVersionIfAsked } from './bootstrap';\nimport { getPidByPort, getSocketPort } from './server-forever';\n\nconst CMD_SERVER_PORT = 'cli-server-port';\nconst CMD_SERVER_PORT_DELETE = 'cli-server-port-delete';\nconst CMD_SERVER_SOCKET_PORT = 'cli-server-socket-port';\nconst SKIP_PORT_VALIDATION_ARG = '--skip-port-validation';\n\nclass ServerPortFileNotFound extends Error {\n constructor(filePath: string) {\n super(`server port file not found at ${filePath}`);\n }\n}\nclass ServerIsNotRunning extends Error {\n constructor(port: number) {\n super(`bit server is not running on port ${port}`);\n }\n}\nclass ScopeNotFound extends Error {\n constructor(scopePath: string) {\n super(`scope not found at ${scopePath}`);\n }\n}\n\ntype CommandResult = { data: any; exitCode: number };\n\nexport class ServerCommander {\n async execute() {\n try {\n const results = await this.runCommandWithHttpServer();\n if (results) {\n const { data, exitCode } = results;\n loader.off();\n const dataToPrint = typeof data === 'string' ? data : JSON.stringify(data, undefined, 2);\n // eslint-disable-next-line no-console\n console.log(dataToPrint);\n process.exit(exitCode);\n }\n\n process.exit(0);\n } catch (err: any) {\n if (err instanceof ScopeNotFound || err instanceof ServerPortFileNotFound || err instanceof ServerIsNotRunning) {\n throw err;\n }\n loader.off();\n // eslint-disable-next-line no-console\n console.error(chalk.red(err.message));\n process.exit(1);\n }\n }\n\n private shouldUseTTYPath() {\n if (process.platform === 'win32') return false; // windows doesn't support tty path\n return process.env.BIT_CLI_SERVER_TTY === 'true';\n }\n\n async runCommandWithHttpServer(): Promise<CommandResult | undefined | void> {\n if (process.argv.includes(CMD_SERVER_PORT)) return this.printPortAndExit();\n if (process.argv.includes(CMD_SERVER_SOCKET_PORT)) return this.printSocketPortAndExit();\n if (process.argv.includes(CMD_SERVER_PORT_DELETE)) return this.deletePortAndExit();\n printBitVersionIfAsked();\n const port = await this.getExistingUsedPort();\n const url = `http://localhost:${port}/api`;\n const shouldUsePTY = process.env.BIT_CLI_SERVER_PTY === 'true';\n\n if (shouldUsePTY) {\n await this.connectToSocket();\n }\n const ttyPath = this.shouldUseTTYPath()\n ? execSync('tty', {\n encoding: 'utf8',\n stdio: ['inherit', 'pipe', 'pipe'],\n }).trim()\n : undefined;\n if (!ttyPath && !shouldUsePTY) this.initSSE(url);\n // parse the args and options from the command\n const args = process.argv.slice(2);\n if (!args.includes('--json') && !args.includes('-j')) {\n loader.on();\n }\n const endpoint = `cli-raw`;\n const pwd = process.cwd();\n const body = { command: args, pwd, envBitFeatures: process.env.BIT_FEATURES, ttyPath, isPty: shouldUsePTY };\n let res;\n try {\n res = await fetch(`${url}/${endpoint}`, {\n method: 'post',\n body: JSON.stringify(body),\n headers: { 'Content-Type': 'application/json' },\n });\n } catch (err: any) {\n if (err.code === 'ECONNREFUSED') {\n await this.deleteServerPortFile();\n throw new ServerIsNotRunning(port);\n }\n throw new Error(`failed to run command \"${args.join(' ')}\" on the server. ${err.message}`);\n }\n\n if (res.ok) {\n const results = await res.json();\n return results;\n }\n\n let jsonResponse;\n try {\n jsonResponse = await res.json();\n } catch {\n // the response is not json, ignore the body.\n }\n throw new Error(jsonResponse?.message || jsonResponse || res.statusText);\n }\n\n private async connectToSocket() {\n return new Promise<void>((resolve, reject) => {\n const socketPort = getSocketPort();\n const socket = net.createConnection({ port: socketPort });\n\n const resetStdin = () => {\n process.stdin.setRawMode(false);\n process.stdin.pause();\n };\n\n // Handle errors that occur before or after connection\n socket.on('error', (err: any) => {\n if (err.code === 'ECONNREFUSED') {\n reject(\n new Error(`Error: Unable to connect to the socket on port ${socketPort}.\nPlease run the command \"bit server-forever\" first to start the server.`)\n );\n }\n resetStdin();\n socket.destroy(); // Ensure the socket is fully closed\n reject(err);\n });\n\n // Handle successful connection\n socket.on('connect', () => {\n process.stdin.setRawMode(true);\n process.stdin.resume();\n\n // Forward stdin to the socket\n process.stdin.on('data', (data: any) => {\n socket.write(data);\n\n // Detect Ctrl+C (hex code '03')\n if (data.toString('hex') === '03') {\n // Important to write it to the socket so the server knows to kill the PTY process\n process.stdin.setRawMode(false);\n process.stdin.pause();\n socket.end();\n process.exit();\n }\n });\n\n // Forward data from the socket to stdout\n socket.on('data', (data: any) => {\n process.stdout.write(data);\n });\n\n // Handle socket close and end events\n const cleanup = () => {\n resetStdin();\n socket.destroy();\n };\n\n socket.on('close', cleanup);\n socket.on('end', cleanup);\n\n resolve(); // Connection successful, resolve the Promise\n });\n });\n }\n\n /**\n * Initialize the server-sent events (SSE) connection to the server.\n * This is used to print the logs and show the loader during the command.\n * Without this, it only shows the response from http server, but not the \"logger.console\" or \"logger.setStatusLine\" texts.\n *\n * I wasn't able to find a better way to do it. The challenge here is that the http server is running in a different\n * process, which is not connected to the current process in any way. (unlike the IDE which is its child process and\n * can access its stdout).\n * One of the attempts I made is sending the \"tty\" path to the server and let the server console log to that path, but\n * it didn't work well. It was printed only after the response came back from the server.\n */\n private initSSE(url: string) {\n const eventSource = new EventSource(`${url}/sse-events`);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n eventSource.onerror = (_error: any) => {\n // eslint-disable-next-line no-console\n // console.error('Error occurred in SSE connection:', _error);\n // probably was unable to connect to the server and will throw ServerNotFound right after. no need to show this error.\n eventSource.close();\n };\n eventSource.addEventListener('onLoader', (event: any) => {\n const parsed = JSON.parse(event.data);\n const { method, args } = parsed;\n loader[method](...(args || []));\n });\n eventSource.addEventListener('onLogWritten', (event: any) => {\n const parsed = JSON.parse(event.data);\n process.stdout.write(parsed.message);\n });\n }\n\n private async printPortAndExit() {\n try {\n const port = await this.getExistingUsedPort();\n process.stdout.write(port.toString());\n process.exit(0);\n } catch (err: any) {\n if (err instanceof ScopeNotFound || err instanceof ServerPortFileNotFound || err instanceof ServerIsNotRunning) {\n process.exit(0);\n }\n console.error(err.message); // eslint-disable-line no-console\n process.exit(1);\n }\n }\n private async deletePortAndExit() {\n try {\n await this.deleteServerPortFile();\n process.exit(0);\n } catch {\n // probably file doesn't exist.\n process.exit(0);\n }\n }\n\n private printSocketPortAndExit() {\n try {\n const port = getSocketPort();\n process.stdout.write(port.toString());\n process.exit(0);\n } catch (err: any) {\n console.error(err.message); // eslint-disable-line no-console\n process.exit(1);\n }\n }\n\n private async getExistingUsedPort(): Promise<number> {\n const port = await this.getExistingPort();\n const shouldSkipPortValidation = process.argv.includes(SKIP_PORT_VALIDATION_ARG);\n const isPortInUse = shouldSkipPortValidation ? true : await this.isPortInUseForCurrentDir(port);\n if (!isPortInUse) {\n await this.deleteServerPortFile();\n throw new ServerIsNotRunning(port);\n }\n\n return port;\n }\n\n private async isPortInUseForCurrentDir(port: number) {\n const pid = getPidByPort(port);\n if (!pid) {\n return false;\n }\n const dirUsedByPort = await getCwdByPid(pid);\n if (!dirUsedByPort) {\n // might not be supported by Windows. this is on-best-effort basis.\n return true;\n }\n const currentDir = process.cwd();\n return dirUsedByPort === currentDir;\n }\n\n private async getExistingPort(): Promise<number> {\n const filePath = this.getServerPortFilePath();\n try {\n const fileContent = await fs.readFile(filePath, 'utf8');\n return parseInt(fileContent, 10);\n } catch (err: any) {\n if (err.code === 'ENOENT') {\n throw new ServerPortFileNotFound(filePath);\n }\n throw err;\n }\n }\n\n private async deleteServerPortFile() {\n const filePath = this.getServerPortFilePath();\n await fs.remove(filePath);\n }\n\n private getServerPortFilePath() {\n const scopePath = findScopePath(process.cwd());\n if (!scopePath) {\n throw new ScopeNotFound(process.cwd());\n }\n return join(scopePath, 'server-port.txt');\n }\n}\n\nexport function shouldUseBitServer() {\n const commandsToSkip = ['start', 'run', 'watch', 'server'];\n const hasFlag =\n process.env.BIT_CLI_SERVER === 'true' ||\n process.env.BIT_CLI_SERVER === '1' ||\n process.env.BIT_CLI_SERVER_PTY === 'true' ||\n process.env.BIT_CLI_SERVER_TTY === 'true';\n return (\n hasFlag &&\n process.argv.length > 2 && // if it has no args, it shows the help\n !commandsToSkip.includes(process.argv[2])\n );\n}\n\n/**\n * Executes a command and returns stdout as a string.\n */\nfunction execCommand(cmd: string): Promise<string> {\n return new Promise((resolve, reject) => {\n exec(cmd, { encoding: 'utf-8' }, (error, stdout) => {\n if (error) {\n return reject(error);\n }\n resolve(stdout.trim());\n });\n });\n}\n\n/**\n * Get the CWD of a process by PID.\n *\n * On Linux: readlink /proc/<pid>/cwd\n * On macOS: lsof -p <pid> and parse line with 'cwd'\n * On Windows: forget about it. tried with wmic, didn't went well.\n */\nasync function getCwdByPid(pid: string): Promise<string | null> {\n const platform = os.platform();\n\n try {\n if (platform === 'linux') {\n const cwd = await execCommand(`readlink /proc/${pid}/cwd`);\n return cwd || null;\n } else if (platform === 'darwin') {\n // macOS does not have /proc, but lsof -p <pid> shows cwd line like:\n // COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME\n // node 12345 user cwd DIR 1,2 1024 56789 /Users/username/project\n const output = await execCommand(`lsof -p ${pid}`);\n const line = output.split('\\n').find((l) => l.includes(' cwd '));\n if (!line) return null;\n const parts = line.trim().split(/\\s+/);\n // The last part should be the directory path\n return parts[parts.length - 1] || null;\n } else if (platform === 'win32') {\n return null;\n } else {\n throw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.
|
|
3
|
+
"version": "1.9.124",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/bit",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "bit",
|
|
9
|
-
"version": "1.9.
|
|
9
|
+
"version": "1.9.124"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"comment-json": "4.2.5",
|
|
@@ -49,19 +49,19 @@
|
|
|
49
49
|
"@teambit/legacy-bit-id": "1.1.2",
|
|
50
50
|
"@teambit/ui-foundation.ui.navigation.react-router-adapter": "6.1.1",
|
|
51
51
|
"@teambit/base-react.navigation.link": "2.0.31",
|
|
52
|
-
"@teambit/harmony.content.cli-reference": "2.0.
|
|
53
|
-
"@teambit/cli": "0.0.
|
|
52
|
+
"@teambit/harmony.content.cli-reference": "2.0.610",
|
|
53
|
+
"@teambit/cli": "0.0.1171",
|
|
54
54
|
"@teambit/legacy.extension-data": "0.0.49",
|
|
55
55
|
"@teambit/bit.get-bit-version": "0.0.5",
|
|
56
56
|
"@teambit/legacy.analytics": "0.0.73",
|
|
57
57
|
"@teambit/legacy.constants": "0.0.11",
|
|
58
58
|
"@teambit/legacy.loader": "0.0.7",
|
|
59
59
|
"@teambit/legacy.logger": "0.0.17",
|
|
60
|
-
"@teambit/aspect-loader": "1.0.
|
|
60
|
+
"@teambit/aspect-loader": "1.0.594",
|
|
61
61
|
"@teambit/clear-cache": "0.0.466",
|
|
62
|
-
"@teambit/config": "0.0.
|
|
63
|
-
"@teambit/envs": "1.0.
|
|
64
|
-
"@teambit/generator": "1.0.
|
|
62
|
+
"@teambit/config": "0.0.1345",
|
|
63
|
+
"@teambit/envs": "1.0.594",
|
|
64
|
+
"@teambit/generator": "1.0.595",
|
|
65
65
|
"@teambit/legacy.bit-map": "0.0.104",
|
|
66
66
|
"@teambit/legacy.consumer-component": "0.0.48",
|
|
67
67
|
"@teambit/legacy.consumer-config": "0.0.47",
|
|
@@ -70,103 +70,103 @@
|
|
|
70
70
|
"@teambit/scope.modules.find-scope-path": "0.0.12",
|
|
71
71
|
"@teambit/workspace.modules.node-modules-linker": "0.0.275",
|
|
72
72
|
"@teambit/workspace.modules.workspace-locator": "0.0.12",
|
|
73
|
-
"@teambit/api-reference": "1.0.
|
|
74
|
-
"@teambit/api-server": "1.0.
|
|
75
|
-
"@teambit/application": "1.0.
|
|
76
|
-
"@teambit/aspect": "1.0.
|
|
77
|
-
"@teambit/babel": "1.0.
|
|
78
|
-
"@teambit/builder": "1.0.
|
|
79
|
-
"@teambit/bundler": "1.0.
|
|
80
|
-
"@teambit/cache": "0.0.
|
|
81
|
-
"@teambit/changelog": "1.0.
|
|
82
|
-
"@teambit/checkout": "1.0.
|
|
83
|
-
"@teambit/cloud": "0.0.
|
|
84
|
-
"@teambit/code": "1.0.
|
|
85
|
-
"@teambit/command-bar": "1.0.
|
|
86
|
-
"@teambit/community": "1.0.
|
|
87
|
-
"@teambit/compiler": "1.0.
|
|
88
|
-
"@teambit/component-compare": "1.0.
|
|
89
|
-
"@teambit/component-log": "1.0.
|
|
90
|
-
"@teambit/component-sizer": "1.0.
|
|
91
|
-
"@teambit/component-tree": "1.0.
|
|
92
|
-
"@teambit/component-writer": "1.0.
|
|
93
|
-
"@teambit/component": "1.0.
|
|
94
|
-
"@teambit/compositions": "1.0.
|
|
95
|
-
"@teambit/config-merger": "0.0.
|
|
96
|
-
"@teambit/config-store": "0.0.
|
|
97
|
-
"@teambit/dependencies": "1.0.
|
|
98
|
-
"@teambit/dependency-resolver": "1.0.
|
|
99
|
-
"@teambit/deprecation": "1.0.
|
|
100
|
-
"@teambit/dev-files": "1.0.
|
|
101
|
-
"@teambit/diagnostic": "1.0.
|
|
102
|
-
"@teambit/docs": "1.0.
|
|
103
|
-
"@teambit/doctor": "0.0.
|
|
104
|
-
"@teambit/eject": "1.0.
|
|
105
|
-
"@teambit/env": "1.0.
|
|
106
|
-
"@teambit/eslint": "1.0.
|
|
107
|
-
"@teambit/export": "1.0.
|
|
108
|
-
"@teambit/express": "0.0.
|
|
109
|
-
"@teambit/forking": "1.0.
|
|
110
|
-
"@teambit/formatter": "1.0.
|
|
111
|
-
"@teambit/git": "1.0.
|
|
112
|
-
"@teambit/global-config": "0.0.
|
|
113
|
-
"@teambit/graph": "1.0.
|
|
114
|
-
"@teambit/graphql": "1.0.
|
|
115
|
-
"@teambit/harmony-ui-app": "1.0.
|
|
116
|
-
"@teambit/host-initializer": "0.0.
|
|
117
|
-
"@teambit/importer": "1.0.
|
|
118
|
-
"@teambit/insights": "1.0.
|
|
119
|
-
"@teambit/install": "1.0.
|
|
120
|
-
"@teambit/ipc-events": "1.0.
|
|
121
|
-
"@teambit/isolator": "1.0.
|
|
122
|
-
"@teambit/issues": "1.0.
|
|
123
|
-
"@teambit/jest": "1.0.
|
|
124
|
-
"@teambit/lanes": "1.0.
|
|
125
|
-
"@teambit/linter": "1.0.
|
|
126
|
-
"@teambit/lister": "1.0.
|
|
127
|
-
"@teambit/logger": "0.0.
|
|
128
|
-
"@teambit/mdx": "1.0.
|
|
129
|
-
"@teambit/merge-lanes": "1.0.
|
|
130
|
-
"@teambit/merging": "1.0.
|
|
131
|
-
"@teambit/mocha": "1.0.
|
|
132
|
-
"@teambit/mover": "1.0.
|
|
133
|
-
"@teambit/multi-compiler": "1.0.
|
|
134
|
-
"@teambit/multi-tester": "1.0.
|
|
135
|
-
"@teambit/new-component-helper": "1.0.
|
|
136
|
-
"@teambit/node": "1.0.
|
|
137
|
-
"@teambit/notifications": "1.0.
|
|
138
|
-
"@teambit/objects": "0.0.
|
|
139
|
-
"@teambit/panels": "0.0.
|
|
140
|
-
"@teambit/pkg": "1.0.
|
|
141
|
-
"@teambit/pnpm": "1.0.
|
|
142
|
-
"@teambit/prettier": "1.0.
|
|
143
|
-
"@teambit/preview": "1.0.
|
|
144
|
-
"@teambit/pubsub": "1.0.
|
|
145
|
-
"@teambit/react-router": "1.0.
|
|
146
|
-
"@teambit/react": "1.0.
|
|
147
|
-
"@teambit/readme": "1.0.
|
|
148
|
-
"@teambit/refactoring": "1.0.
|
|
149
|
-
"@teambit/remove": "1.0.
|
|
150
|
-
"@teambit/renaming": "1.0.
|
|
151
|
-
"@teambit/schema": "1.0.
|
|
152
|
-
"@teambit/scope": "1.0.
|
|
153
|
-
"@teambit/sidebar": "1.0.
|
|
154
|
-
"@teambit/snapping": "1.0.
|
|
155
|
-
"@teambit/stash": "1.0.
|
|
156
|
-
"@teambit/status": "1.0.
|
|
157
|
-
"@teambit/tester": "1.0.
|
|
158
|
-
"@teambit/tracker": "1.0.
|
|
159
|
-
"@teambit/typescript": "1.0.
|
|
160
|
-
"@teambit/ui": "1.0.
|
|
161
|
-
"@teambit/user-agent": "1.0.
|
|
162
|
-
"@teambit/variants": "0.0.
|
|
163
|
-
"@teambit/version-history": "0.0.
|
|
164
|
-
"@teambit/watcher": "1.0.
|
|
165
|
-
"@teambit/webpack": "1.0.
|
|
166
|
-
"@teambit/worker": "0.0.
|
|
167
|
-
"@teambit/workspace-config-files": "1.0.
|
|
168
|
-
"@teambit/workspace": "1.0.
|
|
169
|
-
"@teambit/yarn": "1.0.
|
|
73
|
+
"@teambit/api-reference": "1.0.594",
|
|
74
|
+
"@teambit/api-server": "1.0.596",
|
|
75
|
+
"@teambit/application": "1.0.594",
|
|
76
|
+
"@teambit/aspect": "1.0.594",
|
|
77
|
+
"@teambit/babel": "1.0.594",
|
|
78
|
+
"@teambit/builder": "1.0.594",
|
|
79
|
+
"@teambit/bundler": "1.0.594",
|
|
80
|
+
"@teambit/cache": "0.0.1264",
|
|
81
|
+
"@teambit/changelog": "1.0.594",
|
|
82
|
+
"@teambit/checkout": "1.0.594",
|
|
83
|
+
"@teambit/cloud": "0.0.871",
|
|
84
|
+
"@teambit/code": "1.0.594",
|
|
85
|
+
"@teambit/command-bar": "1.0.594",
|
|
86
|
+
"@teambit/community": "1.0.594",
|
|
87
|
+
"@teambit/compiler": "1.0.594",
|
|
88
|
+
"@teambit/component-compare": "1.0.594",
|
|
89
|
+
"@teambit/component-log": "1.0.594",
|
|
90
|
+
"@teambit/component-sizer": "1.0.594",
|
|
91
|
+
"@teambit/component-tree": "1.0.594",
|
|
92
|
+
"@teambit/component-writer": "1.0.594",
|
|
93
|
+
"@teambit/component": "1.0.594",
|
|
94
|
+
"@teambit/compositions": "1.0.594",
|
|
95
|
+
"@teambit/config-merger": "0.0.461",
|
|
96
|
+
"@teambit/config-store": "0.0.51",
|
|
97
|
+
"@teambit/dependencies": "1.0.594",
|
|
98
|
+
"@teambit/dependency-resolver": "1.0.594",
|
|
99
|
+
"@teambit/deprecation": "1.0.594",
|
|
100
|
+
"@teambit/dev-files": "1.0.594",
|
|
101
|
+
"@teambit/diagnostic": "1.0.594",
|
|
102
|
+
"@teambit/docs": "1.0.594",
|
|
103
|
+
"@teambit/doctor": "0.0.277",
|
|
104
|
+
"@teambit/eject": "1.0.594",
|
|
105
|
+
"@teambit/env": "1.0.594",
|
|
106
|
+
"@teambit/eslint": "1.0.594",
|
|
107
|
+
"@teambit/export": "1.0.594",
|
|
108
|
+
"@teambit/express": "0.0.1270",
|
|
109
|
+
"@teambit/forking": "1.0.594",
|
|
110
|
+
"@teambit/formatter": "1.0.594",
|
|
111
|
+
"@teambit/git": "1.0.594",
|
|
112
|
+
"@teambit/global-config": "0.0.1174",
|
|
113
|
+
"@teambit/graph": "1.0.594",
|
|
114
|
+
"@teambit/graphql": "1.0.594",
|
|
115
|
+
"@teambit/harmony-ui-app": "1.0.594",
|
|
116
|
+
"@teambit/host-initializer": "0.0.307",
|
|
117
|
+
"@teambit/importer": "1.0.594",
|
|
118
|
+
"@teambit/insights": "1.0.594",
|
|
119
|
+
"@teambit/install": "1.0.594",
|
|
120
|
+
"@teambit/ipc-events": "1.0.594",
|
|
121
|
+
"@teambit/isolator": "1.0.594",
|
|
122
|
+
"@teambit/issues": "1.0.594",
|
|
123
|
+
"@teambit/jest": "1.0.594",
|
|
124
|
+
"@teambit/lanes": "1.0.595",
|
|
125
|
+
"@teambit/linter": "1.0.594",
|
|
126
|
+
"@teambit/lister": "1.0.594",
|
|
127
|
+
"@teambit/logger": "0.0.1264",
|
|
128
|
+
"@teambit/mdx": "1.0.594",
|
|
129
|
+
"@teambit/merge-lanes": "1.0.595",
|
|
130
|
+
"@teambit/merging": "1.0.594",
|
|
131
|
+
"@teambit/mocha": "1.0.594",
|
|
132
|
+
"@teambit/mover": "1.0.594",
|
|
133
|
+
"@teambit/multi-compiler": "1.0.594",
|
|
134
|
+
"@teambit/multi-tester": "1.0.594",
|
|
135
|
+
"@teambit/new-component-helper": "1.0.594",
|
|
136
|
+
"@teambit/node": "1.0.594",
|
|
137
|
+
"@teambit/notifications": "1.0.594",
|
|
138
|
+
"@teambit/objects": "0.0.101",
|
|
139
|
+
"@teambit/panels": "0.0.1173",
|
|
140
|
+
"@teambit/pkg": "1.0.594",
|
|
141
|
+
"@teambit/pnpm": "1.0.598",
|
|
142
|
+
"@teambit/prettier": "1.0.594",
|
|
143
|
+
"@teambit/preview": "1.0.594",
|
|
144
|
+
"@teambit/pubsub": "1.0.594",
|
|
145
|
+
"@teambit/react-router": "1.0.594",
|
|
146
|
+
"@teambit/react": "1.0.594",
|
|
147
|
+
"@teambit/readme": "1.0.594",
|
|
148
|
+
"@teambit/refactoring": "1.0.594",
|
|
149
|
+
"@teambit/remove": "1.0.594",
|
|
150
|
+
"@teambit/renaming": "1.0.594",
|
|
151
|
+
"@teambit/schema": "1.0.594",
|
|
152
|
+
"@teambit/scope": "1.0.594",
|
|
153
|
+
"@teambit/sidebar": "1.0.594",
|
|
154
|
+
"@teambit/snapping": "1.0.594",
|
|
155
|
+
"@teambit/stash": "1.0.594",
|
|
156
|
+
"@teambit/status": "1.0.595",
|
|
157
|
+
"@teambit/tester": "1.0.594",
|
|
158
|
+
"@teambit/tracker": "1.0.594",
|
|
159
|
+
"@teambit/typescript": "1.0.594",
|
|
160
|
+
"@teambit/ui": "1.0.594",
|
|
161
|
+
"@teambit/user-agent": "1.0.594",
|
|
162
|
+
"@teambit/variants": "0.0.1438",
|
|
163
|
+
"@teambit/version-history": "0.0.386",
|
|
164
|
+
"@teambit/watcher": "1.0.594",
|
|
165
|
+
"@teambit/webpack": "1.0.594",
|
|
166
|
+
"@teambit/worker": "0.0.1475",
|
|
167
|
+
"@teambit/workspace-config-files": "1.0.594",
|
|
168
|
+
"@teambit/workspace": "1.0.594",
|
|
169
|
+
"@teambit/yarn": "1.0.594"
|
|
170
170
|
},
|
|
171
171
|
"devDependencies": {
|
|
172
172
|
"@types/fs-extra": "9.0.7",
|