rbxts-transformer-commit-migrations 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/index.js +5 -0
- package/package.json +1 -1
package/out/index.js
CHANGED
|
@@ -4,6 +4,11 @@ import loadMigrationEntries from "./util/loadMigrationEntries.js";
|
|
|
4
4
|
import { CONFIG } from "./config.js";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
6
6
|
export default function (_, config) {
|
|
7
|
+
const missingFile = config?.files?.find((f) => !existsSync(f));
|
|
8
|
+
if (missingFile !== undefined) {
|
|
9
|
+
console.error(`Migration file ${missingFile} does not exist`);
|
|
10
|
+
process.exit(1);
|
|
11
|
+
}
|
|
7
12
|
return (ctx) => {
|
|
8
13
|
const configPath = config?.configPath ?? CONFIG;
|
|
9
14
|
if (!existsSync(configPath)) {
|