UNPKG

@codesandbox/sdk

Version:
130 lines (129 loc) 5.63 kB
{ "name": "@codesandbox/sdk", "version": "2.4.2", "description": "The CodeSandbox SDK", "author": "CodeSandbox", "license": "MIT", "repository": "git+https://github.com/codesandbox/codesandbox-sdk.git", "type": "module", "bin": { "csb": "dist/bin/codesandbox.mjs" }, "module": "./dist/esm/index.js", "main": "./dist/esm/index.js", "private": false, "publishConfig": { "@codesandbox:registry": "https://registry.npmjs.org" }, "exports": { ".": { "types": "./dist/esm/index.d.ts", "import": "./dist/esm/index.js", "require": "./dist/cjs/index.cjs", "default": "./dist/cjs/index.cjs" }, "./browser": { "types": "./dist/esm/browser/index.d.ts", "import": "./dist/esm/browser.js", "require": "./dist/cjs/browser.cjs", "default": "./dist/cjs/browser.cjs" }, "./node": { "types": "./dist/esm/node/index.d.ts", "import": "./dist/esm/node.js", "require": "./dist/cjs/node.cjs", "default": "./dist/cjs/node.cjs" } }, "types": "./dist/esm/index.d.ts", "scripts": { "dev:cli": "node scripts/dev-cli.cjs", "build": "npm run clean && npm run build:esbuild && npm run build:cjs:types && npm run build:esm:types && chmod +x dist/bin/codesandbox.mjs", "build:esbuild": "node esbuild.cjs", "build:cjs:types": "tsc -p ./tsconfig.build-cjs.json --emitDeclarationOnly", "build:esm:types": "tsc -p ./tsconfig.build-esm.json --emitDeclarationOnly", "build-openapi": "rimraf src/api-clients && curl -o openapi.json https://api.codesandbox.io/meta/openapi && npx prettier --write ./openapi.json && node_modules/.bin/openapi-ts -i ./openapi.json -o src/api-clients/client -c @hey-api/client-fetch && npm run build-openapi-pint", "build-openapi:staging": "rimraf src/api-clients && curl -o openapi.json https://api.codesandbox.stream/meta/openapi && npx prettier --write ./openapi.json && node_modules/.bin/openapi-ts -i ./openapi.json -o src/api-clients/client -c @hey-api/client-fetch && npm run build-openapi-rest", "build-openapi-rest": "npm run build-openapi-rest-fs && npm run build-openapi-rest-task && npm run build-openapi-rest-container && npm run build-openapi-rest-git && npm run build-openapi-rest-setup && npm run build-openapi-rest-shell && npm run build-openapi-rest-system", "build-openapi-rest-container": "node_modules/.bin/openapi-ts -i ./openapi-sandbox-container.json -o src/api-clients/client-rest-container -c @hey-api/client-fetch", "build-openapi-rest-fs": "node_modules/.bin/openapi-ts -i ./openapi-sandbox-fs.json -o src/api-clients/client-rest-fs -c @hey-api/client-fetch", "build-openapi-rest-git": "node_modules/.bin/openapi-ts -i ./openapi-sandbox-git.json -o src/api-clients/client-rest-git -c @hey-api/client-fetch", "build-openapi-rest-setup": "node_modules/.bin/openapi-ts -i ./openapi-sandbox-setup.json -o src/api-clients/client-rest-setup -c @hey-api/client-fetch", "build-openapi-rest-shell": "node_modules/.bin/openapi-ts -i ./openapi-sandbox-shell.json -o src/api-clients/client-rest-shell -c @hey-api/client-fetch", "build-openapi-rest-system": "node_modules/.bin/openapi-ts -i ./openapi-sandbox-system.json -o src/api-clients/client-rest-system -c @hey-api/client-fetch", "build-openapi-rest-task": "node_modules/.bin/openapi-ts -i ./openapi-sandbox-task.json -o src/api-clients/client-rest-task -c @hey-api/client-fetch", "build-openapi-pint": "node_modules/.bin/openapi-ts -i ./pint-openapi-bundled.json -o src/api-clients/pint -c @hey-api/client-fetch", "clean": "rimraf ./dist", "test": "vitest", "test:e2e": "vitest run tests/e2e", "typecheck": "tsc --noEmit", "format": "prettier '**/*.{md,js,jsx,json,ts,tsx}' --write", "postbuild": "rimraf {lib,es}/**/__tests__ {lib,es}/**/*.{spec,test}.{js,d.ts,js.map}", "postversion": "git push && git push --tags", "prepublish": "npm run build", "demo:install": "cd demo && npm install", "demo:dev": "cd demo && npm run dev", "demo:build": "cd demo && npm run build" }, "keywords": [ "typescript", "react", "api" ], "files": [ "dist", "README.md" ], "devDependencies": { "@hey-api/openapi-ts": "^0.84.4", "@msgpack/msgpack": "^2.7.1", "@parcel/watcher": "^2.5.1", "@tanstack/react-query": "^5.76.1", "@types/blessed": "^0.1.25", "@types/nock": "^10.0.3", "@types/node": "^22.15.30", "@types/react": "^19.1.5", "@types/yargs": "^17.0.33", "buffer-browserify": "^0.2.5", "crypto-browserify": "^3.12.1", "esbuild": "^0.25.0", "ignore": "^6.0.2", "ink": "^6.1.0", "isomorphic-ws": "^5.0.0", "nock": "^14.0.10", "os-browserify": "^0.3.0", "path-browserify": "^1.0.1", "prettier": "^2.2.1", "react": "^19.1.1", "rimraf": "^6.0.1", "semver": "^6.3.0", "tslib": "^2.1.0", "typescript": "^5.7.2", "vitest": "^3.2.4", "why-is-node-running": "^2.3.0" }, "dependencies": { "@hey-api/client-fetch": "^0.13.1", "@inkjs/ui": "^2.0.0", "@opentelemetry/api": "^1.9.0", "@xterm/addon-serialize": "^0.13.0", "@xterm/headless": "^5.5.0", "blessed": "^0.1.81", "blessed-contrib": "^4.11.0", "chalk": "^5.4.1", "cli-table3": "^0.6.3", "date-fns": "^4.1.0", "fflate": "^0.8.2", "isbinaryfile": "^5.0.4", "ora": "^8.2.0", "path": "^0.12.7", "readline": "^1.3.0", "util": "^0.12.5", "yargs": "^17.7.2" }, "optionalDependencies": { "@sentry/node": "^9.29.0", "bufferutil": "^4.0.0", "utf-8-validate": "^6.0.0" } }