@prodcycle/prodcycle 0.2.0 → 0.2.1
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/dist/utils/fs.js +25 -2
- package/package.json +3 -3
package/dist/utils/fs.js
CHANGED
|
@@ -38,11 +38,34 @@ const fs = __importStar(require("fs"));
|
|
|
38
38
|
const path = __importStar(require("path"));
|
|
39
39
|
const glob_1 = require("glob");
|
|
40
40
|
const MAX_FILE_SIZE = 256 * 1024; // 256 KB
|
|
41
|
-
const MAX_TOTAL_FILES =
|
|
41
|
+
const MAX_TOTAL_FILES = 10_000;
|
|
42
42
|
async function collectFiles(baseDir, includePatterns, excludePatterns) {
|
|
43
43
|
// Simple implementation using glob
|
|
44
44
|
const patterns = includePatterns && includePatterns.length > 0 ? includePatterns : ['**/*'];
|
|
45
|
-
const ignore = [
|
|
45
|
+
const ignore = [
|
|
46
|
+
'node_modules/**',
|
|
47
|
+
'.git/**',
|
|
48
|
+
'.terraform/**',
|
|
49
|
+
'dist/**',
|
|
50
|
+
'build/**',
|
|
51
|
+
'**/__pycache__/**',
|
|
52
|
+
'.next/**',
|
|
53
|
+
'.nuxt/**',
|
|
54
|
+
'vendor/**',
|
|
55
|
+
'coverage/**',
|
|
56
|
+
'.venv/**',
|
|
57
|
+
'venv/**',
|
|
58
|
+
'.tox/**',
|
|
59
|
+
'target/**',
|
|
60
|
+
'*.lock',
|
|
61
|
+
'package-lock.json',
|
|
62
|
+
'*.min.js',
|
|
63
|
+
'*.min.css',
|
|
64
|
+
'*.map',
|
|
65
|
+
'*.bundle.js',
|
|
66
|
+
'*.tfstate',
|
|
67
|
+
'*.tfstate.backup',
|
|
68
|
+
];
|
|
46
69
|
if (excludePatterns && excludePatterns.length > 0) {
|
|
47
70
|
ignore.push(...excludePatterns);
|
|
48
71
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prodcycle/prodcycle",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Multi-framework policy-as-code compliance scanner for infrastructure and application code.",
|
|
5
5
|
"homepage": "https://docs.prodcycle.com",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/prodcycle/
|
|
8
|
+
"url": "git+https://github.com/prodcycle/cli.git"
|
|
9
9
|
},
|
|
10
10
|
"bugs": {
|
|
11
|
-
"url": "https://github.com/prodcycle/
|
|
11
|
+
"url": "https://github.com/prodcycle/cli/issues"
|
|
12
12
|
},
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "dist/index.d.ts",
|