core/package.json

154 lines
6.5 KiB
JSON

{
"name": "@opensumi/core",
"private": true,
"repository": {
"type": "git",
"url": "git@github.com:opensumi/core.git"
},
"license": "MIT",
"workspaces": [
"packages/*",
"tools/dev-tool",
"tools/playwright",
"tools/cli-engine"
],
"scripts": {
"add:browser": "tsx ./scripts/add-browser",
"add:node": "tsx ./scripts/add-node",
"build": "yarn run compile",
"build:all": "yarn build:webview-prebuilt && yarn run build && yarn run build:worker-host && yarn run build:ext-host && yarn build:watcher-host && yarn run build:components && yarn build:monaco-worker",
"build:cli-engine": "cd tools/cli-engine && yarn run build",
"build:components": "cd packages/components && yarn run build:dist",
"build:components:lib": "cd packages/components && yarn run build",
"build:ext-host": "cd packages/extension && yarn run build:ext-host",
"build:watcher-host": "cd packages/file-service && yarn run build:watcher-host",
"build:monaco-worker": "cd packages/monaco && yarn run build:worker",
"build:webview-prebuilt": "yarn workspace @opensumi/ide-webview bundle-webview",
"build:worker-host": "cd packages/extension && yarn run compile:worker",
"bundle:lite": "tsx ./scripts/start --script=bundle:lite",
"bundle:preview": "tsx ./scripts/start --script=bundle:preview",
"changelog": "tsx -P scripts/tsconfig.scripts.json scripts/changelog/index.ts",
"changelog-old": "node scripts/changelog/index.js",
"check:dep": "tsx ./scripts/depcheck",
"ci": "yarn run init && yarn run test:cov",
"clean": "rimraf \"./packages/*/lib\" && lerna run clean",
"compile": "cross-env NODE_ENV=production tsx ./scripts/build",
"create": "tsx ./scripts/create",
"download-extension": "cross-env DEBUG=InstallExtension node scripts/download.js",
"format": "yarn run lint:fix && prettier \"**/*.{js,jsx,ts,tsx,html,css,less}\" --write",
"init": "yarn run clean && yarn run build:all",
"preinstall": "node scripts/preinstall.js && husky install",
"iteration": "tsx -P scripts/tsconfig.scripts.json scripts/iteration-plan.ts",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint:fix": "yarn run lint --fix",
"manifest": "tsx ./scripts/generate-manifest-json",
"prepare:test": "yarn && yarn run compile && yarn run build:worker-host",
"publish": "yarn run build:all && tsx ./scripts/publish",
"publish:next": "yarn run publish --rollback --type=next",
"publish:snapshot": "yarn run publish --rollback --type=snapshot",
"rebuild:node": "sumi rebuild",
"start": "yarn run rebuild:node && cross-env HOST=127.0.0.1 WS_PATH=ws://127.0.0.1:8000 NODE_ENV=development tsx ./scripts/start",
"start:e2e": "yarn start --script=start:e2e",
"start:electron": "cross-env NODE_ENV=development tsx ./scripts/start-electron",
"start:lite": "cross-env NODE_ENV=development tsx ./scripts/start --script=start:lite",
"start:pty-service": "KTLOG_SHOW_DEBUG=1 npx tsx packages/terminal-next/src/node/pty.proxy.remote.exec.ts",
"start:remote": "yarn run rebuild:node && cross-env NODE_ENV=development tsx ./scripts/start",
"test": "node --expose-gc ./node_modules/.bin/jest --forceExit --detectOpenHandles",
"test:cov": "cross-env NODE_OPTIONS=--max-old-space-size=32768 yarn run test:heap --coverage",
"test:heap": "yarn test --logHeapUsage",
"test:module": "cross-env NODE_OPTIONS=--max-old-space-size=5120 tsx ./scripts/module-jest",
"test:ui": "tsx ./scripts/run-ui-tests",
"test:ui-ci": "tsx ./scripts/run-ui-tests --ci=true",
"test:ui-headful": "tsx ./scripts/run-ui-tests --headful=true",
"test:ui-report": "tsx ./scripts/run-ui-tests --report=true",
"update-disttag": "tsx ./scripts/dist-tag",
"update-version": "tsx ./scripts/publish --versionOnly",
"update:iconfont": "tsx ./scripts/download-iconfont.ts",
"watch": "yarn run rebuild:node && cross-env NODE_ENV=production tsx ./scripts/watch",
"watch:ext-host": "cd packages/extension && yarn run watch:ext-host",
"watch:worker-host": "cd packages/extension && yarn run watch:worker"
},
"lint-staged": {
"*.{js,jsx,ts,tsx,md,html,css,less,json,yml}": "prettier --write",
"*.{js,jsx,ts,tsx}": "eslint --fix --quiet"
},
"devDependencies": {
"@ast-grep/napi": "^0.17.1",
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0 ",
"@opensumi/ide-dev-tool": "workspace:*",
"@opensumi/tree-sitter-wasm": "0.0.2",
"@types/debug": "^4.1.5",
"@types/fs-extra": "^11.0.4",
"@types/glob": "^7.1.1",
"@types/jest": "^29.5.6",
"@types/jsdom": "^16.2.14",
"@types/lodash": "^4.14.202",
"@types/node": "^22.7.6",
"@types/node-fetch": "^2.6.1",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@types/react-is": "^18.2.4",
"@types/temp": "^0.9.1",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"@yarnpkg/types": "^4.0.0",
"async-retry": "^1.3.1",
"await-event": "^2.1.0",
"chalk": "^4.1.2",
"compressing": "^1.10.0",
"cross-env": "^7.0.3",
"debug": "^4.3.2",
"depcheck": "^1.4.7",
"esbuild": "^0.24.0",
"eslint": "^8.9.0",
"eslint-config-prettier": "^8.4.0",
"eslint-import-resolver-typescript": "^2.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^28.2.0",
"eslint-plugin-rulesdir": "^0.2.2",
"eslint-plugin-unused-imports": "^2.0.0",
"execa": "^5.0.0",
"fs-extra": "^11.2.0",
"git-rev-sync": "^3.0.1",
"glob": "^8.0.1",
"handlebars": "^4.7.3",
"husky": "^7.0.4",
"intersection-observer": "^0.12.2",
"is-git-clean": "^1.1.0",
"jest": "^29.7.0",
"jest-canvas-mock": "^2.4.0",
"jest-environment-jsdom": "^29.7.0",
"jest-fetch-mock": "^3.0.3",
"jsdom": "^20.0.0",
"jsdom-worker": "^0.3.0",
"lerna": "^8.0.2",
"lint-staged": "^15.2.2",
"lodash": "^4.17.21",
"mri": "^1.2.0",
"node-fetch": "^2.6.7",
"node-gyp": "^10.0.1",
"node-polyfill-webpack-plugin": "^3.0.0",
"offline-iconfont": "^1.2.0",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"semver": "^7.5.2",
"simple-git": "^3.3.0",
"temp": "^0.9.4",
"tinybench": "^2.6.0",
"ts-jest": "^29.1.0",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
"tsx": "^4.7.1",
"typescript": "^5.6.3",
"webpack": "^5.90.0",
"webpack-manifest-plugin": "^5.0.0"
},
"packageManager": "yarn@4.4.1",
"engines": {
"node": ">=18.12.0"
}
}