mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 13:05:08 +09:00
## Description
Read constants.mjs during prebuild step and use that constants. (need
for saas and other templates)
Fixes windows version of cli. Now everything works on windows platform
too.
Changes:
using `execa` instead of `exec`
using `import { fileURLToPath } from "node:url";` instead of
url.pathname
do not using `join` for import generation
<img width="975" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/5077042/761cd741-d609-48ef-a54a-027fe3f0d49f">
<img width="975" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/5077042/52c9f2d7-4389-4bb6-8fa7-5329a4b6d9c8">
<img width="972" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/5077042/cb5d2c1d-34d9-412d-942e-c78276c9dd6c">
## Steps for reproduction
1. click button
2. expect xyz
## Code Review
- [ ] hi @kof, I need you to do
- conceptual review (architecture, feature-correctness)
- detailed review (read every line)
- test it on preview
## Before requesting a review
- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")
## Before merging
- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `builder/env-check.js` if mandatory
52 lines
1.5 KiB
JSON
52 lines
1.5 KiB
JSON
{
|
|
"name": "webstudio-cli",
|
|
"version": "0.99.0",
|
|
"description": "Webstudio CLI",
|
|
"author": "Webstudio <github@webstudio.is>",
|
|
"homepage": "https://webstudio.is",
|
|
"type": "module",
|
|
"bin": {
|
|
"webstudio-cli": "./bin.js"
|
|
},
|
|
"files": [
|
|
"lib/*",
|
|
"templates/*",
|
|
"bin.js",
|
|
"!*.{test,stories}.*"
|
|
],
|
|
"scripts": {
|
|
"typecheck": "tsc",
|
|
"checks": "pnpm typecheck",
|
|
"build": "rm -rf lib && esbuild src/cli.ts --outdir=lib --bundle --format=esm --packages=external",
|
|
"local-run": "tsx --no-warnings ./src/bin.ts",
|
|
"dev": "esbuild src/cli.ts --watch --bundle --format=esm --packages=external --outdir=./lib"
|
|
},
|
|
"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:^",
|
|
"deepmerge": "^4.3.1",
|
|
"env-paths": "^3.0.0",
|
|
"execa": "^7.2.0",
|
|
"ora": "^7.0.1",
|
|
"p-limit": "^4.0.0",
|
|
"picocolors": "^1.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/tsconfig": "workspace:^",
|
|
"tsx": "^3.12.8",
|
|
"typescript": "5.2.2"
|
|
}
|
|
}
|