diff --git a/build.ts b/build.ts index 5b7b090..085e71b 100644 --- a/build.ts +++ b/build.ts @@ -1,7 +1,14 @@ import * as path from "jsr:@std/path@1.0.6"; import { type Lost, zip, Project, walk, bold, yellow, green, magenta, join, Logger, ErrorMessage, WarningMessage } from "./deps.ts"; -const __dirname = path.dirname(path.fromFileUrl(import.meta.url)); +let __dirname: string //= path.dirname(path.fromFileUrl(import.meta.url)); + +if (import.meta.url.startsWith('file:')) { + __dirname = path.fromFileUrl(import.meta.url); + } else { + // Обработка https: URL + __dirname = new URL(import.meta.url).pathname; + } const buildPath = `${Deno.cwd()}/Builds/Source`; const addonsCollectionPath = `${Deno.cwd()}/Builds`; diff --git a/deno.json b/deno.json index 58c8d4b..7de4f05 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@lost-c3/cli", - "version": "2.0.0", + "version": "2.0.1", "compilerOptions": { "noImplicitOverride": false, "emitDecoratorMetadata": true, @@ -15,6 +15,7 @@ }, "publish": { "exclude": [ + ".github", "tsconfig.json", ".gitignore", "lost.config.ts",