@homebound/truss 1.113.1 → 1.114.0
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/cli.js +3 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -5,8 +5,10 @@ const { register } = require("ts-node");
|
|
|
5
5
|
// Pass `module: commonjs` to handle vite projects that use `module: esnext`
|
|
6
6
|
register({ transpileOnly: true, compilerOptions: { module: "commonjs" } });
|
|
7
7
|
|
|
8
|
+
// Maybe get the custom filename (or path to filename)
|
|
9
|
+
const filename = process.argv[2] ?? "./truss-config.ts";
|
|
8
10
|
// Get the config from the root project directory
|
|
9
|
-
const configPath = require("path").join(process.cwd(),
|
|
11
|
+
const configPath = require("path").join(process.cwd(), filename);
|
|
10
12
|
const config = require(configPath).default;
|
|
11
13
|
|
|
12
14
|
const { generate } = require("./build/index.js");
|