mirror of
https://github.com/gravitational/teleport
synced 2024-10-18 08:13:24 +00:00
200553c474
* Move Teleport connect over to Vite * Clean up the Electron Vite config * Add mts to prettier/eslint * Add license headers * Dedupe @babel scope * Remove console.log from mainProcess * Set suggestedReviewers on CreateAccessRequestRequest * Remove unneeded code added from strict null checks * Move out dir to build/app On masted it's build/app/dist. We don't want to use build directly, as the app is being packaged in build/release. * Move Node-only deps to dependencies https://electron-vite.org/guide/dev#dependencies-vs-devdependencies cross-env has been removed since it's not needed at all. * Remove eval warning suppression * Fix default path of tsh * Rename dev-term to start-term-skip-native-deps * Use correct `oneofKind` value for `ptyEventOneOfIsStartError` * Undo strict null check changes * Correctly construct env vars struct for shell Based on https://stackoverflow.com/a/66989401 * Allow reloading renderer app * Move JSDoc for TshdEventContextBridgeService to correct position * Remove outdated comment about type casting in tshdEvents/index.ts * Drop type cast for error.cause['message'] * Ignore teleterm's build dir in .eslintignore **/dist/** has been removed from ignorePatterns because it's no longer necessary, neither Web UI nor Connect build in a dir matching this pattern. * Define NODE_ENV for main and renderer * Define only NODE_ENV, not whole process.env Otherwise process.env in the main process is always replaced with an object containing just NODE_ENV. We need process.env to be properly populated since it's then used when spawning tsh daemon and other processes. Using define like this guarantees that only callsites using process.env.NODE_ENV directly will be affected. * Add support for the cluster preferences backend mismatch from the gRPC UserPreferences object * Return resourceIds from preferences, convert preferences before updating * Future proof all of the clusterPreferences object getting converted correctly * Fix cluster preferences for leaf clusters * Use correct `AssistViewMode` enum, remove the old one and unused interface * Lint fix * Add back in JS protobuf stuff, it can be removed in a later PR * Remove `List` from property * Add license header * Remove console.logs --------- Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com> Co-authored-by: Grzegorz Zdunek <grzegorz.zdunek@goteleport.com>
52 lines
2.1 KiB
JSON
52 lines
2.1 KiB
JSON
{
|
|
"name": "teleport-ui",
|
|
"version": "1.0.0",
|
|
"scripts": {
|
|
"build-ui": "yarn build-ui-oss && yarn build-ui-e",
|
|
"build-ui-oss": "yarn workspace @gravitational/teleport build",
|
|
"build-ui-e": "yarn workspace @gravitational/teleport.e build",
|
|
"build-wasm": "yarn workspace @gravitational/teleport build-wasm",
|
|
"start-teleport": "yarn workspace @gravitational/teleport start",
|
|
"start-teleport-e": "yarn workspace @gravitational/teleport.e start",
|
|
"build-term": "yarn workspace @gravitational/teleterm build",
|
|
"start-term": "yarn workspace @gravitational/teleterm start",
|
|
"start-term-skip-native-deps": "yarn workspace @gravitational/teleterm start-skip-native-deps",
|
|
"package-term": "yarn workspace @gravitational/teleterm package",
|
|
"storybook": "start-storybook -p 9002 -c web/.storybook -s web/.storybook/public",
|
|
"storybook-smoke-test": "yarn storybook --ci --smoke-test",
|
|
"test": "jest",
|
|
"test-coverage": "jest --coverage && web/scripts/print-coverage-link.sh",
|
|
"test-update-snapshot": "yarn test -- --updateSnapshot",
|
|
"tdd": "jest --watch",
|
|
"lint": "yarn prettier-check && yarn eslint",
|
|
"eslint": "eslint --quiet '+(e|web)/**/*.{ts,tsx,js,jsx,mts}'",
|
|
"type-check": "NODE_OPTIONS='--max-old-space-size=4096' tsc --noEmit",
|
|
"prettier-check": "yarn prettier --check '+(e|web)/**/*.{ts,tsx,js,jsx,mts}'",
|
|
"prettier-write": "yarn prettier --write --loglevel silent '+(e|web)/**/*.{ts,tsx,js,jsx,mts}'",
|
|
"process-icons": "node web/packages/design/src/Icon/script/script.js & yarn prettier --loglevel silent --write 'web/packages/design/src/Icon/Icons/*.tsx'",
|
|
"nop": "exit 0"
|
|
},
|
|
"private": true,
|
|
"resolutions": {
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"**/d3-color": "^3.1.0",
|
|
"**/minimist": "^1.2.8",
|
|
"**/@types/react": "^18.2.39",
|
|
"**/@types/react-dom": "^18.2.17",
|
|
"**/trim": "0.0.3",
|
|
"webpack": "^5.88.2",
|
|
"x-default-browser": "^0.5.2"
|
|
},
|
|
"devDependencies": {
|
|
"prettier": "^2.5.0",
|
|
"typescript": "^5.3.2"
|
|
},
|
|
"workspaces": {
|
|
"packages": [
|
|
"web/packages/*",
|
|
"e/web/*"
|
|
]
|
|
}
|
|
}
|