Skip to content

Commit

Permalink
Trying to fix global install (2.0.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
dakln committed Oct 15, 2024
1 parent 4bcbc11 commit 24912d9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion build.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import * as path from "jsr:@std/[email protected]";
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`;
Expand Down
3 changes: 2 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lost-c3/cli",
"version": "2.0.0",
"version": "2.0.1",
"compilerOptions": {
"noImplicitOverride": false,
"emitDecoratorMetadata": true,
Expand All @@ -15,6 +15,7 @@
},
"publish": {
"exclude": [
".github",
"tsconfig.json",
".gitignore",
"lost.config.ts",
Expand Down

0 comments on commit 24912d9

Please sign in to comment.