Skip to content

Commit 05b6a92

Browse files
authored
chore: update the packages scopes (#31)
1 parent c56cab6 commit 05b6a92

22 files changed

Lines changed: 52 additions & 52 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dev:build": "rsbuild build",
1111
"dev:serve": "rsbuild dev",
1212
"dev": "pnpm run build:all && concurrently \"pnpm run dev:serve\" \"wait-on dist/index.js && electron .\"",
13-
"build:all": "pnpm --filter @lynx-dev/* run build && pnpm run build && mkdir -p dist/lynx-devtool-web && cp -r packages/lynx-devtool-web/dist/* dist/lynx-devtool-web/",
13+
"build:all": "pnpm --filter @lynx-js/* run build && pnpm run build && mkdir -p dist/lynx-devtool-web && cp -r packages/lynx-devtool-web/dist/* dist/lynx-devtool-web/",
1414
"clean": "rm -rf dist && pnpm -r exec rm -rf dist && rm -rf packages/devtools-frontend-lynx/out packages/devtools-frontend-lynx/output",
1515
"rebuild": "pnpm run clean && pnpm run build",
1616
"build:devtools-frontend-lynx": "pnpm run fetch:depot_tools && export PATH=$(pwd)/packages/devtools-frontend-lynx/buildtools/depot_tools:$PATH && pnpm run sync:devtools-gn && pnpm run build:devtools && pnpm run sync:devtools-dist",
@@ -25,8 +25,8 @@
2525
"license": "Apache-2.0",
2626
"dependencies": {
2727
"@electron/remote": "^2.1.2",
28-
"@lynx-dev/lynx-devtool-cli": "workspace:*",
29-
"@lynx-dev/lynx-devtool-utils": "workspace:*",
28+
"@lynx-js/lynx-devtool-cli": "workspace:*",
29+
"@lynx-js/lynx-devtool-utils": "workspace:*",
3030
"@lynx-js/remote-debug-driver": "0.0.2",
3131
"@monaco-editor/react": "4.5.0",
3232
"@paciolan/remote-module-loader": "3.0.3",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# @lynx-dev/lynx-devtool-cli
1+
# @lynx-js/lynx-devtool-cli

packages/lynx-devtool-cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@lynx-dev/lynx-devtool-cli",
2+
"name": "@lynx-js/lynx-devtool-cli",
33
"version": "0.0.1-beta.4",
44
"description": "Lynx DevTool toolkit",
55
"license": "Apache-2.0",
@@ -25,7 +25,7 @@
2525
},
2626
"dependencies": {
2727
"@lynx-js/debug-router-connector": "0.0.2",
28-
"@lynx-dev/lynx-devtool-utils": "workspace:*",
28+
"@lynx-js/lynx-devtool-utils": "workspace:*",
2929
"asar": "^3.2.0",
3030
"async": "3.2.4",
3131
"axios": "^1.8.1",

packages/lynx-devtool-cli/src/cli/command/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { app } from 'electron';
1414
import path from 'path';
1515
import { LDT_DIR } from '../utils';
1616
import { getCurrentChannel } from '../updator/updator';
17-
import { kCliPackageName, kScopeName } from '@lynx-dev/lynx-devtool-utils';
17+
import { kCliPackageName, kScopeName } from '@lynx-js/lynx-devtool-utils';
1818

1919
export const uploadFilePath = utils.getUploadFilePath();
2020
const separator = '___';

packages/lynx-devtool-cli/src/cli/command/httpServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import * as utils from '../utils';
1616
import * as handler from './handler';
1717
import { getDebugDriver, restartLDTServer } from './toolkit';
1818
import { LDT_DIR } from '../utils';
19-
import { kScopeName, kCliPackageName } from '@lynx-dev/lynx-devtool-utils';
19+
import { kScopeName, kCliPackageName } from '@lynx-js/lynx-devtool-utils';
2020
const detect = require('detect-port');
2121
const { createProxyMiddleware } = require('http-proxy-middleware');
2222

packages/lynx-devtool-cli/src/cli/updator/updator.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
kCliPackageName,
1313
kScopeName,
1414
kWebPackageName,
15-
} from "@lynx-dev/lynx-devtool-utils";
15+
} from "@lynx-js/lynx-devtool-utils";
1616
import { app } from "electron";
1717
import asar from "asar";
1818
import { electron } from "node:process";
@@ -81,7 +81,7 @@ export async function setupResource(
8181

8282
// build the target path
8383

84-
// ~/.lynx-devtool/3x/@lynx-dev/lynx-devtool-cli
84+
// ~/.lynx-devtool/3x/@lynx-js/lynx-devtool-cli
8585
const ldtPath = path.resolve(
8686
LDT_DIR,
8787
currentChannel,
@@ -125,7 +125,7 @@ export async function setupResource(
125125

126126
// copy bin directory
127127
// from <devtool>/packages/lynx-devtool-cli/bin
128-
// to ~/.lynx-devtool/3x/@lynx-dev/lynx-devtool-cli/bin
128+
// to ~/.lynx-devtool/3x/@lynx-js/lynx-devtool-cli/bin
129129
if (fs.existsSync(path.resolve(debugSourcePath, "bin"))) {
130130
copyDir(
131131
path.resolve(debugSourcePath, "bin"),
@@ -135,7 +135,7 @@ export async function setupResource(
135135

136136
// copy dist directory
137137
// from <devtool>/packages/lynx-devtool-cli/dist
138-
// to ~/.lynx-devtool/3x/@lynx-dev/lynx-devtool-cli/dist
138+
// to ~/.lynx-devtool/3x/@lynx-js/lynx-devtool-cli/dist
139139
if (fs.existsSync(path.resolve(debugSourcePath, "dist"))) {
140140
copyDir(
141141
path.resolve(debugSourcePath, "dist"),
@@ -144,11 +144,11 @@ export async function setupResource(
144144
}
145145

146146
// from <devtool>/packages/lynx-devtool-cli/package.json
147-
// to ~/.lynx-devtool/3x/@lynx-dev/lynx-devtool-cli/package.json
147+
// to ~/.lynx-devtool/3x/@lynx-js/lynx-devtool-cli/package.json
148148
copyFileSync(packageJsonPath, path.resolve(ldtPath, "package.json"));
149149

150150
// from <devtool>/dist/lynx-devtool-web
151-
// to ~/.lynx-devtool/3x/@lynx-dev/lynx-devtool-cli/dist/static/ldt_home/dist
151+
// to ~/.lynx-devtool/3x/@lynx-js/lynx-devtool-cli/dist/static/ldt_home/dist
152152
const webSourcePath = path.resolve(
153153
process.cwd(),
154154
"dist/lynx-devtool-web"
@@ -183,7 +183,7 @@ export async function setupResource(
183183

184184
const innerPackageJson = asar.extractFile(
185185
asarPath,
186-
"node_modules/@lynx-dev/lynx-devtool-cli/package.json"
186+
"node_modules/@lynx-js/lynx-devtool-cli/package.json"
187187
);
188188
const innerPackageJsonObj = JSON.parse(innerPackageJson.toString());
189189
const innerVersion = innerPackageJsonObj.version;
@@ -211,50 +211,50 @@ export async function setupResource(
211211

212212
// copy CLI resources
213213

214-
// ~/.lynx-devtool/.temp/node_modules/@lynx-dev/lynx-devtool-cli
214+
// ~/.lynx-devtool/.temp/node_modules/@lynx-js/lynx-devtool-cli
215215
const tmpCliSourcePath = path.join(
216216
tempDir,
217217
"node_modules",
218218
kScopeName,
219219
kCliPackageName
220220
);
221221

222-
// ~/.lynx-devtool/.temp/node_modules/@lynx-dev/lynx-devtool-cli/package.json
222+
// ~/.lynx-devtool/.temp/node_modules/@lynx-js/lynx-devtool-cli/package.json
223223
const tmpPackageJsonPath = path.join(
224224
tmpCliSourcePath,
225225
"package.json"
226226
);
227227

228228
// copy bin directory
229-
// to ~/.lynx-devtool/3x/@lynx-dev/lynx-devtool-cli/bin
229+
// to ~/.lynx-devtool/3x/@lynx-js/lynx-devtool-cli/bin
230230
copyDir(
231231
path.join(tmpCliSourcePath, "bin"),
232232
path.resolve(ldtPath, "bin")
233233
);
234234

235235
// copy dist directory
236-
// to ~/.lynx-devtool/3x/@lynx-dev/lynx-devtool-cli/dist
236+
// to ~/.lynx-devtool/3x/@lynx-js/lynx-devtool-cli/dist
237237
copyDir(
238238
path.join(tmpCliSourcePath, "dist"),
239239
path.resolve(ldtPath, "dist")
240240
);
241241

242-
// from ~/.lynx-devtool/.temp/node_modules/@lynx-dev/lynx-devtool-cli/package.json
243-
// to ~/.lynx-devtool/3x/@lynx-dev/lynx-devtool-cli/package.json
242+
// from ~/.lynx-devtool/.temp/node_modules/@lynx-js/lynx-devtool-cli/package.json
243+
// to ~/.lynx-devtool/3x/@lynx-js/lynx-devtool-cli/package.json
244244
copyFileSync(
245245
tmpPackageJsonPath,
246246
path.resolve(ldtPath, "package.json")
247247
);
248248

249249
// copy web resources
250-
// ~/.lynx-devtool/.temp/node_modules/@lynx-dev/lynx-devtool-web/dist
250+
// ~/.lynx-devtool/.temp/node_modules/@lynx-js/lynx-devtool-web/dist
251251
const tempWebDistPath = path.join(
252252
tempDir,
253253
"dist",
254254
kWebPackageName
255255
);
256256

257-
// to ~/.lynx-devtool/3x/@lynx-dev/lynx-devtool-cli/dist/static/ldt_home/dist
257+
// to ~/.lynx-devtool/3x/@lynx-js/lynx-devtool-cli/dist/static/ldt_home/dist
258258
copyDir(
259259
tempWebDistPath,
260260
path.resolve(ldtPath, "dist/static/ldt_home/dist")
@@ -274,7 +274,7 @@ export async function setupResource(
274274
fs.mkdirSync(homeCnDir, { recursive: true });
275275
}
276276

277-
// ~/.lynx-devtool/3x/@lynx-dev/lynx-devtool-cli/dist/static/ldt_home/RES_READY_FLAG
277+
// ~/.lynx-devtool/3x/@lynx-js/lynx-devtool-cli/dist/static/ldt_home/RES_READY_FLAG
278278
fs.writeFileSync(
279279
path.resolve(homeCnDir, RES_READY_FLAG),
280280
`${isPackagedApp ? "prod" : "dev"}`
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# @lynx-dev/lynx-devtool-utils
1+
# @lynx-js/lynx-devtool-utils

packages/lynx-devtool-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@lynx-dev/lynx-devtool-utils",
2+
"name": "@lynx-js/lynx-devtool-utils",
33
"version": "0.0.1-beta.4",
44
"types": "./dist/types/index.d.ts",
55
"main": "./dist/lib/index.js",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# @lynx-dev/lynx-devtool-web-components
1+
# @lynx-js/lynx-devtool-web-components

packages/lynx-devtool-web-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@lynx-dev/lynx-devtool-web-components",
2+
"name": "@lynx-js/lynx-devtool-web-components",
33
"version": "0.0.1-beta.4",
44
"jsnext:source": "./src/index.ts",
55
"types": "./dist/types/index.d.ts",

0 commit comments

Comments
 (0)