feat(plugin-cli): add cli af (#3465)

This commit is contained in:
Alex Yang 2023-07-30 11:10:45 -07:00 committed by GitHub
parent 568d5e4cdf
commit 18fcaff5ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 469 additions and 59 deletions

View File

@ -24,7 +24,8 @@
"debug",
"storage",
"infra",
"plugin-infra"
"plugin-infra",
"plugin-cli"
]
]
}

3
.github/labeler.yml vendored
View File

@ -25,6 +25,9 @@ plugin:copilot:
mod:plugin-infra:
- 'packages/plugin-infra/**/*'
mod:plugin-cli:
- 'packages/plugin-cli/**/*'
mod:workspace: 'packages/workspace/**/*'
mod:i18n: 'packages/i18n/**/*'

View File

@ -409,6 +409,12 @@ jobs:
- name: Build Desktop Layers
run: yarn workspace @affine/electron build
- name: Upload desktop dist
uses: actions/upload-artifact@v3
with:
name: dist-${{ matrix.spec.platform }}-${{ matrix.spec.arch }}
path: ./apps/electron/dist
- name: Run desktop tests
if: ${{ matrix.spec.test && matrix.spec.os == 'ubuntu-latest' }}
run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn workspace @affine/electron test

View File

@ -32,7 +32,7 @@ const OptimizeOptionOptions: (
minimizer: [
new TerserPlugin({
minify: TerserPlugin.swcMinify,
exclude: [/\.min\.js$/, /plugins\/.+\/.+\.mjs$/],
exclude: [/plugins\/.+\/.+\.js$/, /plugins\/.+\/.+\.mjs$/],
parallel: true,
extractComments: true,
terserOptions: {

View File

@ -10,6 +10,7 @@
"dependsOn": ["^build"],
"inputs": [
"{projectRoot}/**/*",
"{projectRoot}/public/plugins/**/*",
"{workspaceRoot}/packages/component/src/**/*",
"{workspaceRoot}/packages/debug/src/**/*",
"{workspaceRoot}/packages/graphql/src/**/*",

View File

@ -396,7 +396,7 @@ const entryLogger = new DebugLogger('plugin:entry');
export const evaluatePluginEntry = (pluginName: string) => {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const currentImportMap = pluginNestedImportsMap.get(pluginName)!;
const pluginExports = currentImportMap.get('index.mjs');
const pluginExports = currentImportMap.get('index.js');
assertExists(pluginExports);
const entryFunction = pluginExports.get('entry');
const cleanup = entryFunction(<PluginContext>{

View File

@ -7,14 +7,7 @@
"targets": {
"build": {
"executor": "nx:run-script",
"dependsOn": [
{
"projects": ["@affine/bookmark-block"],
"target": "build",
"params": "ignore"
},
"^build"
],
"dependsOn": ["^build"],
"options": {
"script": "build"
},

View File

@ -19,7 +19,7 @@ const outputList = [
],
],
['dist/plugins', ['bookmark']],
['dist/plugins/bookmark', ['index.js']],
['dist/plugins/bookmark', ['index.cjs']],
] as [entry: string, expected: string[]][];
await Promise.all(

View File

@ -28,7 +28,7 @@ globalThis.console.warn = mainThread.log;
// eslint-disable-next-line @typescript-eslint/no-var-requires
const bookmarkPluginModule = require(join(
process.env.PLUGIN_DIR ?? resolve(__dirname, './plugins'),
'./bookmark/index.js'
'./bookmark/index.cjs'
));
const serverContext: ServerContext = {

View File

@ -33,7 +33,9 @@
"{projectRoot}/build",
"{projectRoot}/out",
"{projectRoot}/storybook-static",
"{workspaceRoot}/packages/i18n/src/i18n-generated.ts"
"{workspaceRoot}/packages/i18n/src/i18n-generated.ts",
"{workspaceRoot}/apps/electron/dist/plugins",
"{workspaceRoot}/apps/core/public/plugins"
],
"inputs": [
{

View File

@ -25,7 +25,7 @@
"build:electron": "yarn nx build @affine/electron",
"build:storage": "yarn nx run-many -t build -p @affine/storage",
"build:infra": "yarn nx run-many -t build -p plugin-infra infra",
"build:plugins": "node ./scripts/build-plugins.mjs",
"build:plugins": "yarn nx run-many -t build --projects=tag:plugin",
"build:storybook": "yarn nx build @affine/storybook",
"start:web-static": "yarn workspace @affine/core static-server",
"start:storybook": "yarn exec serve apps/storybook/storybook-static -l 6006",
@ -58,6 +58,7 @@
"devDependencies": {
"@affine-test/kit": "workspace:*",
"@affine/cli": "workspace:*",
"@affine/plugin-cli": "workspace:*",
"@commitlint/cli": "^17.6.7",
"@commitlint/config-conventional": "^17.6.7",
"@faker-js/faker": "^8.0.2",

View File

@ -4,8 +4,7 @@
"private": true,
"bin": {
"build-core": "./src/bin/build-core.mjs",
"dev-core": "./src/bin/dev-core.mjs",
"dev-plugin": "./src/bin/dev-plugin.mjs"
"dev-core": "./src/bin/dev-core.mjs"
},
"exports": {
"./config": "./src/config/index.ts"
@ -13,7 +12,6 @@
"devDependencies": {
"@clack/core": "^0.3.2",
"@clack/prompts": "^0.6.3",
"@endo/static-module-record": "^0.7.20",
"ts-node": "^10.9.1"
},
"dependencies": {

View File

@ -0,0 +1,21 @@
{
"name": "@affine/plugin-cli",
"type": "module",
"version": "0.8.0-canary.3",
"bin": {
"af": "./src/af.mjs"
},
"files": [
"src",
"tsconfig.json"
],
"dependencies": {
"@endo/static-module-record": "^0.7.20",
"@swc/core": "^1.3.72",
"@toeverything/plugin-infra": "workspace:^",
"@vanilla-extract/rollup-plugin": "^1.2.2",
"rollup": "^3.27.0",
"rollup-plugin-swc3": "^0.9.1",
"ts-node": "^10.9.1"
}
}

View File

@ -7,7 +7,7 @@ const child = spawnSync(
[
'--loader',
'ts-node/esm/transpile-only',
fileURLToPath(new URL('./dev-plugin.ts', import.meta.url)),
fileURLToPath(new URL('./af.ts', import.meta.url)),
...process.argv.slice(2),
],
{ stdio: 'inherit' }

View File

@ -1,7 +1,7 @@
import { ok } from 'node:assert';
import { createHash } from 'node:crypto';
import { readFile } from 'node:fs/promises';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { parseArgs } from 'node:util';
import { StaticModuleRecord } from '@endo/static-module-record';
@ -14,31 +14,23 @@ import react from '@vitejs/plugin-react-swc';
import { build, type PluginOption } from 'vite';
import type { z } from 'zod';
import { projectRoot } from '../config/index.js';
const projectRoot = fileURLToPath(new URL('../../..', import.meta.url));
const args = process.argv.splice(2);
const result = parseArgs({
args,
options: {
watch: {
type: 'boolean',
default: false,
},
plugin: {
type: 'string',
},
},
allowPositionals: true,
});
const plugin = result.values.plugin;
if (typeof plugin !== 'string') {
throw new Error('plugin is required');
const plugin = process.cwd().split(path.sep).pop();
if (!plugin) {
throw new Error('plugin name not found');
}
const isWatch = result.values.watch;
ok(typeof isWatch === 'boolean');
const command = result.positionals[0];
const isWatch = command === 'dev';
const external = [
// built-in packages
@ -119,7 +111,7 @@ const generatePackageJson: PluginOption = {
affinePlugin: {
release: json.affinePlugin.release,
entry: {
core: 'index.mjs',
core: 'index.js',
},
assets: [...metadata.assets],
serverCommand: json.affinePlugin.serverCommand,

View File

@ -0,0 +1,15 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"outDir": "lib"
},
"include": ["src"],
"references": [
{
"path": "../plugin-infra"
}
]
}

View File

@ -13,11 +13,18 @@
"com.blocksuite.bookmark-block.get-bookmark-data-by-link"
]
},
"scripts": {
"dev": "af dev",
"build": "af build"
},
"dependencies": {
"@affine/component": "workspace:*",
"@blocksuite/icons": "^2.1.27",
"@toeverything/plugin-infra": "workspace:*",
"foxact": "^0.2.17",
"link-preview-js": "^3.0.4"
},
"devDependencies": {
"@affine/plugin-cli": "workspace:*"
}
}

View File

@ -0,0 +1,5 @@
{
"name": "@affine/bookmark-plugin",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"tags": ["plugin"]
}

View File

@ -9,6 +9,10 @@
"core": "./src/index.ts"
}
},
"scripts": {
"dev": "af dev",
"build": "af build"
},
"dependencies": {
"@affine/component": "workspace:*",
"@toeverything/plugin-infra": "workspace:*",
@ -20,6 +24,7 @@
"zod": "^3.21.4"
},
"devDependencies": {
"@affine/plugin-cli": "workspace:*",
"@types/marked": "^5.0.1",
"jotai": "^2.2.2",
"react": "18.2.0",

View File

@ -0,0 +1,5 @@
{
"name": "@affine/copilot-plugin",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"tags": ["plugin"]
}

View File

@ -4,6 +4,10 @@
"private": true,
"description": "Hello world plugin",
"version": "0.8.0-canary.3",
"scripts": {
"dev": "af dev",
"build": "af build"
},
"affinePlugin": {
"release": false,
"entry": {
@ -14,5 +18,8 @@
"@affine/component": "workspace:*",
"@blocksuite/icons": "^2.1.27",
"@toeverything/plugin-infra": "workspace:*"
},
"devDependencies": {
"@affine/plugin-cli": "workspace:*"
}
}

View File

@ -0,0 +1,5 @@
{
"name": "@affine/hello-world-plugin",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"tags": ["plugin"]
}

View File

@ -9,13 +9,21 @@
"core": "./src/index.ts"
}
},
"scripts": {
"dev": "af dev",
"build": "af build"
},
"dependencies": {
"@affine/component": "workspace:*",
"@blocksuite/icons": "^2.1.27",
"@toeverything/plugin-infra": "workspace:*",
"@toeverything/theme": "^0.7.9",
"clsx": "^2.0.0",
"foxact": "^0.2.17",
"react-error-boundary": "^4.0.10",
"swr": "2.1.5"
},
"devDependencies": {
"@affine/plugin-cli": "workspace:*"
}
}

View File

@ -0,0 +1,5 @@
{
"name": "@affine/image-preview-plugin",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"tags": ["plugin"]
}

View File

@ -1,15 +0,0 @@
import { spawn } from 'node:child_process';
const builtInPlugins = ['bookmark', 'hello-world', 'copilot', 'image-preview'];
for (const plugin of builtInPlugins) {
const cp = spawn('yarn', ['-T', 'run', 'dev-plugin', '--plugin', plugin], {
stdio: 'inherit',
shell: true,
});
cp.on('exit', code => {
if (code !== 0) {
process.exit(code);
}
});
}

View File

@ -127,6 +127,9 @@
{
"path": "./packages/cli"
},
{
"path": "./packages/plugin-cli"
},
{
"path": "./packages/component"
},

356
yarn.lock
View File

@ -79,6 +79,7 @@ __metadata:
resolution: "@affine/bookmark-plugin@workspace:plugins/bookmark"
dependencies:
"@affine/component": "workspace:*"
"@affine/plugin-cli": "workspace:*"
"@blocksuite/icons": ^2.1.27
"@toeverything/plugin-infra": "workspace:*"
foxact: ^0.2.17
@ -92,7 +93,6 @@ __metadata:
dependencies:
"@clack/core": ^0.3.2
"@clack/prompts": ^0.6.3
"@endo/static-module-record": ^0.7.20
dotenv: ^16.3.1
ts-node: ^10.9.1
peerDependencies:
@ -100,7 +100,6 @@ __metadata:
bin:
build-core: ./src/bin/build-core.mjs
dev-core: ./src/bin/dev-core.mjs
dev-plugin: ./src/bin/dev-plugin.mjs
languageName: unknown
linkType: soft
@ -171,6 +170,7 @@ __metadata:
resolution: "@affine/copilot-plugin@workspace:plugins/copilot"
dependencies:
"@affine/component": "workspace:*"
"@affine/plugin-cli": "workspace:*"
"@toeverything/plugin-infra": "workspace:*"
"@types/marked": ^5.0.1
idb: ^7.1.1
@ -385,6 +385,7 @@ __metadata:
resolution: "@affine/hello-world-plugin@workspace:plugins/hello-world"
dependencies:
"@affine/component": "workspace:*"
"@affine/plugin-cli": "workspace:*"
"@blocksuite/icons": ^2.1.27
"@toeverything/plugin-infra": "workspace:*"
languageName: unknown
@ -409,10 +410,12 @@ __metadata:
resolution: "@affine/image-preview-plugin@workspace:plugins/image-preview"
dependencies:
"@affine/component": "workspace:*"
"@affine/plugin-cli": "workspace:*"
"@blocksuite/icons": ^2.1.27
"@toeverything/plugin-infra": "workspace:*"
"@toeverything/theme": ^0.7.9
clsx: ^2.0.0
foxact: ^0.2.17
react-error-boundary: ^4.0.10
swr: 2.1.5
languageName: unknown
@ -447,6 +450,7 @@ __metadata:
dependencies:
"@affine-test/kit": "workspace:*"
"@affine/cli": "workspace:*"
"@affine/plugin-cli": "workspace:*"
"@commitlint/cli": ^17.6.7
"@commitlint/config-conventional": ^17.6.7
"@faker-js/faker": ^8.0.2
@ -518,6 +522,22 @@ __metadata:
languageName: unknown
linkType: soft
"@affine/plugin-cli@workspace:*, @affine/plugin-cli@workspace:packages/plugin-cli":
version: 0.0.0-use.local
resolution: "@affine/plugin-cli@workspace:packages/plugin-cli"
dependencies:
"@endo/static-module-record": ^0.7.20
"@swc/core": ^1.3.72
"@toeverything/plugin-infra": "workspace:^"
"@vanilla-extract/rollup-plugin": ^1.2.2
rollup: ^3.27.0
rollup-plugin-swc3: ^0.9.1
ts-node: ^10.9.1
bin:
af: ./src/af.mjs
languageName: unknown
linkType: soft
"@affine/server@workspace:apps/server":
version: 0.0.0-use.local
resolution: "@affine/server@workspace:apps/server"
@ -4607,6 +4627,13 @@ __metadata:
languageName: node
linkType: hard
"@fastify/deepmerge@npm:^1.3.0":
version: 1.3.0
resolution: "@fastify/deepmerge@npm:1.3.0"
checksum: 33ec927905dca320d7ae9535a1521909f7c82339706345324ab6287ad100589a799b8257c15b0e582c7bb74e2aa4883d82ba0228d7b116aa8789ada4f78d6974
languageName: node
linkType: hard
"@floating-ui/core@npm:^1.3.1":
version: 1.3.1
resolution: "@floating-ui/core@npm:1.3.1"
@ -6304,6 +6331,145 @@ __metadata:
languageName: node
linkType: hard
"@napi-rs/magic-string-android-arm-eabi@npm:0.3.4":
version: 0.3.4
resolution: "@napi-rs/magic-string-android-arm-eabi@npm:0.3.4"
conditions: os=android & cpu=arm
languageName: node
linkType: hard
"@napi-rs/magic-string-android-arm64@npm:0.3.4":
version: 0.3.4
resolution: "@napi-rs/magic-string-android-arm64@npm:0.3.4"
conditions: os=android & cpu=arm64
languageName: node
linkType: hard
"@napi-rs/magic-string-darwin-arm64@npm:0.3.4":
version: 0.3.4
resolution: "@napi-rs/magic-string-darwin-arm64@npm:0.3.4"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@napi-rs/magic-string-darwin-x64@npm:0.3.4":
version: 0.3.4
resolution: "@napi-rs/magic-string-darwin-x64@npm:0.3.4"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
"@napi-rs/magic-string-freebsd-x64@npm:0.3.4":
version: 0.3.4
resolution: "@napi-rs/magic-string-freebsd-x64@npm:0.3.4"
conditions: os=freebsd & cpu=x64
languageName: node
linkType: hard
"@napi-rs/magic-string-linux-arm-gnueabihf@npm:0.3.4":
version: 0.3.4
resolution: "@napi-rs/magic-string-linux-arm-gnueabihf@npm:0.3.4"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard
"@napi-rs/magic-string-linux-arm64-gnu@npm:0.3.4":
version: 0.3.4
resolution: "@napi-rs/magic-string-linux-arm64-gnu@npm:0.3.4"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard
"@napi-rs/magic-string-linux-arm64-musl@npm:0.3.4":
version: 0.3.4
resolution: "@napi-rs/magic-string-linux-arm64-musl@npm:0.3.4"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard
"@napi-rs/magic-string-linux-x64-gnu@npm:0.3.4":
version: 0.3.4
resolution: "@napi-rs/magic-string-linux-x64-gnu@npm:0.3.4"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard
"@napi-rs/magic-string-linux-x64-musl@npm:0.3.4":
version: 0.3.4
resolution: "@napi-rs/magic-string-linux-x64-musl@npm:0.3.4"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard
"@napi-rs/magic-string-win32-arm64-msvc@npm:0.3.4":
version: 0.3.4
resolution: "@napi-rs/magic-string-win32-arm64-msvc@npm:0.3.4"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
"@napi-rs/magic-string-win32-ia32-msvc@npm:0.3.4":
version: 0.3.4
resolution: "@napi-rs/magic-string-win32-ia32-msvc@npm:0.3.4"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard
"@napi-rs/magic-string-win32-x64-msvc@npm:0.3.4":
version: 0.3.4
resolution: "@napi-rs/magic-string-win32-x64-msvc@npm:0.3.4"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@napi-rs/magic-string@npm:^0.3.4":
version: 0.3.4
resolution: "@napi-rs/magic-string@npm:0.3.4"
dependencies:
"@napi-rs/magic-string-android-arm-eabi": 0.3.4
"@napi-rs/magic-string-android-arm64": 0.3.4
"@napi-rs/magic-string-darwin-arm64": 0.3.4
"@napi-rs/magic-string-darwin-x64": 0.3.4
"@napi-rs/magic-string-freebsd-x64": 0.3.4
"@napi-rs/magic-string-linux-arm-gnueabihf": 0.3.4
"@napi-rs/magic-string-linux-arm64-gnu": 0.3.4
"@napi-rs/magic-string-linux-arm64-musl": 0.3.4
"@napi-rs/magic-string-linux-x64-gnu": 0.3.4
"@napi-rs/magic-string-linux-x64-musl": 0.3.4
"@napi-rs/magic-string-win32-arm64-msvc": 0.3.4
"@napi-rs/magic-string-win32-ia32-msvc": 0.3.4
"@napi-rs/magic-string-win32-x64-msvc": 0.3.4
dependenciesMeta:
"@napi-rs/magic-string-android-arm-eabi":
optional: true
"@napi-rs/magic-string-android-arm64":
optional: true
"@napi-rs/magic-string-darwin-arm64":
optional: true
"@napi-rs/magic-string-darwin-x64":
optional: true
"@napi-rs/magic-string-freebsd-x64":
optional: true
"@napi-rs/magic-string-linux-arm-gnueabihf":
optional: true
"@napi-rs/magic-string-linux-arm64-gnu":
optional: true
"@napi-rs/magic-string-linux-arm64-musl":
optional: true
"@napi-rs/magic-string-linux-x64-gnu":
optional: true
"@napi-rs/magic-string-linux-x64-musl":
optional: true
"@napi-rs/magic-string-win32-arm64-msvc":
optional: true
"@napi-rs/magic-string-win32-ia32-msvc":
optional: true
"@napi-rs/magic-string-win32-x64-msvc":
optional: true
checksum: b138f5ba72511f80b20ac068edb124cae3693a5650cb574b8fcff781c149bb76db286a314d172e15cf688bd176e0a693929422c3e0c20663fda00a8e954beaf5
languageName: node
linkType: hard
"@ndelangen/get-tarball@npm:^3.0.7":
version: 3.0.9
resolution: "@ndelangen/get-tarball@npm:3.0.9"
@ -8500,6 +8666,16 @@ __metadata:
languageName: node
linkType: hard
"@rollup/pluginutils@npm:^4.2.1":
version: 4.2.1
resolution: "@rollup/pluginutils@npm:4.2.1"
dependencies:
estree-walker: ^2.0.1
picomatch: ^2.2.2
checksum: 6bc41f22b1a0f1efec3043899e4d3b6b1497b3dea4d94292d8f83b4cf07a1073ecbaedd562a22d11913ff7659f459677b01b09e9598a98936e746780ecc93a12
languageName: node
linkType: hard
"@rollup/pluginutils@npm:^5.0.2":
version: 5.0.2
resolution: "@rollup/pluginutils@npm:5.0.2"
@ -10468,6 +10644,13 @@ __metadata:
languageName: node
linkType: hard
"@swc/core-darwin-arm64@npm:1.3.72":
version: 1.3.72
resolution: "@swc/core-darwin-arm64@npm:1.3.72"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@swc/core-darwin-x64@npm:1.3.64":
version: 1.3.64
resolution: "@swc/core-darwin-x64@npm:1.3.64"
@ -10482,6 +10665,13 @@ __metadata:
languageName: node
linkType: hard
"@swc/core-darwin-x64@npm:1.3.72":
version: 1.3.72
resolution: "@swc/core-darwin-x64@npm:1.3.72"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
"@swc/core-linux-arm-gnueabihf@npm:1.3.64":
version: 1.3.64
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.3.64"
@ -10496,6 +10686,13 @@ __metadata:
languageName: node
linkType: hard
"@swc/core-linux-arm-gnueabihf@npm:1.3.72":
version: 1.3.72
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.3.72"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard
"@swc/core-linux-arm64-gnu@npm:1.3.64":
version: 1.3.64
resolution: "@swc/core-linux-arm64-gnu@npm:1.3.64"
@ -10510,6 +10707,13 @@ __metadata:
languageName: node
linkType: hard
"@swc/core-linux-arm64-gnu@npm:1.3.72":
version: 1.3.72
resolution: "@swc/core-linux-arm64-gnu@npm:1.3.72"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard
"@swc/core-linux-arm64-musl@npm:1.3.64":
version: 1.3.64
resolution: "@swc/core-linux-arm64-musl@npm:1.3.64"
@ -10524,6 +10728,13 @@ __metadata:
languageName: node
linkType: hard
"@swc/core-linux-arm64-musl@npm:1.3.72":
version: 1.3.72
resolution: "@swc/core-linux-arm64-musl@npm:1.3.72"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard
"@swc/core-linux-x64-gnu@npm:1.3.64":
version: 1.3.64
resolution: "@swc/core-linux-x64-gnu@npm:1.3.64"
@ -10538,6 +10749,13 @@ __metadata:
languageName: node
linkType: hard
"@swc/core-linux-x64-gnu@npm:1.3.72":
version: 1.3.72
resolution: "@swc/core-linux-x64-gnu@npm:1.3.72"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard
"@swc/core-linux-x64-musl@npm:1.3.64":
version: 1.3.64
resolution: "@swc/core-linux-x64-musl@npm:1.3.64"
@ -10552,6 +10770,13 @@ __metadata:
languageName: node
linkType: hard
"@swc/core-linux-x64-musl@npm:1.3.72":
version: 1.3.72
resolution: "@swc/core-linux-x64-musl@npm:1.3.72"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard
"@swc/core-win32-arm64-msvc@npm:1.3.64":
version: 1.3.64
resolution: "@swc/core-win32-arm64-msvc@npm:1.3.64"
@ -10566,6 +10791,13 @@ __metadata:
languageName: node
linkType: hard
"@swc/core-win32-arm64-msvc@npm:1.3.72":
version: 1.3.72
resolution: "@swc/core-win32-arm64-msvc@npm:1.3.72"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
"@swc/core-win32-ia32-msvc@npm:1.3.64":
version: 1.3.64
resolution: "@swc/core-win32-ia32-msvc@npm:1.3.64"
@ -10580,6 +10812,13 @@ __metadata:
languageName: node
linkType: hard
"@swc/core-win32-ia32-msvc@npm:1.3.72":
version: 1.3.72
resolution: "@swc/core-win32-ia32-msvc@npm:1.3.72"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard
"@swc/core-win32-x64-msvc@npm:1.3.64":
version: 1.3.64
resolution: "@swc/core-win32-x64-msvc@npm:1.3.64"
@ -10594,6 +10833,13 @@ __metadata:
languageName: node
linkType: hard
"@swc/core-win32-x64-msvc@npm:1.3.72":
version: 1.3.72
resolution: "@swc/core-win32-x64-msvc@npm:1.3.72"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@swc/core@npm:1.3.64":
version: 1.3.64
resolution: "@swc/core@npm:1.3.64"
@ -10682,6 +10928,50 @@ __metadata:
languageName: node
linkType: hard
"@swc/core@npm:^1.3.72":
version: 1.3.72
resolution: "@swc/core@npm:1.3.72"
dependencies:
"@swc/core-darwin-arm64": 1.3.72
"@swc/core-darwin-x64": 1.3.72
"@swc/core-linux-arm-gnueabihf": 1.3.72
"@swc/core-linux-arm64-gnu": 1.3.72
"@swc/core-linux-arm64-musl": 1.3.72
"@swc/core-linux-x64-gnu": 1.3.72
"@swc/core-linux-x64-musl": 1.3.72
"@swc/core-win32-arm64-msvc": 1.3.72
"@swc/core-win32-ia32-msvc": 1.3.72
"@swc/core-win32-x64-msvc": 1.3.72
peerDependencies:
"@swc/helpers": ^0.5.0
dependenciesMeta:
"@swc/core-darwin-arm64":
optional: true
"@swc/core-darwin-x64":
optional: true
"@swc/core-linux-arm-gnueabihf":
optional: true
"@swc/core-linux-arm64-gnu":
optional: true
"@swc/core-linux-arm64-musl":
optional: true
"@swc/core-linux-x64-gnu":
optional: true
"@swc/core-linux-x64-musl":
optional: true
"@swc/core-win32-arm64-msvc":
optional: true
"@swc/core-win32-ia32-msvc":
optional: true
"@swc/core-win32-x64-msvc":
optional: true
peerDependenciesMeta:
"@swc/helpers":
optional: true
checksum: 8dc1103de987d05ff97ec7acdb5ba0f9442ed658aa4923ba5f81eb6185375f695394a62415fbaf6f2e4685cfba5dec6c736666d8568e1defb5e3a44d65efecb9
languageName: node
linkType: hard
"@swc/helpers@npm:~0.5.0":
version: 0.5.1
resolution: "@swc/helpers@npm:0.5.1"
@ -10837,7 +11127,7 @@ __metadata:
languageName: unknown
linkType: soft
"@toeverything/plugin-infra@workspace:*, @toeverything/plugin-infra@workspace:packages/plugin-infra":
"@toeverything/plugin-infra@workspace:*, @toeverything/plugin-infra@workspace:^, @toeverything/plugin-infra@workspace:packages/plugin-infra":
version: 0.0.0-use.local
resolution: "@toeverything/plugin-infra@workspace:packages/plugin-infra"
dependencies:
@ -12059,7 +12349,7 @@ __metadata:
languageName: node
linkType: hard
"@vanilla-extract/integration@npm:^6.0.0, @vanilla-extract/integration@npm:^6.0.2":
"@vanilla-extract/integration@npm:^6.0.0, @vanilla-extract/integration@npm:^6.0.2, @vanilla-extract/integration@npm:^6.2.0":
version: 6.2.1
resolution: "@vanilla-extract/integration@npm:6.2.1"
dependencies:
@ -12087,6 +12377,17 @@ __metadata:
languageName: node
linkType: hard
"@vanilla-extract/rollup-plugin@npm:^1.2.2":
version: 1.2.2
resolution: "@vanilla-extract/rollup-plugin@npm:1.2.2"
dependencies:
"@vanilla-extract/integration": ^6.2.0
peerDependencies:
rollup: ^2.0.0 || ^3.0.0
checksum: ec89a35e7e89bc6b6e24273f4fbd35155aca5446ac62b9f9373a9e43d5c947c55ecc48a1390a5b29c61c51f5d54df2ec2c4502624027b200d55c94eb27efd6a4
languageName: node
linkType: hard
"@vanilla-extract/vite-plugin@npm:^3.8.2":
version: 3.8.2
resolution: "@vanilla-extract/vite-plugin@npm:3.8.2"
@ -17684,7 +17985,7 @@ __metadata:
languageName: node
linkType: hard
"estree-walker@npm:^2.0.2":
"estree-walker@npm:^2.0.1, estree-walker@npm:^2.0.2":
version: 2.0.2
resolution: "estree-walker@npm:2.0.2"
checksum: 6151e6f9828abe2259e57f5fd3761335bb0d2ebd76dc1a01048ccee22fabcfef3c0859300f6d83ff0d1927849368775ec5a6d265dde2f6de5a1be1721cd94efc
@ -19049,7 +19350,7 @@ __metadata:
languageName: node
linkType: hard
"get-tsconfig@npm:^4.2.0":
"get-tsconfig@npm:^4.2.0, get-tsconfig@npm:^4.6.2":
version: 4.6.2
resolution: "get-tsconfig@npm:4.6.2"
dependencies:
@ -25436,7 +25737,7 @@ __metadata:
languageName: node
linkType: hard
"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.2.3, picomatch@npm:^2.3.0, picomatch@npm:^2.3.1":
"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.2.2, picomatch@npm:^2.2.3, picomatch@npm:^2.3.0, picomatch@npm:^2.3.1":
version: 2.3.1
resolution: "picomatch@npm:2.3.1"
checksum: 050c865ce81119c4822c45d3c84f1ced46f93a0126febae20737bd05ca20589c564d6e9226977df859ed5e03dc73f02584a2b0faad36e896936238238b0446cf
@ -27784,6 +28085,33 @@ __metadata:
languageName: node
linkType: hard
"rollup-plugin-swc3@npm:^0.9.1":
version: 0.9.1
resolution: "rollup-plugin-swc3@npm:0.9.1"
dependencies:
"@fastify/deepmerge": ^1.3.0
"@rollup/pluginutils": ^4.2.1
get-tsconfig: ^4.6.2
rollup-swc-preserve-directives: ^0.3.0
peerDependencies:
"@swc/core": ">=1.2.165"
rollup: ^2.0.0 || ^3.0.0
checksum: 2603a1b47e612e0f9ff3d18d9b3798d56822d7ffce098124e8a6151728700f3fd284653ca3eeeb56b14894079f4ca18f76616b904e17fb1127028c1e07893cb8
languageName: node
linkType: hard
"rollup-swc-preserve-directives@npm:^0.3.0":
version: 0.3.1
resolution: "rollup-swc-preserve-directives@npm:0.3.1"
dependencies:
"@napi-rs/magic-string": ^0.3.4
peerDependencies:
"@swc/core": ">=1.2.165"
rollup: ^2.0.0 || ^3.0.0
checksum: 2c938d8221a37a2352e7ba2c4fdbf4cf215e96f2a3a8c51e5b365c874e25512972f2404e441ae14a18e105dfc4b67a7993f1167b70f7ec2a2e55e418717dd75d
languageName: node
linkType: hard
"rollup@npm:^2.25.0 || ^3.3.0, rollup@npm:^3.25.2":
version: 3.26.3
resolution: "rollup@npm:3.26.3"
@ -27798,6 +28126,20 @@ __metadata:
languageName: node
linkType: hard
"rollup@npm:^3.27.0":
version: 3.27.0
resolution: "rollup@npm:3.27.0"
dependencies:
fsevents: ~2.3.2
dependenciesMeta:
fsevents:
optional: true
bin:
rollup: dist/bin/rollup
checksum: f60c2c288d039dc14e1f6e7fd673b7fcb11928b5a781675791b37a741f63b7af110fc5d040d60d603175b6e03ff978bed83db018dd2ac542ef809fe1a5b32dae
languageName: node
linkType: hard
"run-applescript@npm:^5.0.0":
version: 5.0.0
resolution: "run-applescript@npm:5.0.0"