diff --git a/package.json b/package.json index 5c8d65c..2c79c32 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "url": "https://github.com/cowwoc/requirements.js/" }, "scripts": { - "clean": "node node_modules/tsx/dist/cli.mjs build/Project.mts clean", - "build": "node node_modules/tsx/dist/cli.mjs --enable-source-maps build/Project.mts build" + "clean": "node node_modules/tsx/dist/cli.mjs scripts/Project.mts clean", + "build": "node node_modules/tsx/dist/cli.mjs --enable-source-maps scripts/Project.mts build" }, "browser": "browser/index.js", "module": "node/index.mjs", diff --git a/build/Project.mts b/scripts/Project.mts similarity index 100% rename from build/Project.mts rename to scripts/Project.mts diff --git a/build/TestCompiler.mts b/scripts/TestCompiler.mts similarity index 97% rename from build/TestCompiler.mts rename to scripts/TestCompiler.mts index f8fedad..99f4ef7 100644 --- a/build/TestCompiler.mts +++ b/scripts/TestCompiler.mts @@ -10,7 +10,7 @@ class TestCompiler private static readonly rootDir: string = path.resolve("."); // We have to include at least one existing file to avoid CompilerHost complaining that it couldn't find any // input files - private static readonly existingFileToSuppressError = "build/Project.mts"; + private static readonly existingFileToSuppressError = "scripts/Project.mts"; private static readonly snippetFilename = "test.mts"; private static readonly config = TestCompiler.createParsedCommandLine(); private static readonly defaultCompilerHost = ts.createCompilerHost(TestCompiler.config.options); diff --git a/test/BooleanTest.mts b/test/BooleanTest.mts index e2cfe56..fdecb99 100644 --- a/test/BooleanTest.mts +++ b/test/BooleanTest.mts @@ -9,7 +9,7 @@ import { Type, requireThatBoolean } from "../src/index.mjs"; -import {TestCompiler} from "../build/TestCompiler.mjs"; +import {TestCompiler} from "../scripts/TestCompiler.mjs"; import os from "os"; import {JavascriptValidatorsImpl} from "../src/internal/validator/JavascriptValidatorsImpl.mjs"; import {TestApplicationScope} from "./TestApplicationScope.mjs"; diff --git a/test/SizeTest.mts b/test/SizeTest.mts index 09d78a4..472df8f 100644 --- a/test/SizeTest.mts +++ b/test/SizeTest.mts @@ -7,7 +7,7 @@ import { TerminalEncoding, Configuration } from "../src/index.mjs"; -import {TestCompiler} from "../build/TestCompiler.mjs"; +import {TestCompiler} from "../scripts/TestCompiler.mjs"; import os from "os"; import {JavascriptValidatorsImpl} from "../src/internal/internal.mjs"; import {TestApplicationScope} from "./TestApplicationScope.mjs";