@annexfour/cli 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/bin/index.js +2 -2
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -57,6 +57,8 @@ program
57
57
  .option('-t, --token <token>', 'API Token (overrides config)')
58
58
  .option('-p, --project-name <name>', 'Project Name')
59
59
  .action(async (targetPath, options) => {
60
+ const scanPath = targetPath ? path.resolve(targetPath) : process.cwd();
61
+
60
62
  // 1. Check for Docker
61
63
  try {
62
64
  await new Promise((resolve, reject) => {
@@ -99,8 +101,6 @@ program
99
101
  finalProjectName = projectAnswer.name;
100
102
  }
101
103
 
102
- const scanPath = targetPath ? path.resolve(targetPath) : process.cwd();
103
-
104
104
  // Construct Docker arguments
105
105
  const dockerArgs = [
106
106
  'run', '--rm', '-i',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annexfour/cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "AnnexFour Compliance Scanner CLI Wrapper",
5
5
  "main": "bin/index.js",
6
6
  "bin": {