Files
webstudio/packages/cli/package.json
T
Jaya Krishna Namburu 81781ee199 Add guided flow using prompts for cli (#2252)
## Description

This PR adds prompts, when the cli is ran using `webstudio` and without
any commands. It requests the users if they want to create a folder. If
yes, it will create a folder and changes the directory to the newly
created ones.

This PR even allows `webstudio link` command to be executed without
prompts using

```sh
webstudio link -l <link>
```

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - test it on preview
 
- [ ] hi @TrySound , I need you to do
  - conceptual review (architecture, feature-correctness)
 

## Before requesting a review
- [x] made a self-review
2023-09-06 14:34:36 +02:00

52 lines
1.4 KiB
JSON

{
"name": "@webstudio-is/cli",
"version": "0.91.0",
"description": "Webstudio CLI",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
"type": "module",
"bin": {
"webstudio": "./lib/bin.js"
},
"files": [
"lib/*",
"src/*",
"templates/*",
"bin.js",
"!*.test.*"
],
"scripts": {
"typecheck": "tsc",
"checks": "pnpm typecheck",
"build:templates": "tsx ./templates/build.ts",
"build": "rm -rf ./lib && esbuild ./src/**/*.ts --outdir=./lib",
"local-run": "tsx --no-warnings ./src/bin.ts"
},
"license": "AGPL-3.0-or-later",
"dependencies": {
"@webstudio-is/http-client": "workspace:^",
"@webstudio-is/image": "workspace:^",
"@webstudio-is/react-sdk": "workspace:^",
"@webstudio-is/sdk": "workspace:^",
"@webstudio-is/sdk-components-react": "workspace:^",
"@webstudio-is/sdk-components-react-radix": "workspace:^",
"@webstudio-is/sdk-components-react-remix": "workspace:^",
"env-paths": "^3.0.0",
"ora": "^7.0.1",
"p-limit": "^4.0.0",
"prompts": "^2.4.2",
"strip-indent": "^4.0.0",
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/node": "^18.13.0",
"@types/prompts": "^2.4.4",
"@webstudio-is/form-handlers": "workspace:^",
"@webstudio-is/scripts": "workspace:^",
"@webstudio-is/tsconfig": "workspace:^",
"esbuild": "^0.18.18",
"tsx": "^3.12.6",
"typescript": "5.2.2"
}
}