From 5de68dc84be0e660efb1902a6407da129ccd3767 Mon Sep 17 00:00:00 2001 From: arturvoloshyn Date: Fri, 8 Mar 2024 23:34:25 +0200 Subject: [PATCH] chore(content-schema): change absolute paths to relative for schemas --- content-schema/example/courses/test-course-1/course.yaml | 2 +- .../example/courses/test-course-1/lessons/lesson-1/lesson.yaml | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content-schema/example/courses/test-course-1/course.yaml b/content-schema/example/courses/test-course-1/course.yaml index 8e7aa49..391ae90 100644 --- a/content-schema/example/courses/test-course-1/course.yaml +++ b/content-schema/example/courses/test-course-1/course.yaml @@ -1,4 +1,4 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/ArturW1998/course-app/main/content-schema/schemas/course.schema.json +# yaml-language-server: $schema=../../../schemas/course.schema.json id: "{cuid}" thumbnail: "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/React-icon.svg/2300px-React-icon.svg.png" diff --git a/content-schema/example/courses/test-course-1/lessons/lesson-1/lesson.yaml b/content-schema/example/courses/test-course-1/lessons/lesson-1/lesson.yaml index eb800ad..17f93ea 100644 --- a/content-schema/example/courses/test-course-1/lessons/lesson-1/lesson.yaml +++ b/content-schema/example/courses/test-course-1/lessons/lesson-1/lesson.yaml @@ -1,4 +1,4 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/ArturW1998/course-app/main/content-schema/schemas/lesson.schema.json +# yaml-language-server: $schema=../../../../../schemas/lesson.schema.json id: "{cuid}" title: "Advanced Python Programming" blocks: diff --git a/package.json b/package.json index babb954..05f06ab 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "test": "jest", "prettier": "prettier -w .", "test:e2e": "npx prisma migrate reset --force && playwright test", - "upload-content-schema": "ts-node --project tsconfig.script.json ./scripts/upload-content-schema https://raw.githubusercontent.com/ArturW1998/course-app/main/content-schema/schemas/ ./src/shared/api/content/schemas", + "upload-content-schema": "ts-node --project tsconfig.script.json ./scripts/upload-content-schema ./content-schema/schemas/ ./src/shared/api/content/schemas", "dev:content-schema": "npm run dev --workspace=@core/content-schema" }, "prisma": {