diff --git a/package.json b/package.json index effb797c82..6a94bb936a 100644 --- a/package.json +++ b/package.json @@ -4,18 +4,24 @@ "version": "0.1.0", "main": "index.js", "scripts": { - "web-sdk:dev": "pnpm exec nx dev web-sdk", - "web-sdk:build": "pnpm exec nx build web-sdk", - "web-sdk:example": "pnpm exec nx example web-sdk", - "web-sdk:format": "pnpm exec nx format web-sdk", - "web-sdk:lint": "pnpm exec nx lint web-sdk", - "web-sdk:lint:fix": "pnpm exec nx lint:fix web-sdk", - "format": "pnpm exec nx run-many --target=format", - "lint": "pnpm exec nx run-many --target=lint", - "lint:fix": "pnpm exec nx run-many --target=lint:fix", - "start:backoffice:dev": "echo \"Error: no test specified\" && exit 1", - "start:workflow-builder:dev": "echo \"Error: no test specified\" && exit 1", - "start:web-ui:dev": "echo \"Error: no test specified\" && exit 1", + "format": "nx affected --target=format", + "lint": "nx affected --target=lint", + "lint:fix": "nx affected --target=lint:fix", + "test": "nx affected --target=test", + "test:e2e": "nx affected --target=test:e2e", + "dev": "nx run-many --target=dev --projects=web-sdk", + "start": "nx run-many --target=start --projects=web-sdk", + "build": "nx affected --target=build", + "web-sdk:dev": "nx run web-sdk:dev", + "web-sdk:start": "nx run web-sdk:start", + "web-sdk:build": "nx run web-sdk:build", + "web-sdk:example": "nx run web-sdk:example", + "web-sdk:lint": "nx run web-sdk:lint", + "web-sdk:lint:fix": "nx run web-sdk:lint:fix", + "web-sdk:format": "nx run web-sdk:format", + "backoffice:dev": "echo \"Error: no test specified\" && exit 1", + "workflow-builder:dev": "echo \"Error: no test specified\" && exit 1", + "web-ui:dev": "echo \"Error: no test specified\" && exit 1", "commit": "git add . && git-cz", "prepare": "husky install", "changeset": "changeset", diff --git a/sdks/web-sdk/package.json b/sdks/web-sdk/package.json index b150c97a7a..99ad9692eb 100644 --- a/sdks/web-sdk/package.json +++ b/sdks/web-sdk/package.json @@ -39,7 +39,9 @@ "build": "vite build", "commit": "git add . && git-cz", "deprecated:build:sdk": "rollup --config", - "preview": "vite preview", + "start": "vite preview", + "test": "echo \"Not yet implemented\"", + "test:e2e": "echo \"Not yet implemented\"", "check": "svelte-check --tsconfig ./tsconfig.json", "format": "prettier --write \"./src/**/*.{js,svelte,html,ts}\"", "lint": "eslint \"./src/**/*.{js,ts,svelte}\"", diff --git a/sdks/web-sdk/src/main.ts b/sdks/web-sdk/src/main.ts index 06673701ad..56b073e856 100644 --- a/sdks/web-sdk/src/main.ts +++ b/sdks/web-sdk/src/main.ts @@ -1,4 +1,5 @@ import ConfigurationProvider from './ConfigurationProvider.svelte'; +import { BallerineSDK } from './types/BallerineSDK'; import { setFlowCallbacks, updateConfiguration,