@netlify/build-info 6.1.4 → 6.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/lib/detect-build-system.js +29 -20
- package/package.json +3 -3
|
@@ -18,10 +18,10 @@ const BUILD_SYSTEMS = {
|
|
|
18
18
|
if (nxConfigPath) {
|
|
19
19
|
const pkgJson = getPkgJson(nxConfigPath);
|
|
20
20
|
const { devDependencies } = pkgJson;
|
|
21
|
-
return
|
|
21
|
+
return {
|
|
22
22
|
name: 'nx',
|
|
23
23
|
version: devDependencies?.nx,
|
|
24
|
-
}
|
|
24
|
+
};
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
lerna: async (baseDir, rootDir) => {
|
|
@@ -30,10 +30,10 @@ const BUILD_SYSTEMS = {
|
|
|
30
30
|
if (lernaConfigPath) {
|
|
31
31
|
const pkgJson = getPkgJson(lernaConfigPath);
|
|
32
32
|
const { devDependencies } = pkgJson;
|
|
33
|
-
return
|
|
33
|
+
return {
|
|
34
34
|
name: 'lerna',
|
|
35
35
|
version: devDependencies?.lerna,
|
|
36
|
-
}
|
|
36
|
+
};
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
turbo: async (baseDir, rootDir) => {
|
|
@@ -42,10 +42,10 @@ const BUILD_SYSTEMS = {
|
|
|
42
42
|
if (turboConfigPath) {
|
|
43
43
|
const pkgJson = getPkgJson(turboConfigPath);
|
|
44
44
|
const { devDependencies } = pkgJson;
|
|
45
|
-
return
|
|
45
|
+
return {
|
|
46
46
|
name: 'turbo',
|
|
47
47
|
version: devDependencies?.turbo,
|
|
48
|
-
}
|
|
48
|
+
};
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
rush: async (baseDir, rootDir) => {
|
|
@@ -54,10 +54,10 @@ const BUILD_SYSTEMS = {
|
|
|
54
54
|
if (rushConfigPath) {
|
|
55
55
|
const pkgJson = getPkgJson(rushConfigPath);
|
|
56
56
|
const { devDependencies } = pkgJson;
|
|
57
|
-
return
|
|
57
|
+
return {
|
|
58
58
|
name: 'rush',
|
|
59
59
|
version: devDependencies?.rush,
|
|
60
|
-
}
|
|
60
|
+
};
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
lage: async (baseDir, rootDir) => {
|
|
@@ -66,46 +66,55 @@ const BUILD_SYSTEMS = {
|
|
|
66
66
|
if (lageConfigPath) {
|
|
67
67
|
const pkgJson = getPkgJson(lageConfigPath);
|
|
68
68
|
const { devDependencies } = pkgJson;
|
|
69
|
-
return
|
|
69
|
+
return {
|
|
70
70
|
name: 'lage',
|
|
71
71
|
version: devDependencies?.lage,
|
|
72
|
-
}
|
|
72
|
+
};
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
pants: async (baseDir, rootDir) => {
|
|
76
76
|
const pants = ['pants.toml'];
|
|
77
77
|
const pantsConfigPath = lookFor(pants, baseDir, rootDir);
|
|
78
78
|
if (pantsConfigPath) {
|
|
79
|
-
return
|
|
79
|
+
return {
|
|
80
80
|
name: 'pants',
|
|
81
|
-
}
|
|
81
|
+
};
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
buck: async (baseDir, rootDir) => {
|
|
85
85
|
const buck = ['.buckconfig', 'BUCK'];
|
|
86
86
|
const buckConfigPath = lookFor(buck, baseDir, rootDir);
|
|
87
87
|
if (buckConfigPath) {
|
|
88
|
-
return
|
|
88
|
+
return {
|
|
89
89
|
name: 'buck',
|
|
90
|
-
}
|
|
90
|
+
};
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
gradle: async (baseDir, rootDir) => {
|
|
94
94
|
const gradle = ['build.gradle'];
|
|
95
95
|
const gradleConfigPath = lookFor(gradle, baseDir, rootDir);
|
|
96
96
|
if (gradleConfigPath) {
|
|
97
|
-
return
|
|
97
|
+
return {
|
|
98
98
|
name: 'gradle',
|
|
99
|
-
}
|
|
99
|
+
};
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
bazel: async (baseDir, rootDir) => {
|
|
103
103
|
const bazel = ['.bazelrc', 'WORKSPACE', 'WORKSPACE.bazel', 'BUILD.bazel'];
|
|
104
104
|
const bazelConfigPath = lookFor(bazel, baseDir, rootDir);
|
|
105
105
|
if (bazelConfigPath) {
|
|
106
|
-
return
|
|
106
|
+
return {
|
|
107
107
|
name: 'bazel',
|
|
108
|
-
}
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
nix: async (baseDir, rootDir) => {
|
|
112
|
+
const nix = ['default.nix', 'shell.nix', 'release.nix'];
|
|
113
|
+
const nixConfigPath = lookFor(nix, baseDir, rootDir);
|
|
114
|
+
if (nixConfigPath) {
|
|
115
|
+
return {
|
|
116
|
+
name: 'nix',
|
|
117
|
+
};
|
|
109
118
|
}
|
|
110
119
|
},
|
|
111
120
|
moon: async (baseDir, rootDir) => {
|
|
@@ -114,10 +123,10 @@ const BUILD_SYSTEMS = {
|
|
|
114
123
|
if (moonConfigPath) {
|
|
115
124
|
const pkgJson = getPkgJson(moonConfigPath);
|
|
116
125
|
const { devDependencies } = pkgJson;
|
|
117
|
-
return
|
|
126
|
+
return {
|
|
118
127
|
name: 'moon',
|
|
119
128
|
version: devDependencies?.moon,
|
|
120
|
-
}
|
|
129
|
+
};
|
|
121
130
|
}
|
|
122
131
|
},
|
|
123
132
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build-info",
|
|
3
|
-
"version": "6.1
|
|
3
|
+
"version": "6.2.1",
|
|
4
4
|
"description": "Build info utility",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"author": "Netlify Inc.",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@netlify/framework-info": "^9.7.
|
|
37
|
+
"@netlify/framework-info": "^9.7.2",
|
|
38
38
|
"@npmcli/map-workspaces": "^2.0.0",
|
|
39
39
|
"find-up": "^6.3.0",
|
|
40
40
|
"read-pkg": "^7.1.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": "^14.16.0 || >=16.0.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "356667c6173362b294f9037efdb7b5ef1c726d48"
|
|
60
60
|
}
|