{ "name": "coder-v2", "description": "Coder V2 (Workspaces V2)", "repository": "https://github.com/coder/coder", "private": true, "license": "AGPL-3.0", "scripts": { "postinstall": "pnpm typegen", "build": "NODE_ENV=production pnpm vite build", "check:all": "pnpm format:check && pnpm lint && pnpm test", "chromatic": "chromatic", "dev": "vite", "format:check": "pnpm exec prettier --cache --check '../**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'", "format:types": "pnpm exec prettier --cache --write './src/api/typesGenerated.ts'", "format:write": "pnpm exec prettier --cache --write '../**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'", "format:write:only": "pnpm exec prettier --write", "lint": "pnpm typegen && pnpm run lint:types && pnpm exec jest --selectProjects lint", "lint:fix": "FIX=true pnpm lint", "lint:types": "tsc --noEmit", "playwright:install": "playwright install --with-deps chromium", "playwright:test": "playwright test --config=e2e/playwright.config.ts", "gen:provisioner": "protoc --plugin=./node_modules/.bin/protoc-gen-ts-proto --ts_proto_out=./e2e/ --ts_proto_opt=outputJsonMethods=false,outputEncodeMethods=encode-no-creation,outputClientImpl=false,nestJs=false,outputPartialMethods=false,fileSuffix=Generated,suffix=hey -I ../provisionersdk/proto ../provisionersdk/proto/provisioner.proto && prettier --cache --write './e2e/provisionerGenerated.ts'", "storybook": "STORYBOOK=true storybook dev -p 6006", "storybook:build": "storybook build", "test": "jest --selectProjects test", "test:ci": "jest --selectProjects test --silent", "test:coverage": "jest --selectProjects test --collectCoverage", "test:watch": "jest --selectProjects test --watch", "typegen": "xstate typegen 'src/**/*.ts'", "stats": "STATS=true pnpm build && npx http-server ./stats -p 8081 -c-1", "deadcode": "ts-prune | grep -v \".stories\\|.typegen\\|.config\\|e2e\\|__mocks__\\|used in module\\|testHelpers\\|typesGenerated\" || echo \"No deadcode found.\"" }, "dependencies": { "@emoji-mart/data": "1.1.2", "@emoji-mart/react": "1.0.1", "@emotion/react": "11.11.1", "@emotion/styled": "11.11.0", "@fastly/performance-observer-polyfill": "2.0.0", "@fontsource/ibm-plex-mono": "5.0.5", "@fontsource/inter": "5.0.2", "@monaco-editor/react": "4.5.0", "@mui/icons-material": "5.14.0", "@mui/lab": "5.0.0-alpha.129", "@mui/material": "5.14.0", "@mui/styles": "5.14.0", "@mui/system": "5.14.0", "@tanstack/react-query": "4.32.0", "@types/color-convert": "2.0.0", "@types/lodash": "4.14.196", "@types/react-color": "3.0.6", "@types/semver": "7.5.0", "@vitejs/plugin-react": "4.0.1", "@xstate/inspect": "0.8.0", "@xstate/react": "3.2.1", "ansi-to-html": "0.7.2", "axios": "1.3.4", "canvas": "2.11.0", "chart.js": "3.9.1", "chartjs-adapter-date-fns": "3.0.0", "chroma-js": "2.4.2", "color-convert": "2.0.1", "cron-parser": "4.7.0", "cronstrue": "2.28.0", "date-fns": "2.30.0", "dayjs": "1.11.4", "emoji-mart": "5.4.0", "eslint-plugin-testing-library": "5.11.0", "eventsourcemock": "2.0.0", "formik": "2.4.1", "front-matter": "4.0.2", "i18next": "22.5.0", "jest-environment-jsdom": "29.5.0", "lodash": "4.17.21", "monaco-editor": "0.40.0", "pretty-bytes": "6.1.0", "react": "18.2.0", "react-chartjs-2": "5.2.0", "react-color": "2.19.3", "react-confetti": "6.1.0", "react-dom": "18.2.0", "react-headless-tabs": "6.0.3", "react-helmet-async": "1.3.0", "react-i18next": "12.2.2", "react-markdown": "8.0.3", "react-router-dom": "6.14.1", "react-syntax-highlighter": "15.5.0", "react-use": "17.4.0", "react-virtualized-auto-sizer": "1.0.20", "react-window": "1.8.8", "remark-gfm": "3.0.1", "rollup-plugin-visualizer": "5.9.0", "semver": "7.5.3", "sourcemapped-stacktrace": "1.1.11", "ts-prune": "0.10.3", "tzdata": "1.0.30", "ua-parser-js": "1.0.33", "unique-names-generator": "4.7.1", "uuid": "9.0.0", "vite": "4.4.2", "xstate": "4.38.1", "xterm": "5.2.1", "xterm-addon-canvas": "0.4.0", "xterm-addon-fit": "0.7.0", "xterm-addon-web-links": "0.8.0", "yup": "1.2.0" }, "devDependencies": { "@octokit/types": "11.1.0", "@playwright/test": "1.36.0", "@storybook/addon-actions": "7.2.0", "@storybook/addon-essentials": "7.2.0", "@storybook/addon-links": "7.2.0", "@storybook/addon-mdx-gfm": "7.2.0", "@storybook/react": "7.2.0", "@storybook/react-vite": "7.2.0", "@swc/core": "1.3.38", "@swc/jest": "0.2.24", "@testing-library/jest-dom": "5.17.0", "@testing-library/react": "14.0.0", "@testing-library/react-hooks": "8.0.1", "@testing-library/user-event": "14.4.3", "@types/chroma-js": "2.4.0", "@types/express": "4.17.17", "@types/jest": "29.5.2", "@types/node": "18.17.0", "@types/react": "18.2.6", "@types/react-dom": "18.2.4", "@types/react-helmet": "6.1.5", "@types/react-syntax-highlighter": "15.5.5", "@types/react-virtualized-auto-sizer": "1.0.1", "@types/react-window": "1.8.5", "@types/ssh2": "1.11.13", "@types/testing-library__jest-dom": "5.14.9", "@types/ua-parser-js": "0.7.36", "@types/uuid": "9.0.2", "@typescript-eslint/eslint-plugin": "6.2.1", "@typescript-eslint/parser": "6.2.1", "@xstate/cli": "0.5.2", "chromatic": "6.20.0", "eslint": "8.46.0", "eslint-config-prettier": "8.9.0", "eslint-import-resolver-typescript": "3.5.5", "eslint-plugin-compat": "4.1.4", "eslint-plugin-eslint-comments": "3.2.0", "eslint-plugin-import": "2.28.0", "eslint-plugin-jest": "27.2.2", "eslint-plugin-jsx-a11y": "6.7.1", "eslint-plugin-react": "7.33.0", "eslint-plugin-react-hooks": "4.6.0", "eslint-plugin-storybook": "0.6.12", "eslint-plugin-unicorn": "48.0.0", "express": "4.18.2", "jest": "29.6.2", "jest-canvas-mock": "2.4.0", "jest-fetch-mock": "3.0.3", "jest-location-mock": "1.0.9", "jest-runner-eslint": "2.1.0", "jest-websocket-mock": "2.4.0", "jest_workaround": "0.1.14", "just-debounce-it": "3.2.0", "msw": "1.2.2", "prettier": "3.0.0", "protobufjs": "7.2.4", "resize-observer": "1.0.4", "rxjs": "7.8.1", "ssh2": "1.14.0", "storybook": "7.2.0", "storybook-addon-react-router-v6": "1.0.2", "storybook-react-context": "0.6.0", "ts-node": "10.9.1", "ts-proto": "1.156.0", "typescript": "5.1.6", "vite-plugin-checker": "0.6.0" }, "browserslist": [ "chrome 66", "firefox 63", "edge 79", "safari 15.4" ], "resolutions": { "optionator": "0.9.3", "semver": "7.5.3" }, "engines": { "npm": ">=9.0.0 <10.0.0", "node": ">=18.0.0 <19.0.0" } }