From bcf2db80051d3e2616d375e88c84b55f0c8c2e51 Mon Sep 17 00:00:00 2001 From: Stephen Lacy Date: Thu, 4 Apr 2024 10:43:42 -0400 Subject: [PATCH] chore(cleanup): improve dep paths (#7) --- deno.jsonc | 12 ++++++------ deno.lock | 1 + schema.json | 4 ++++ src/deps.ts | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/deno.jsonc b/deno.jsonc index f2f3a57..8126f08 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -5,12 +5,12 @@ "std/": "https://deno.land/std@0.204.0/" }, "tasks": { - "start": "deno run -A --unstable --watch=src src/index.ts", - "run": "deno run -A --unstable src/index.ts", - "compile-win": "deno compile --unstable -A --target x86_64-pc-windows-msvc --output build/runreal-win-x64 src/index.ts", - "compile-linux": "deno compile --unstable -A --target x86_64-unknown-linux-gnu --output build/runreal-linux-x64 src/index.ts", - "compile-macos": "deno compile --unstable -A --target aarch64-apple-darwin --output build/runreal-macos-arm src/index.ts", - "generate-schema": "deno run -A --unstable src/generate-schema.ts" + "start": "deno run -A --watch=src src/index.ts", + "run": "deno run -A src/index.ts", + "compile-win": "deno compile -A --target x86_64-pc-windows-msvc --output build/runreal-win-x64 src/index.ts", + "compile-linux": "deno compile -A --target x86_64-unknown-linux-gnu --output build/runreal-linux-x64 src/index.ts", + "compile-macos": "deno compile -A --target aarch64-apple-darwin --output build/runreal-macos-arm src/index.ts", + "generate-schema": "deno run -A src/generate-schema.ts" }, "lint": { "include": ["src/"], diff --git a/deno.lock b/deno.lock index f1dce5a..2b6894b 100644 --- a/deno.lock +++ b/deno.lock @@ -117,6 +117,7 @@ "https://deno.land/std@0.204.0/io/slice_long_to_bytes.ts": "bb8f82ac58779e72b0b012735014a89348594645a2d4838a95b89b66ddd08200", "https://deno.land/std@0.204.0/io/string_reader.ts": "fa67c001c2753a699a9bda4eb29abfa7c14a7ade09d31d601ad0bb09f1b869f8", "https://deno.land/std@0.204.0/io/string_writer.ts": "fd7dafd8e788aada5b4df92367a3f5fc7d0ce2daae6363ca8e317c4d1c40d8be", + "https://deno.land/std@0.204.0/jsonc/parse.ts": "c1096e2b7ffb4996d7ed841dfdb29a4fccc78edcc55299beaa20d6fe5facf7b6", "https://deno.land/std@0.204.0/path/_common/assert_path.ts": "061e4d093d4ba5aebceb2c4da3318bfe3289e868570e9d3a8e327d91c2958946", "https://deno.land/std@0.204.0/path/_common/basename.ts": "0d978ff818f339cd3b1d09dc914881f4d15617432ae519c1b8fdc09ff8d3789a", "https://deno.land/std@0.204.0/path/_common/common.ts": "9e4233b2eeb50f8b2ae10ecc2108f58583aea6fd3e8907827020282dc2b76143", diff --git a/schema.json b/schema.json index 19386ea..fc765c7 100644 --- a/schema.json +++ b/schema.json @@ -1,6 +1,10 @@ { "type": "object", "properties": { + "$schema": { + "type": "string", + "description": "Runreal JSON-Schema spec version" + }, "engine": { "type": "object", "properties": { diff --git a/src/deps.ts b/src/deps.ts index d4c3a45..5cb478c 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -2,6 +2,7 @@ export * as path from 'std/path/mod.ts' export { mergeReadableStreams } from 'std/streams/merge_readable_streams.ts' export * as fmt from 'std/fmt/colors.ts' export * as dotenv from 'std/dotenv/mod.ts' +export { parse } from 'std/jsonc/parse.ts' export { xml2js } from 'https://deno.land/x/xml2js@1.0.0/mod.ts' export { Command, EnumType, ValidationError } from 'https://deno.land/x/cliffy@v1.0.0-rc.3/command/mod.ts' @@ -13,6 +14,5 @@ const ulid = monotonicFactory() export { ulid } export { z } from 'https://deno.land/x/zod/mod.ts' -export { parse } from 'https://deno.land/std@0.221.0/jsonc/parse.ts' export { globber } from 'https://deno.land/x/globber@0.1.0/mod.ts' export { zodToJsonSchema } from 'npm:zod-to-json-schema'