create-powerapps-project 0.15.1 → 0.15.5

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 CHANGED
@@ -2,7 +2,67 @@
2
2
  "name": "create-powerapps-project",
3
3
  "entries": [
4
4
  {
5
- "date": "Sun, 16 Jan 2022 22:07:55 GMT",
5
+ "date": "Sun, 16 Jan 2022 23:22:02 GMT",
6
+ "tag": "create-powerapps-project_v0.15.5",
7
+ "version": "0.15.5",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "derek.finlinson@journeyteam.com",
12
+ "package": "create-powerapps-project",
13
+ "commit": "928a436f3d6627765a329ee4cb31d83cab714b1d",
14
+ "comment": "Switch symbols"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Sun, 16 Jan 2022 22:57:19 GMT",
21
+ "tag": "create-powerapps-project_v0.15.4",
22
+ "version": "0.15.4",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "derek.finlinson@journeyteam.com",
27
+ "package": "create-powerapps-project",
28
+ "commit": "acf6ca4763a9d98fa7683fe517deb872f12f4c42",
29
+ "comment": "Fix logging for real"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Sun, 16 Jan 2022 22:41:55 GMT",
36
+ "tag": "create-powerapps-project_v0.15.3",
37
+ "version": "0.15.3",
38
+ "comments": {
39
+ "patch": [
40
+ {
41
+ "author": "derek.finlinson@journeyteam.com",
42
+ "package": "create-powerapps-project",
43
+ "commit": "b1658649d8258e68522e6eadd79a2bbf3a4733d8",
44
+ "comment": "Fix logging"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "date": "Sun, 16 Jan 2022 22:28:32 GMT",
51
+ "tag": "create-powerapps-project_v0.15.2",
52
+ "version": "0.15.2",
53
+ "comments": {
54
+ "patch": [
55
+ {
56
+ "author": "derek.finlinson@journeyteam.com",
57
+ "package": "create-powerapps-project",
58
+ "commit": "10bfc68da12fdaf50dfd2a0f1b8d11406d578cbf",
59
+ "comment": "Remove pnpm"
60
+ }
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "date": "Sun, 16 Jan 2022 22:08:05 GMT",
6
66
  "tag": "create-powerapps-project_v0.15.1",
7
67
  "version": "0.15.1",
8
68
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,17 +1,49 @@
1
1
  # Change Log - create-powerapps-project
2
2
 
3
- This log was last generated on Sun, 16 Jan 2022 22:07:55 GMT and should not be manually modified.
3
+ This log was last generated on Sun, 16 Jan 2022 23:22:02 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.15.1
7
+ ## 0.15.5
8
8
 
9
- Sun, 16 Jan 2022 22:07:55 GMT
9
+ Sun, 16 Jan 2022 23:22:02 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - Fix program command (derek.finlinson@journeyteam.com)
13
+ - Switch symbols (derek.finlinson@journeyteam.com)
14
14
 
15
+ ## 0.15.4
16
+
17
+ Sun, 16 Jan 2022 22:57:19 GMT
18
+
19
+ ### Patches
20
+
21
+ - Fix logging for real (derek.finlinson@journeyteam.com)
22
+
23
+ ## 0.15.3
24
+
25
+ Sun, 16 Jan 2022 22:41:55 GMT
26
+
27
+ ### Patches
28
+
29
+ - Fix logging (derek.finlinson@journeyteam.com)
30
+
31
+ ## 0.15.2
32
+
33
+ Sun, 16 Jan 2022 22:28:32 GMT
34
+
35
+ ### Patches
36
+
37
+ - Remove pnpm (derek.finlinson@journeyteam.com)
38
+
39
+ ## 0.15.1
40
+
41
+ Sun, 16 Jan 2022 22:08:05 GMT
42
+
43
+ ### Patches
44
+
45
+ - Fix program command (derek.finlinson@journeyteam.com)
46
+
15
47
  ## 0.15.0
16
48
 
17
49
  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/logger.js CHANGED
@@ -5,22 +5,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.logger = void 0;
7
7
  const kleur_1 = __importDefault(require("kleur"));
8
- const square = '\u25a0';
9
- const triangle = '\u25b2';
10
- const emptySquare = '\u25a1';
8
+ const tick = '', cross = '×';
11
9
  const log = (method, symbol, ...args) => {
12
- const now = new Date();
13
- const timestamp = kleur_1.default.gray(`[${now.toLocaleTimeString()}]`);
14
- console[method](timestamp, symbol, args);
10
+ console[method](symbol, ...args);
15
11
  };
16
12
  exports.logger = {
17
13
  info(...args) {
18
- log('info', kleur_1.default.green(square), args);
14
+ log('info', kleur_1.default.green(tick), ...args);
19
15
  },
20
16
  warn(...args) {
21
- log('warn', kleur_1.default.yellow(triangle), args);
17
+ log('warn', kleur_1.default.yellow(cross), ...args);
22
18
  },
23
19
  error(...args) {
24
- log('error', kleur_1.default.red(emptySquare), args);
20
+ log('error', kleur_1.default.red(cross), ...args);
25
21
  }
26
22
  };
@@ -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) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-powerapps-project",
3
3
  "description": "💧 plop generator for Dataverse development",
4
- "version": "0.15.1",
4
+ "version": "0.15.5",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
7
7
  "bin": {