vanta-api 1.0.1 → 1.0.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.
|
@@ -4,7 +4,7 @@ import { join } from 'path';
|
|
|
4
4
|
|
|
5
5
|
// Define the target path for the security-config file.
|
|
6
6
|
// This example creates it in the current working directory.
|
|
7
|
-
const configPath = join(process.cwd(), 'security-config.js');
|
|
7
|
+
const configPath = join(process.env.INIT_CWD || process.cwd(), 'security-config.js');
|
|
8
8
|
|
|
9
9
|
// If the file does not exist, create it with default content.
|
|
10
10
|
if (!existsSync(configPath)) {
|