Skip to content

Commit

Permalink
Just using script.Parent for _managed location now
Browse files Browse the repository at this point in the history
  • Loading branch information
Vorlias committed Jan 26, 2021
1 parent 0cf630d commit 0da3379
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/internal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,9 @@ export function findOrCreateFolder(parent: Instance, name: string): Folder {
}
}

const dist = $env<"TS" | "Luau" | "TestTS">("TYPE", "TS");
let location: Instance;
if (dist === "TS") {
location = script.Parent!.Parent!;
} else {
location = script.Parent!;
}
// const dist = $env<"TS" | "Luau" | "TestTS">("TYPE", "TS");
const location = script.Parent!;

$ifEnv("NODE_ENV", "development", () => {
print("[rbx-net-dev] Set dist location to ", location.GetFullName());
});
Expand Down

0 comments on commit 0da3379

Please sign in to comment.