Skip to content

Commit

Permalink
Renamed directory from "build" to "scripts" because IntelliJ now excl…
Browse files Browse the repository at this point in the history
…udes "build" subdirectories of node projects and there doesn't seem to be a way to resolve it.
  • Loading branch information
cowwoc committed Dec 6, 2024
1 parent d73319c commit 6ec2f00
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion build/TestCompiler.mts → scripts/TestCompiler.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/BooleanTest.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion test/SizeTest.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 6ec2f00

Please sign in to comment.