Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix: Allow formatting d.ts files (#2558)

Ivan Starkovf1267fc96206
diff --git a/.prettierignore b/.prettierignore
index a8a54fd998..1b1f2d82c8 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,3 +1,3 @@
pnpm-lock.yaml
packages/prisma-client/prisma/migrations/*/client
-*.d.ts
+packages/prisma-client/**/*.d.ts
diff --git a/fixtures/webstudio-custom-template/.webstudio/data.json b/fixtures/webstudio-custom-template/.webstudio/data.json
index 400415d861..c0938da7b1 100644
--- a/fixtures/webstudio-custom-template/.webstudio/data.json
+++ b/fixtures/webstudio-custom-template/.webstudio/data.json
@@ -1,14 +1,14 @@
{
"build": {
- "id": "bed606f3-fc20-408b-9e27-afa65f293390",
+ "id": "07051f2f-686c-4031-9a5d-67b8073a5a21",
"projectId": "0d856812-61d8-4014-a20a-82e01c0eb8ee",
- "version": 13,
- "createdAt": "2023-10-30T20:36:31.649Z",
+ "version": 17,
+ "createdAt": "2023-11-03T11:20:29.565Z",
"pages": {
"meta": {
"siteName": "Fixture Site",
"faviconAssetId": "cd1e9fad-8df1-45c6-800f-05fda2d2469f",
- "code": ""
+ "code": "<script>console.log('HELLO')</script>\n<meta property=\"saas:test\" content=\"test\">"
},
"homePage": {
"id": "nfzls_SkTc9jKYyxcZ8Lw",
diff --git a/fixtures/webstudio-custom-template/app/__generated__/_index.tsx b/fixtures/webstudio-custom-template/app/__generated__/_index.tsx
index 2ca0e08bbe..2a1e46de7c 100644
--- a/fixtures/webstudio-custom-template/app/__generated__/_index.tsx
+++ b/fixtures/webstudio-custom-template/app/__generated__/_index.tsx
@@ -27,7 +27,7 @@ export const pageData: PageData = {
site: {
siteName: "Fixture Site",
faviconAssetId: "cd1e9fad-8df1-45c6-800f-05fda2d2469f",
- code: "",
+ code: '<script>console.log(\'HELLO\')</script>\n<meta property="saas:test" content="test">',
},
page: {
id: "nfzls_SkTc9jKYyxcZ8Lw",
diff --git a/fixtures/webstudio-custom-template/remix.env.d.ts b/fixtures/webstudio-custom-template/remix.env.d.ts
index 8bf8b6dd71..dcf8c45e1d 100644
--- a/fixtures/webstudio-custom-template/remix.env.d.ts
+++ b/fixtures/webstudio-custom-template/remix.env.d.ts
@@ -1,3 +1,2 @@
/// <reference types="@remix-run/dev" />
/// <reference types="@remix-run/node" />
-
diff --git a/fixtures/webstudio-remix-netlify-edge-functions/remix.env.d.ts b/fixtures/webstudio-remix-netlify-edge-functions/remix.env.d.ts
index 8bf8b6dd71..dcf8c45e1d 100644
--- a/fixtures/webstudio-remix-netlify-edge-functions/remix.env.d.ts
+++ b/fixtures/webstudio-remix-netlify-edge-functions/remix.env.d.ts
@@ -1,3 +1,2 @@
/// <reference types="@remix-run/dev" />
/// <reference types="@remix-run/node" />
-
diff --git a/fixtures/webstudio-remix-netlify-functions/remix.env.d.ts b/fixtures/webstudio-remix-netlify-functions/remix.env.d.ts
index 8bf8b6dd71..dcf8c45e1d 100644
--- a/fixtures/webstudio-remix-netlify-functions/remix.env.d.ts
+++ b/fixtures/webstudio-remix-netlify-functions/remix.env.d.ts
@@ -1,3 +1,2 @@
/// <reference types="@remix-run/dev" />
/// <reference types="@remix-run/node" />
-
diff --git a/fixtures/webstudio-remix-vercel/remix.env.d.ts b/fixtures/webstudio-remix-vercel/remix.env.d.ts
index 8bf8b6dd71..dcf8c45e1d 100644
--- a/fixtures/webstudio-remix-vercel/remix.env.d.ts
+++ b/fixtures/webstudio-remix-vercel/remix.env.d.ts
@@ -1,3 +1,2 @@
/// <reference types="@remix-run/dev" />
/// <reference types="@remix-run/node" />
-
diff --git a/packages/cli/templates/defaults/remix.env.d.ts b/packages/cli/templates/defaults/remix.env.d.ts
index 8bf8b6dd71..dcf8c45e1d 100644
--- a/packages/cli/templates/defaults/remix.env.d.ts
+++ b/packages/cli/templates/defaults/remix.env.d.ts
@@ -1,3 +1,2 @@
/// <reference types="@remix-run/dev" />
/// <reference types="@remix-run/node" />
-