@ai-qa/workflow 2.0.6 → 2.0.7
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 +5 -14
- package/install.js +1 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
const path = require("path");
|
|
3
|
-
const os = require("os");
|
|
1
|
+
#!/usr/bin/env node
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
const tmpDir = path.join(os.tmpdir(), "ai-qa-workflow-latest");
|
|
3
|
+
const path = require('path');
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
`npx --yes @ai-qa/workflow@latest --extract-template ${tmpDir}`,
|
|
12
|
-
{ stdio: "inherit" }
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
return tmpDir;
|
|
16
|
-
}
|
|
5
|
+
// Forward to install.js with --self flag so it installs into cwd
|
|
6
|
+
process.argv.push('--self');
|
|
7
|
+
require(path.join(__dirname, 'install.js'));
|
package/install.js
CHANGED
|
@@ -4,7 +4,7 @@ const fs = require('fs');
|
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const { execSync } = require('child_process');
|
|
6
6
|
|
|
7
|
-
const TEMPLATE_DIR =
|
|
7
|
+
const TEMPLATE_DIR = __dirname;
|
|
8
8
|
const YES = process.argv.includes('--yes') || process.argv.includes('-y');
|
|
9
9
|
const IS_UPDATE = process.argv.includes('--update') || process.argv.includes('-u');
|
|
10
10
|
const IS_SELF = process.argv.includes('--self') || process.argv.includes('-s');
|
package/package.json
CHANGED