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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Replace tsc with esbuild to build packages (#543)
Bogdan Chadkin6b761bb000e6
diff --git a/apps/designer/package.json b/apps/designer/package.jsonindex 25eb9beab4..7093343eac 100644--- a/apps/designer/package.json+++ b/apps/designer/package.json@@ -6,7 +6,7 @@"build": "remix build","dev": "remix dev","start": "remix-serve build",- "typecheck": "tsc -b",+ "typecheck": "tsc","lint": "eslint . --ext .ts,.tsx --max-warnings 0","test": "NODE_OPTIONS=--experimental-vm-modules jest","checks": "yarn lint && yarn typecheck && yarn prettier --check && yarn test",diff --git a/bin/update-ts-project-references.ts b/bin/update-ts-project-references.tsdeleted file mode 100644index 2de2ac32cd..0000000000--- a/bin/update-ts-project-references.ts+++ /dev/null@@ -1,165 +0,0 @@-import cp from "child_process";-import fs from "fs";-import fsP from "fs/promises";-import path from "path";-import { getDependentsGraph } from "@changesets/get-dependents-graph";-import { getPackages } from "@manypkg/get-packages";-import * as fleece from "golden-fleece";--type GetPackagesResult = Awaited<ReturnType<typeof getPackages>>;-type Package = GetPackagesResult["packages"][number];-type DependencyGraph = Map<string, Set<string>>;-type TsConfig = { references?: { path: string }[] };--const stringArrayEquals = (arrA: string[], arrB: string[]): boolean => {- return (- arrA.length === arrB.length && arrA.every((itemA, i) => itemA === arrB[i])- );-};--const format = async (filePath: string, content: string): Promise<string> => {- // lazy load prettier to avoid loading it when not needed- const prettier = (await import("prettier")).default;- const config = prettier.resolveConfig(filePath);- return prettier.format(content, {- ...config,- filepath: filePath,- });-};--const getDependencyGraph = (- getPackagesResult: GetPackagesResult-): DependencyGraph => {- const graph: DependencyGraph = new Map();-- for (const [dependency, dependents] of getDependentsGraph(- getPackagesResult- )) {- for (const dependent of dependents) {- let dependencies = graph.get(dependent);- if (!dependencies) {- dependencies = new Set();- graph.set(dependent, dependencies);- }- dependencies.add(dependency);- }- }-- return graph;-};--const updateFile = async (filePath: string, content: string) => {- await fsP.writeFile(filePath, content);- cp.spawnSync("git", ["add", filePath]);-};--const updateTsConfig = async (- dependentDir: string,- dependencies: Package[]-) => {- const tsConfigPath = path.join(dependentDir, "tsconfig.json");- const tsConfigContent = await fsP.readFile(tsConfigPath, "utf8");- const tsConfig: TsConfig = fleece.evaluate(tsConfigContent);-- const dependencyPaths = [...dependencies.values()]- .filter((dependency) =>- fs.existsSync(path.join(dependency.dir, "tsconfig.json"))- )- .map((dependency) => path.relative(dependentDir, dependency.dir))- .sort();-- if (- stringArrayEquals(- dependencyPaths,- (tsConfig.references || []).map((reference) => reference.path)- )- ) {- return;- }-- const formatted = await format(- tsConfigPath,- fleece.patch(tsConfigContent, {- ...tsConfig,- references: dependencyPaths.map((path) => ({ path })),- })- );-- const ast = fleece.parse(formatted);- if (ast.type !== "ObjectExpression") {- throw new Error("Expected ObjectExpression");- }- const referencesPropIndex = ast.properties.findIndex(- (prop) => prop.key.name === "references"- );- if (referencesPropIndex === -1) {- throw new Error(- "Expected to find 'references' property and for it to not be the first property"- );- }- if (referencesPropIndex === 0) {- throw new Error(- "Expected 'references' property to not be the first property"- );- }- const referencesProp = ast.properties[referencesPropIndex];- const previousProp = ast.properties[referencesPropIndex - 1];- const indent = formatted.match(/.*{\n(\s+)[^\s]/)?.[1];-- if (indent === undefined) {- throw new Error(`Couldn't determine indentation`);- }-- await updateFile(- tsConfigPath,- // this works on the assumption that there are no comments between the references and the previous property- // if there are any comments there then they might be lost- formatted.slice(0, previousProp.end) +- `,\n${indent}// this is auto-generated by ${path.basename(- __filename- )}\n${indent}` +- formatted.slice(referencesProp.start)- );-};--(async () => {- const rootDir = path.join(__dirname, "..");- const getPackagesResult = await getPackages(rootDir);- const indexedPackages = new Map(- getPackagesResult.packages.map((pkg) => [pkg.packageJson.name, pkg])- );- const dependencyGraph = getDependencyGraph(getPackagesResult);-- const packageTasks = [...dependencyGraph].map(- async ([pkgName, dependencies]) => {- const dependent = indexedPackages.get(pkgName);- if (!dependent) {- throw new Error(- "Data consistency problem. Dependent package should always be available in the indexed packages"- );- }-- await updateTsConfig(- dependent.dir,- [...dependencies.values()].map((dependencyName) => {- const dependency = indexedPackages.get(dependencyName);- if (!dependency) {- throw new Error(- "Data consistency problem. Dependency package should always be available in the indexed packages"- );- }- return dependency;- })- );- }- );-- await Promise.all([- ...packageTasks,- updateTsConfig(rootDir, getPackagesResult.packages),- ]);-})().catch((err) => {- // eslint-disable-next-line no-console- console.error(err);- process.exit(1);-});diff --git a/packages/asset-uploader/package.json b/packages/asset-uploader/package.jsonindex 12725c1634..d625aa716f 100644--- a/packages/asset-uploader/package.json+++ b/packages/asset-uploader/package.json@@ -9,8 +9,8 @@"typecheck": "tsc --noEmit","test": "NODE_OPTIONS=--experimental-vm-modules jest","checks": "yarn typecheck && yarn lint && yarn test",- "dev": "tsup --watch",- "build": "rm -fr lib && tsc",+ "dev": "build-package --watch",+ "build": "build-package","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","publish-to-npm": "bash ../../bin/publish-to-npm.sh"},@@ -27,7 +27,7 @@"@types/node": "^18.7.16","@types/sharp": "^0.30.4","@webstudio-is/jest-config": "*",- "tsup": "^6.1.3",+ "@webstudio-is/scripts": "*","typescript": "4.7.4","zod": "^3.19.1"},@@ -43,13 +43,5 @@],"license": "MIT","private": false,- "sideEffects": false,- "tsup": {- "entry": [- "src/index.ts",- "src/index.server.ts"- ],- "format": "esm",- "outDir": "lib"- }+ "sideEffects": false}diff --git a/packages/css-data/package.json b/packages/css-data/package.jsonindex 76b478146e..e12bffbe39 100644--- a/packages/css-data/package.json+++ b/packages/css-data/package.json@@ -8,17 +8,16 @@"scripts": {"typecheck": "tsc --noEmit","checks": "yarn typecheck && yarn lint",- "dev": "tsup --watch",- "build:cjs": "tsc --module commonjs --outDir lib/cjs && find lib/cjs -name '*.js' | while read NAME; do mv $NAME ${NAME%.js}.cjs; done",- "build": "rm -fr lib && tsc && yarn build:cjs",+ "dev": "build-package --watch",+ "build": "build-package","build:mdn-data": "tsx ./bin/mdn-data.ts ./src/__generated__","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","publish-to-npm": "bash ../../bin/publish-to-npm.sh"},"dependencies": {},"devDependencies": {+ "@webstudio-is/scripts": "*","mdn-data": "2.0.23",- "tsup": "^6.1.3","typescript": "4.7.4","@types/css-tree": "^1.0.7","css-tree": "^2.1.0",@@ -40,12 +39,5 @@],"license": "MIT","private": false,- "sideEffects": false,- "tsup": {- "entry": [- "src/index.ts"- ],- "format": "esm",- "outDir": "lib"- }+ "sideEffects": false}diff --git a/packages/css-engine/package.json b/packages/css-engine/package.jsonindex ce0c7d57ac..b8210b0956 100644--- a/packages/css-engine/package.json+++ b/packages/css-engine/package.json@@ -8,8 +8,8 @@"scripts": {"typecheck": "tsc --noEmit","checks": "yarn typecheck && yarn lint && yarn test",- "dev": "tsup --watch",- "build": "rm -fr lib && tsc",+ "dev": "build-package --watch",+ "build": "build-package","test": "NODE_OPTIONS=--experimental-vm-modules jest","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","storybook:run": "start-storybook -p 6006",@@ -34,7 +34,7 @@"@storybook/testing-library": "^0.0.13","@webstudio-is/jest-config": "*","@webstudio-is/css-data": "*",- "tsup": "^6.1.3",+ "@webstudio-is/scripts": "*","typescript": "4.7.4","@types/react": "^17.0.24","@types/react-dom": "^17.0.9"@@ -48,12 +48,5 @@],"license": "MIT","private": false,- "sideEffects": false,- "tsup": {- "entry": [- "src/index.ts"- ],- "format": "esm",- "outDir": "lib"- }+ "sideEffects": false}diff --git a/packages/css-vars/package.json b/packages/css-vars/package.jsonindex f8fa51e71f..28fe982258 100644--- a/packages/css-vars/package.json+++ b/packages/css-vars/package.json@@ -8,16 +8,15 @@"scripts": {"typecheck": "tsc --noEmit","checks": "yarn typecheck && yarn lint",- "dev": "tsup --watch",- "build:cjs": "tsc --module commonjs --outDir lib/cjs && find lib/cjs -name '*.js' | while read NAME; do mv $NAME ${NAME%.js}.cjs; done",- "build": "rm -fr lib && tsc && yarn build:cjs",+ "dev": "build-package --watch",+ "build": "build-package","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","publish-to-npm": "bash ../../bin/publish-to-npm.sh"},"dependencies": {},"devDependencies": {"@webstudio-is/jest-config": "*",- "tsup": "^6.1.3",+ "@webstudio-is/scripts": "*","typescript": "4.7.4"},"module": "./lib/index.js",@@ -33,12 +32,5 @@],"license": "MIT","private": false,- "sideEffects": false,- "tsup": {- "entry": [- "src/index.ts"- ],- "format": "esm",- "outDir": "lib"- }+ "sideEffects": false}diff --git a/packages/design-system/package.json b/packages/design-system/package.jsonindex 3c683604d7..7666454076 100644--- a/packages/design-system/package.json+++ b/packages/design-system/package.json@@ -6,8 +6,8 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "dev": "tsup --watch",- "build": "rm -fr lib && tsc",+ "dev": "build-package --watch",+ "build": "build-package","typecheck": "tsc --noEmit","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","test": "NODE_OPTIONS=--experimental-vm-modules jest",@@ -26,9 +26,9 @@"@storybook/manager-webpack4": "^6.5.6","@storybook/react": "^6.5.6","@storybook/testing-library": "^0.0.13",+ "@webstudio-is/scripts": "*","@webstudio-is/jest-config": "*","lost-pixel": "^2.23.0",- "tsup": "^6.1.3","typescript": "4.7.4"},"peerDependencies": {@@ -79,12 +79,5 @@],"license": "MIT","private": false,- "sideEffects": false,- "tsup": {- "entry": [- "src/index.ts"- ],- "format": "esm",- "outDir": "lib"- }+ "sideEffects": false}diff --git a/packages/fonts/package.json b/packages/fonts/package.jsonindex 53730b3772..434bcd74e0 100644--- a/packages/fonts/package.json+++ b/packages/fonts/package.json@@ -9,9 +9,8 @@"typecheck": "tsc --noEmit","test": "NODE_OPTIONS=--experimental-vm-modules jest","checks": "yarn typecheck && yarn lint && yarn test",- "dev": "tsup --watch",- "build:cjs": "tsc --module commonjs --outDir lib/cjs && find lib/cjs -name '*.js' | while read NAME; do mv $NAME ${NAME%.js}.cjs; done",- "build": "rm -fr lib && tsc && yarn build:cjs",+ "dev": "build-package --watch",+ "build": "build-package","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","publish-to-npm": "bash ../../bin/publish-to-npm.sh"},@@ -22,7 +21,7 @@"@types/fontkit": "^2.0.0","@webstudio-is/design-system": "*","@webstudio-is/jest-config": "*",- "tsup": "^6.1.3",+ "@webstudio-is/scripts": "*","typescript": "4.7.4","zod": "^3.19.1"},@@ -45,13 +44,5 @@],"license": "MIT","private": false,- "sideEffects": false,- "tsup": {- "entry": [- "src/index.ts",- "src/index.server.ts"- ],- "format": "esm",- "outDir": "lib"- }+ "sideEffects": false}diff --git a/packages/generate-arg-types/src/index.ts b/packages/generate-arg-types/src/index.tsindex 28b0f2fe08..f8e9dcce00 100755--- a/packages/generate-arg-types/src/index.ts+++ b/packages/generate-arg-types/src/index.ts@@ -1,4 +1,4 @@-#!/usr/bin/env -S node --experimental-specifier-resolution=node --loader=tsx+#!/usr/bin/env tsx/* eslint-disable no-console */import path from "path";diff --git a/packages/icons/package.json b/packages/icons/package.jsonindex 9a63f79ee6..2373113a06 100644--- a/packages/icons/package.json+++ b/packages/icons/package.json@@ -6,9 +6,8 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "dev": "tsup --watch",- "build:cjs": "tsc --module commonjs --outDir lib/cjs && find lib/cjs -name '*.js' | while read NAME; do mv $NAME ${NAME%.js}.cjs; done",- "build": "rm -fr lib && tsc && yarn build:cjs",+ "dev": "build-package --watch",+ "build": "build-package","generate": "rm -fr src/__generated__ && NODE_OPTIONS='--loader=tsx' svgo-jsx svgo-jsx.config.ts","typecheck": "tsc --noEmit","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",@@ -28,7 +27,7 @@"@storybook/react": "^6.5.6","@storybook/testing-library": "^0.0.13","@svgo/jsx": "^0.4.2",- "tsup": "^6.1.3",+ "@webstudio-is/scripts": "*","tsx": "^3.9.0","typescript": "4.7.4"},@@ -53,12 +52,5 @@],"license": "MIT","private": false,- "sideEffects": false,- "tsup": {- "entry": [- "src/index.ts"- ],- "format": "esm",- "outDir": "lib"- }+ "sideEffects": false}diff --git a/packages/image/package.json b/packages/image/package.jsonindex 57443c3417..862cddbd6e 100644--- a/packages/image/package.json+++ b/packages/image/package.json@@ -9,10 +9,9 @@"typecheck": "tsc --noEmit","test": "NODE_OPTIONS=--experimental-vm-modules jest","checks": "yarn typecheck && yarn lint && yarn test",- "dev": "tsup --watch",+ "dev": "build-package --watch",+ "build": "build-package","build:args": "generate-arg-types './src/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.json\"",- "build": "rm -fr lib && yarn build:cjs && tsc",- "build:cjs": "tsc --module commonjs --outDir lib/cjs && find lib/cjs -name '*.js' | while read NAME; do mv $NAME ${NAME%.js}.cjs; done","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","storybook:run": "start-storybook -p 6006","storybook:build": "build-storybook",@@ -30,9 +29,10 @@"@storybook/manager-webpack4": "^6.5.6","@storybook/react": "^6.5.6","@storybook/testing-library": "^0.0.13",+ "@webstudio-is/generate-arg-types": "*","@webstudio-is/jest-config": "*",- "typescript": "4.7.4",- "@webstudio-is/generate-arg-types": "*"+ "@webstudio-is/scripts": "*",+ "typescript": "4.7.4"},"peerDependencies": {"react": "^17.0.2",@@ -51,12 +51,5 @@],"license": "MIT","private": false,- "sideEffects": false,- "tsup": {- "entry": [- "src/index.ts"- ],- "format": "esm",- "outDir": "lib"- }+ "sideEffects": false}diff --git a/packages/prisma-client/package.json b/packages/prisma-client/package.jsonindex 724a095b7e..77b04f7065 100644--- a/packages/prisma-client/package.json+++ b/packages/prisma-client/package.json@@ -9,8 +9,8 @@"typecheck": "tsc --noEmit","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","checks": "yarn typecheck && yarn lint",- "dev": "yarn concurrently 'prisma generate --watch' 'tsup --watch'",- "build": "prisma format && prisma generate && rm -fr lib && tsc",+ "dev": "yarn concurrently 'prisma generate --watch' 'build-package --watch'",+ "build": "prisma format && prisma generate && build-package","publish-to-npm": "bash ../../bin/publish-to-npm.sh"},"bin": {@@ -18,9 +18,9 @@},"devDependencies": {"@types/uuid": "^8.3.4",+ "@webstudio-is/scripts": "*","concurrently": "^7.6.0","prisma": "^4.3.1",- "tsup": "^6.1.3","typescript": "4.7.4","zod": "^3.19.1"},@@ -42,12 +42,5 @@"peerDependencies": {"zod": "^3.19.1"},- "sideEffects": false,- "tsup": {- "entry": [- "src/index.ts"- ],- "format": "esm",- "outDir": "lib"- }+ "sideEffects": false}diff --git a/packages/project/package.json b/packages/project/package.jsonindex 6b1a04191b..9b80e5ef13 100644--- a/packages/project/package.json+++ b/packages/project/package.json@@ -9,9 +9,8 @@"typecheck": "tsc --noEmit","test": "NODE_OPTIONS=--experimental-vm-modules jest","checks": "yarn typecheck && yarn lint && yarn test",- "dev": "tsup --watch",- "build:cjs": "tsc --module commonjs --outDir lib/cjs && find lib/cjs -name '*.js' | while read NAME; do mv $NAME ${NAME%.js}.cjs; done",- "build": "rm -fr lib && tsc && yarn build:cjs",+ "dev": "build-package --watch",+ "build": "build-package","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","publish-to-npm": "bash ../../bin/publish-to-npm.sh"},@@ -31,7 +30,7 @@"zod": "^3.19.1"},"devDependencies": {- "tsup": "^6.1.3",+ "@webstudio-is/scripts": "*","typescript": "4.7.4"},"exports": {@@ -49,13 +48,5 @@],"license": "MIT","private": false,- "sideEffects": false,- "tsup": {- "entry": [- "src/index.ts",- "src/index.server.ts"- ],- "format": "esm",- "outDir": "lib"- }+ "sideEffects": false}diff --git a/packages/react-sdk/package.json b/packages/react-sdk/package.jsonindex 26fd98a67d..22c3b4b798 100644--- a/packages/react-sdk/package.json+++ b/packages/react-sdk/package.json@@ -6,16 +6,14 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "dev": "tsup --watch",- "build": "yarn build:lib",+ "dev": "build-package --watch",+ "build": "build-package","build:args": "generate-arg-types './src/components/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.json\"","typecheck": "tsc --noEmit",- "build:cjs": "tsc --module commonjs --outDir lib/cjs && find lib/cjs -name '*.js' | while read NAME; do mv $NAME ${NAME%.js}.cjs; done",- "build:lib": "rm -fr lib && tsc && yarn build:cjs","test": "NODE_OPTIONS=--experimental-vm-modules jest","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","checks": "yarn typecheck && yarn lint && yarn test",- "prepublishOnly": "yarn checks && yarn build:lib",+ "prepublishOnly": "yarn checks && yarn build","storybook:run": "start-storybook -p 6006","storybook:build": "build-storybook","publish-to-npm": "bash ../../bin/publish-to-npm.sh"@@ -34,15 +32,15 @@"@storybook/react": "^6.5.6","@storybook/testing-library": "^0.0.11","@types/node": "^17.0.21",- "@webstudio-is/jest-config": "*","@webstudio-is/generate-arg-types": "*",+ "@webstudio-is/jest-config": "*",+ "@webstudio-is/scripts": "*","babel-loader": "^8.2.5","esbuild": "^0.14.25","esbuild-node-externals": "^1.4.1","react": "^17.0.2","react-dom": "^17.0.2","remix-utils": "^4.1.0",- "tsup": "^6.1.3","tsx": "^3.9.0","typescript": "4.7.4","zod": "^3.19.1"@@ -57,12 +55,12 @@"zod": "^3.19.1"},"dependencies": {- "detect-font": "^0.1.5","@webstudio-is/asset-uploader": "^*","@webstudio-is/css-data": "*","@webstudio-is/icons": "*","@webstudio-is/image": "*","@webstudio-is/prisma-client": "*",+ "detect-font": "^0.1.5","immer": "^9.0.12","mitt": "^3.0.0","react-nano-state": "^0.4.0",@@ -80,12 +78,5 @@],"license": "MIT","private": false,- "sideEffects": false,- "tsup": {- "entry": [- "src/index.ts"- ],- "format": "esm",- "outDir": "lib"- }+ "sideEffects": false}diff --git a/packages/scripts/build-package.ts b/packages/scripts/build-package.tsnew file mode 100755index 0000000000..9790583379--- /dev/null+++ b/packages/scripts/build-package.ts@@ -0,0 +1,62 @@+#!/usr/bin/env tsx++import { rm, cp } from "node:fs/promises";+import { join } from "node:path";+import { totalist } from "totalist";+import { build } from "esbuild";++const args = process.argv.slice(2);+const watch = args.includes("--watch");++const entryPoints: string[] = [];+const assets: string[] = [];++await totalist("./src", (rel) => {+ if (rel.endsWith(".ts") || rel.endsWith(".tsx")) {+ if (rel.includes(".test.") || rel.includes(".stories.")) {+ return;+ }+ entryPoints.push(join("src", rel));+ }+ if (rel.endsWith(".json")) {+ assets.push(rel);+ }+});++await rm("lib", { recursive: true, force: true });++await build({+ entryPoints,+ outdir: "lib",+ format: "esm",+ watch: watch && {+ onRebuild(error) {+ if (error) {+ console.error("watch build failed:", error);+ } else {+ console.info("watch build succeeded");+ }+ },+ },+});++await build({+ entryPoints,+ outdir: "lib/cjs",+ format: "cjs",+ outExtension: {+ ".js": ".cjs",+ },+ watch,+});++for (const rel of assets) {+ await cp(join("src", rel), join("lib", rel));+ await cp(join("src", rel), join("lib/cjs", rel));+}++if (watch) {+ console.info("watching...");+} else {+ console.info("build succeeded");+}diff --git a/packages/scripts/package.json b/packages/scripts/package.jsonnew file mode 100644index 0000000000..a4fc7a54bc--- /dev/null+++ b/packages/scripts/package.json@@ -0,0 +1,24 @@+{+ "name": "@webstudio-is/scripts",+ "private": true,+ "version": "0.0.0",+ "description": "Command line util for building packages fast",+ "author": "Webstudio <[email protected]>",+ "homepage": "https://webstudio.is",+ "license": "MIT",+ "type": "module",+ "bin": {+ "build-package": "./build-package.ts"+ },+ "scripts": {+ "checks": "tsc --noEmit"+ },+ "dependencies": {+ "esbuild": "^0.15.15",+ "totalist": "^3.0.0",+ "tsx": "^3.12.1"+ },+ "devDependencies": {+ "typescript": "4.7.4"+ }+}diff --git a/packages/scripts/tsconfig.json b/packages/scripts/tsconfig.jsonnew file mode 100644index 0000000000..6f6db45114--- /dev/null+++ b/packages/scripts/tsconfig.json@@ -0,0 +1,7 @@+{+ "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",+ "compilerOptions": {+ "module": "ES2022",+ "target": "ES2022"+ }+}diff --git a/yarn.lock b/yarn.lockindex 3e1dccef61..6c73c46bfa 100644--- a/yarn.lock+++ b/yarn.lock@@ -2143,29 +2143,29 @@dependencies:"@edge-runtime/primitives" "^1.0.1"-"@esbuild-kit/cjs-loader@^2.3.3":- version "2.3.3"- resolved "https://registry.yarnpkg.com/@esbuild-kit/cjs-loader/-/cjs-loader-2.3.3.tgz#d65a8cc099d88ac58a571403428d82d1a791aefa"- integrity sha512-Rt4O1mXlPEDVxvjsHLgbtHVdUXYK9C1/6ThpQnt7FaXIjUOsI6qhHYMgALhNnlIMZffag44lXd6Dqgx3xALbpQ==+"@esbuild-kit/cjs-loader@^2.4.0":+ version "2.4.1"+ resolved "https://registry.yarnpkg.com/@esbuild-kit/cjs-loader/-/cjs-loader-2.4.1.tgz#5c1183ac3906223f0da3bb4ff5b74d0f0b13c326"+ integrity sha512-lhc/XLith28QdW0HpHZvZKkorWgmCNT7sVelMHDj3HFdTfdqkwEKvT+aXVQtNAmCC39VJhunDkWhONWB7335mg==dependencies:- "@esbuild-kit/core-utils" "^2.1.0"- get-tsconfig "^4.1.0"+ "@esbuild-kit/core-utils" "^3.0.0"+ get-tsconfig "^4.2.0"-"@esbuild-kit/core-utils@^2.1.0":- version "2.3.0"- resolved "https://registry.yarnpkg.com/@esbuild-kit/core-utils/-/core-utils-2.3.0.tgz#b1e979fb19d23c71cf8815e3bcd0e792d9c9049d"- integrity sha512-JL73zt/LN/qqziHuod4/bM2xBNNofDZu1cbwT6KIn6B11lA4cgDXkoSHOfNCbZMZOnh0Aqf0vW/gNQC+Z18hKQ==+"@esbuild-kit/core-utils@^3.0.0":+ version "3.0.0"+ resolved "https://registry.yarnpkg.com/@esbuild-kit/core-utils/-/core-utils-3.0.0.tgz#e0f8463a32b4a9c9b456a7f9c31a5e038c8d2c19"+ integrity sha512-TXmwH9EFS3DC2sI2YJWJBgHGhlteK0Xyu1VabwetMULfm3oYhbrsWV5yaSr2NTWZIgDGVLHbRf0inxbjXqAcmQ==dependencies:- esbuild "~0.15.4"+ esbuild "~0.15.10"source-map-support "^0.5.21"-"@esbuild-kit/esm-loader@^2.4.2":- version "2.4.2"- resolved "https://registry.yarnpkg.com/@esbuild-kit/esm-loader/-/esm-loader-2.4.2.tgz#b358112c6592f422cc43c0439396537481518412"- integrity sha512-N9dPKAj8WOx6djVnStgILWXip4fjDcBk9L7azO0/uQDpu8Ee0eaL78mkN4Acid9BzvNAKWwdYXFJZnsVahNEew==+"@esbuild-kit/esm-loader@^2.4.2", "@esbuild-kit/esm-loader@^2.5.0":+ version "2.5.1"+ resolved "https://registry.yarnpkg.com/@esbuild-kit/esm-loader/-/esm-loader-2.5.1.tgz#1dde5a1ec8fdc1f0c2220ab304f831b7cb6b6558"+ integrity sha512-UfG/KLaNGR48+C9e8cDrRowhN9u+d/aCKpnA3E3Zyevup76fIpKmzm8DWeNG40CbEN8ZN8HaEs+o63pRQrZ+Fw==dependencies:- "@esbuild-kit/core-utils" "^2.1.0"- get-tsconfig "^4.1.0"+ "@esbuild-kit/core-utils" "^3.0.0"+ get-tsconfig "^4.2.0""@esbuild-plugins/node-modules-polyfill@^0.1.4":version "0.1.4"@@ -9065,7 +9065,7 @@ [email protected]:resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.13.tgz#4ffd01b6b2888603f1584a2fe96b1f6a6f2b3dd8"integrity sha512-3bv7tqntThQC9SWLRouMDmZnlOukBhOCTlkzNqzGCmrkCJI7io5LLjwJBOVY6kOUlIvdxbooNZwjtBvj+7uuVg==[email protected], [email protected], [email protected], esbuild@^0.14.25, esbuild@^0.15.9, esbuild@~0.15.4:[email protected], [email protected], [email protected], esbuild@^0.14.25, esbuild@^0.15.15, esbuild@^0.15.9, esbuild@~0.15.10:version "0.15.13"resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.15.13.tgz#7293480038feb2bafa91d3f6a20edab3ba6c108a"integrity sha512-Cu3SC84oyzzhrK/YyN4iEVy2jZu5t2fz66HEOShHURcjSkOSAVL8C/gfUT+lDJxkVHpg8GZ10DD0rMHRPqMFaQ==@@ -10246,7 +10246,7 @@ get-symbol-description@^1.0.0:call-bind "^1.0.2"get-intrinsic "^1.1.1"-get-tsconfig@^4.1.0:+get-tsconfig@^4.2.0:version "4.2.0"resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.2.0.tgz#ff368dd7104dab47bf923404eb93838245c66543"integrity sha512-X8u8fREiYOE6S8hLbq99PeykTDoLVnxvF4DjWKJmz9xy2nNRdUcV8ZN9tniJFeKyTU3qnC9lL8n4Chd6LmVKHg==@@ -17199,6 +17199,11 @@ toml@^3.0.0:resolved "https://registry.yarnpkg.com/toml/-/toml-3.0.0.tgz#342160f1af1904ec9d204d03a5d61222d762c5ee"integrity sha512-y/mWCZinnvxjTKYhJ+pYxwD0mRLVvOtdS2Awbgxln6iEnt4rk0yBxeSBHkGJcPucRiG0e55mwWp+g/05rsrd6w==+totalist@^3.0.0:+ version "3.0.0"+ resolved "https://registry.yarnpkg.com/totalist/-/totalist-3.0.0.tgz#4ef9c58c5f095255cdc3ff2a0a55091c57a3a1bd"+ integrity sha512-eM+pCBxXO/njtF7vdFsHuqb+ElbxqtI4r5EAvk6grfAFyJ6IvWlSkfZ5T9ozC6xWw3Fj1fGoSmrl0gUs46JVIw==+tr46@^1.0.1:version "1.0.1"resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09"@@ -17336,14 +17341,14 @@ tsutils@^3.21.0:dependencies:tslib "^1.8.1"-tsx@^3.9.0:- version "3.9.0"- resolved "https://registry.yarnpkg.com/tsx/-/tsx-3.9.0.tgz#315738e2fa19dc5f2efd05517ed8fd3a52461acb"- integrity sha512-ofxsE+qjqCYYq4UBt5khglvb+ESgxef1YpuNcdQI92kvcAT2tZVrnSK3g4bRXTUhLmKHcC5q8vIZA47os/stng==+tsx@^3.12.1, tsx@^3.9.0:+ version "3.12.1"+ resolved "https://registry.yarnpkg.com/tsx/-/tsx-3.12.1.tgz#d07532004c573bfea50a4ac687aa7270b3e34277"+ integrity sha512-Rcg1x+rNe7qwlP8j7kx4VjP/pJo/V57k+17hlrn6a7FuQLNwkaw5W4JF75tYornNVCxkXdSUnqlIT8JY/ttvIw==dependencies:- "@esbuild-kit/cjs-loader" "^2.3.3"- "@esbuild-kit/core-utils" "^2.1.0"- "@esbuild-kit/esm-loader" "^2.4.2"+ "@esbuild-kit/cjs-loader" "^2.4.0"+ "@esbuild-kit/core-utils" "^3.0.0"+ "@esbuild-kit/esm-loader" "^2.5.0"optionalDependencies:fsevents "~2.3.2"