From 0656a0a619c0461c853ec4d08a46d95e1d6867ad Mon Sep 17 00:00:00 2001 From: Rishi Raj Jain Date: Tue, 8 Aug 2023 16:58:50 +0530 Subject: [PATCH] fix(frontend): angular example --- frontend/examples/angular/tsconfig.json | 12 +++++++----- frontend/package.json | 1 + frontend/turbo.json | 4 ++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/frontend/examples/angular/tsconfig.json b/frontend/examples/angular/tsconfig.json index 589cd18b5..7fdb44185 100644 --- a/frontend/examples/angular/tsconfig.json +++ b/frontend/examples/angular/tsconfig.json @@ -17,11 +17,13 @@ "moduleResolution": "node", "importHelpers": true, "target": "ES2022", - "module": "es2020", - "lib": [ - "es2020", - "dom" - ] + "module": "ES2022", + "useDefineForClassFields": false, + "lib": ["ES2022", "dom"], + "skipLibCheck": true, + "paths": { + "@angular/*": ["../../node_modules/@angular/*"] + } }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, diff --git a/frontend/package.json b/frontend/package.json index 806472881..3865a026f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,6 +11,7 @@ "build": "turbo run build", "lint": "turbo run lint", "test": "turbo run test", + "start": "turbo run start", "build:elements": "turbo build --filter=./frontend-sdk --filter=./elements", "build:elements:dev": "turbo build:dev --filter=./elements" }, diff --git a/frontend/turbo.json b/frontend/turbo.json index 3c36cf7ea..5291a2e24 100644 --- a/frontend/turbo.json +++ b/frontend/turbo.json @@ -9,6 +9,10 @@ "dependsOn": ["^build"], "outputs": ["dist/**"] }, + "start": { + "dependsOn": ["^build"], + "outputs": ["dist/**"] + }, "test": { "dependsOn": ["build"], "inputs": ["src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"]