Skip to content

Scheduling infrastructure for absolutely everyone.

2.8 KB
Raw Blame
{
  "name": "@calcom/embed-core",
  "version": "1.5.3",
  "description": "This is the vanilla JS core script that embeds Cal Link",
  "main": "./dist/embed/embed.js",
  "types": "./dist/index.d.ts",
  "license": "SEE LICENSE IN LICENSE",
  "repository": {
    "type": "git",
    "url": "https://github.com/calcom/cal.diy",
    "directory": "packages/embeds/embed-core"
  },
  "scripts": {
    "embed-dev": "yarn workspace @calcom/embed-core dev",
    "embed-web-start": "yarn workspace @calcom/web start",
    "__build": "yarn tailwind && vite build && tsc --emitDeclarationOnly --declarationDir dist && npx shx cp -r ../../../apps/web/public/embed ./dist/",
    "__dev": "yarn tailwind && vite build --mode development",
    "build": "npx rimraf dist && NEXT_PUBLIC_EMBED_FINGER_PRINT=$(git rev-parse --short HEAD) NEXT_PUBLIC_EMBED_VERSION=$(node -p 'require(\"./package.json\").version') yarn __build",
    "build-preview": "PREVIEW_BUILD=1 yarn __build ",
    "vite": "vite",
    "tailwind": "tailwindcss --input ./src/styles.css --output ./src/tailwind.generated.css",
    "buildWatchAndServer": "run-p '__dev' 'vite --port 3100 --strict-port --host --open'",
    "buildWatchAndServer-https": "run-p '__dev' 'vite --port 3100 --strict-port --host --open --https'",
    "dev": "yarn tailwind && run-p 'tailwind --watch' 'buildWatchAndServer'",
    "buildWatchAndServer-no-auto-open": "run-p '__dev' 'vite --port 3100 --strict-port --host'",
    "dev-no-open": "yarn tailwind && run-p 'tailwind --watch' 'buildWatchAndServer-no-auto-open'",
    "dev-https": "yarn tailwind && run-p 'tailwind --watch' 'buildWatchAndServer-https'",
    "dev-real": "vite dev --port 3100",
    "type-check": "tsc --pretty --noEmit",
    "type-check:ci": "tsc-absolute --pretty --noEmit",
    "lint": "biome lint src",
    "lint:fix": "biome lint --write src",
    "embed-tests": "yarn playwright test --config=playwright/config/playwright.config.ts",
    "embed-tests-quick": "QUICK=true yarn embed-tests",
    "embed-tests-update-snapshots:ci": "yarn embed-tests-quick --update-snapshots",
    "withEmbedPublishEnv": "NEXT_PUBLIC_EMBED_LIB_URL='https://app.cal.com/embed/embed.js' NEXT_PUBLIC_WEBAPP_URL='https://app.cal.com' yarn",
    "prepack": "yarn ../../../ lint --filter='@calcom/embed-core' && yarn withEmbedPublishEnv build",
    "clean": "npx rimraf .turbo node_modules ../../../apps/web/public/embed"
  },
  "files": [
    "dist"
  ],
  "devDependencies": {
    "@biomejs/biome": "2.3.10",
    "@playwright/test": "1.57.0",
    "@tailwindcss/cli": "4.1.16",
    "@tailwindcss/postcss": "4.1.15",
    "@vitejs/plugin-basic-ssl": "2.1.0",
    "autoprefixer": "10.4.19",
    "npm-run-all": "4.1.5",
    "postcss": "8.5.6",
    "tailwindcss": "4.1.17",
    "typescript": "5.9.3",
    "vite": "6.4.2",
    "vite-plugin-environment": "1.1.3"
  }
}