diff --git a/actions-languageservice/src/context-providers/descriptions.ts b/actions-languageservice/src/context-providers/descriptions.ts index 766a442..1c607db 100644 --- a/actions-languageservice/src/context-providers/descriptions.ts +++ b/actions-languageservice/src/context-providers/descriptions.ts @@ -1,4 +1,4 @@ -import descriptions from "./descriptions.json"; +import descriptions from "./descriptions.json" assert { type: 'json' }; export const RootContext = "root"; diff --git a/actions-languageservice/src/context-providers/events/eventPayloads.ts b/actions-languageservice/src/context-providers/events/eventPayloads.ts index dcfeb69..2aa8b42 100644 --- a/actions-languageservice/src/context-providers/events/eventPayloads.ts +++ b/actions-languageservice/src/context-providers/events/eventPayloads.ts @@ -1,54 +1,54 @@ -import check_run from "./check_run.json"; -import check_suite from "./check_suite.json"; -import commit_comment from "./commit_comment.json"; -import content_reference from "./content_reference.json"; -import create from "./create.json"; -import deletePayload from "./delete.json"; -import deploy_key from "./deploy_key.json"; -import deployment from "./deployment.json"; -import deployment_status from "./deployment_status.json"; -import fork from "./fork.json"; -import github_app_authorization from "./github_app_authorization.json"; -import gollum from "./gollum.json"; -import installation from "./installation.json"; -import installation_repositories from "./installation_repositories.json"; -import issue_comment from "./issue_comment.json"; -import issues from "./issues.json"; -import label from "./label.json"; -import marketplace_purchase from "./marketplace_purchase.json"; -import member from "./member.json"; -import membership from "./membership.json"; -import merge_group from "./merge_group.json"; -import meta from "./meta.json"; -import milestone from "./milestone.json"; -import org_block from "./org_block.json"; -import organization from "./organization.json"; -import packagePayload from "./package_payload.json"; -import page_build from "./page_build.json"; -import ping from "./ping.json"; -import project from "./project.json"; -import project_card from "./project_card.json"; -import project_column from "./project_column.json"; -import publicPayload from "./public.json"; -import pull_request from "./pull_request.json"; -import pull_request_review from "./pull_request_review.json"; -import pull_request_review_comment from "./pull_request_review_comment.json"; -import push from "./push.json"; -import release from "./release.json"; -import repository from "./repository.json"; -import repository_dispatch from "./repository_dispatch.json"; -import repository_import from "./repository_import.json"; -import repository_vulnerability_alert from "./repository_vulnerability_alert.json"; -import schedule from "./schedule.json"; -import security_advisory from "./security_advisory.json"; -import sponsorship from "./sponsorship.json"; -import star from "./star.json"; -import status from "./status.json"; -import team from "./team.json"; -import team_add from "./team_add.json"; -import watch from "./watch.json"; -import workflow_dispatch from "./workflow_dispatch.json"; -import workflow_run from "./workflow_run.json"; +import check_run from "./check_run.json" assert { type: 'json' }; +import check_suite from "./check_suite.json" assert { type: 'json' }; +import commit_comment from "./commit_comment.json" assert { type: 'json' }; +import content_reference from "./content_reference.json" assert { type: 'json' }; +import create from "./create.json" assert { type: 'json' }; +import deletePayload from "./delete.json" assert { type: 'json' }; +import deploy_key from "./deploy_key.json" assert { type: 'json' }; +import deployment from "./deployment.json" assert { type: 'json' }; +import deployment_status from "./deployment_status.json" assert { type: 'json' }; +import fork from "./fork.json" assert { type: 'json' }; +import github_app_authorization from "./github_app_authorization.json" assert { type: 'json' }; +import gollum from "./gollum.json" assert { type: 'json' }; +import installation from "./installation.json" assert { type: 'json' }; +import installation_repositories from "./installation_repositories.json" assert { type: 'json' }; +import issue_comment from "./issue_comment.json" assert { type: 'json' }; +import issues from "./issues.json" assert { type: 'json' }; +import label from "./label.json" assert { type: 'json' }; +import marketplace_purchase from "./marketplace_purchase.json" assert { type: 'json' }; +import member from "./member.json" assert { type: 'json' }; +import membership from "./membership.json" assert { type: 'json' }; +import merge_group from "./merge_group.json" assert { type: 'json' }; +import meta from "./meta.json" assert { type: 'json' }; +import milestone from "./milestone.json" assert { type: 'json' }; +import org_block from "./org_block.json" assert { type: 'json' }; +import organization from "./organization.json" assert { type: 'json' }; +import packagePayload from "./package_payload.json" assert { type: 'json' }; +import page_build from "./page_build.json" assert { type: 'json' }; +import ping from "./ping.json" assert { type: 'json' }; +import project from "./project.json" assert { type: 'json' }; +import project_card from "./project_card.json" assert { type: 'json' }; +import project_column from "./project_column.json" assert { type: 'json' }; +import publicPayload from "./public.json" assert { type: 'json' }; +import pull_request from "./pull_request.json" assert { type: 'json' }; +import pull_request_review from "./pull_request_review.json" assert { type: 'json' }; +import pull_request_review_comment from "./pull_request_review_comment.json" assert { type: 'json' }; +import push from "./push.json" assert { type: 'json' }; +import release from "./release.json" assert { type: 'json' }; +import repository from "./repository.json" assert { type: 'json' }; +import repository_dispatch from "./repository_dispatch.json" assert { type: 'json' }; +import repository_import from "./repository_import.json" assert { type: 'json' }; +import repository_vulnerability_alert from "./repository_vulnerability_alert.json" assert { type: 'json' }; +import schedule from "./schedule.json" assert { type: 'json' }; +import security_advisory from "./security_advisory.json" assert { type: 'json' }; +import sponsorship from "./sponsorship.json" assert { type: 'json' }; +import star from "./star.json" assert { type: 'json' }; +import status from "./status.json" assert { type: 'json' }; +import team from "./team.json" assert { type: 'json' }; +import team_add from "./team_add.json" assert { type: 'json' }; +import watch from "./watch.json" assert { type: 'json' }; +import workflow_dispatch from "./workflow_dispatch.json" assert { type: 'json' }; +import workflow_run from "./workflow_run.json" assert { type: 'json' }; export const eventPayloads: {[key: string]: Object} = { check_run, diff --git a/actions-workflow-parser/src/workflows/workflow-schema.ts b/actions-workflow-parser/src/workflows/workflow-schema.ts index d2b7dc2..3bc77e2 100644 --- a/actions-workflow-parser/src/workflows/workflow-schema.ts +++ b/actions-workflow-parser/src/workflows/workflow-schema.ts @@ -1,6 +1,6 @@ import {JSONObjectReader} from "../templates/json-object-reader"; import {TemplateSchema} from "../templates/schema"; -import WorkflowSchema from "../workflow-v1.0.json"; +import WorkflowSchema from "../workflow-v1.0.json" assert { type: 'json' }; let schema: TemplateSchema;