create-powerapps-project 0.15.1 → 0.15.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.
- package/CHANGELOG.json +16 -1
- package/CHANGELOG.md +12 -4
- package/lib/getEnvInfo.js +1 -5
- package/lib/packageManager.js +0 -10
- package/package.json +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "create-powerapps-project",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Sun, 16 Jan 2022 22:
|
|
5
|
+
"date": "Sun, 16 Jan 2022 22:28:23 GMT",
|
|
6
|
+
"tag": "create-powerapps-project_v0.15.2",
|
|
7
|
+
"version": "0.15.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "derek.finlinson@journeyteam.com",
|
|
12
|
+
"package": "create-powerapps-project",
|
|
13
|
+
"commit": "10bfc68da12fdaf50dfd2a0f1b8d11406d578cbf",
|
|
14
|
+
"comment": "Remove pnpm"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Sun, 16 Jan 2022 22:08:05 GMT",
|
|
6
21
|
"tag": "create-powerapps-project_v0.15.1",
|
|
7
22
|
"version": "0.15.1",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
# Change Log - create-powerapps-project
|
|
2
2
|
|
|
3
|
-
This log was last generated on Sun, 16 Jan 2022 22:
|
|
3
|
+
This log was last generated on Sun, 16 Jan 2022 22:28:23 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.15.
|
|
7
|
+
## 0.15.2
|
|
8
8
|
|
|
9
|
-
Sun, 16 Jan 2022 22:
|
|
9
|
+
Sun, 16 Jan 2022 22:28:23 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- Remove pnpm (derek.finlinson@journeyteam.com)
|
|
14
14
|
|
|
15
|
+
## 0.15.1
|
|
16
|
+
|
|
17
|
+
Sun, 16 Jan 2022 22:08:05 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Fix program command (derek.finlinson@journeyteam.com)
|
|
22
|
+
|
|
15
23
|
## 0.15.0
|
|
16
24
|
|
|
17
25
|
Sun, 16 Jan 2022 21:30:27 GMT
|
package/lib/getEnvInfo.js
CHANGED
|
@@ -15,8 +15,7 @@ const getEnvInfo = () => {
|
|
|
15
15
|
exports.getEnvInfo = getEnvInfo;
|
|
16
16
|
const initialize = async () => {
|
|
17
17
|
envInfoCache = JSON.parse(await envinfo_1.default.run({
|
|
18
|
-
Binaries: ['Yarn', 'npm']
|
|
19
|
-
npmGlobalPackages: ['pnpm']
|
|
18
|
+
Binaries: ['Yarn', 'npm']
|
|
20
19
|
}, { json: true, showNotFound: false }));
|
|
21
20
|
if (envInfoCache.Binaries.Yarn) {
|
|
22
21
|
envInfoCache.Binaries.Yarn.path = expandHome(envInfoCache.Binaries.Yarn.path);
|
|
@@ -24,9 +23,6 @@ const initialize = async () => {
|
|
|
24
23
|
if (envInfoCache.Binaries.npm) {
|
|
25
24
|
envInfoCache.Binaries.npm.path = expandHome(envInfoCache.Binaries.npm.path);
|
|
26
25
|
}
|
|
27
|
-
if (envInfoCache.npmGlobalPackages.pnpm) {
|
|
28
|
-
envInfoCache.npmGlobalPackages.pnpm.path = 'pnpm';
|
|
29
|
-
}
|
|
30
26
|
return envInfoCache;
|
|
31
27
|
};
|
|
32
28
|
exports.initialize = initialize;
|
package/lib/packageManager.js
CHANGED
|
@@ -13,10 +13,6 @@ const getNpm = () => {
|
|
|
13
13
|
const npmInfo = (0, getEnvInfo_1.getEnvInfo)().Binaries.npm;
|
|
14
14
|
return npmInfo && npmInfo.path;
|
|
15
15
|
};
|
|
16
|
-
const getPnpm = () => {
|
|
17
|
-
const pnpmInfo = (0, getEnvInfo_1.getEnvInfo)().npmGlobalPackages.pnpm;
|
|
18
|
-
return pnpmInfo && pnpmInfo.path;
|
|
19
|
-
};
|
|
20
16
|
const install = (cwd, type) => {
|
|
21
17
|
const packages = getPackages(type);
|
|
22
18
|
if ((0, exports.getYarn)()) {
|
|
@@ -25,12 +21,6 @@ const install = (cwd, type) => {
|
|
|
25
21
|
(0, child_process_1.spawnSync)((0, exports.getYarn)(), ['add', ...packages.dependencies], { stdio: 'inherit', cwd });
|
|
26
22
|
}
|
|
27
23
|
}
|
|
28
|
-
else if (getPnpm()) {
|
|
29
|
-
(0, child_process_1.spawnSync)(getPnpm(), ['add', ...packages.devDependencies], { stdio: 'inherit', cwd });
|
|
30
|
-
if (packages.dependencies) {
|
|
31
|
-
(0, child_process_1.spawnSync)(getPnpm(), ['add', ...packages.dependencies], { stdio: 'inherit', cwd });
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
24
|
else {
|
|
35
25
|
(0, child_process_1.spawnSync)(getNpm(), ['add', ...packages.devDependencies], { stdio: 'inherit', cwd });
|
|
36
26
|
if (packages.dependencies) {
|