piral-cli 0.14.0-beta.3163 → 0.14.0-beta.3203

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 (42) hide show
  1. package/lib/apps/new-pilet.d.ts +1 -1
  2. package/lib/apps/new-pilet.js +3 -3
  3. package/lib/apps/new-piral.d.ts +1 -1
  4. package/lib/apps/new-piral.js +2 -2
  5. package/lib/apps/pack-pilet.js +1 -1
  6. package/lib/apps/publish-pilet.d.ts +1 -1
  7. package/lib/apps/publish-pilet.js +1 -1
  8. package/lib/apps/upgrade-pilet.d.ts +2 -2
  9. package/lib/apps/upgrade-pilet.js +1 -1
  10. package/lib/apps/upgrade-piral.d.ts +2 -2
  11. package/lib/apps/upgrade-piral.js +1 -1
  12. package/lib/bundler.js +1 -1
  13. package/lib/commands.js +8 -8
  14. package/lib/commands.js.map +1 -1
  15. package/lib/common/clients/npm.js +10 -10
  16. package/lib/common/emulator.js +1 -1
  17. package/lib/common/log.js +7 -4
  18. package/lib/common/log.js.map +1 -1
  19. package/lib/common/npm.js +6 -6
  20. package/lib/common/package.d.ts +1 -1
  21. package/lib/common/package.js +3 -1
  22. package/lib/common/package.js.map +1 -1
  23. package/lib/messages.d.ts +20 -20
  24. package/lib/messages.js +25 -21
  25. package/lib/messages.js.map +1 -1
  26. package/package.json +2 -2
  27. package/src/apps/new-pilet.ts +4 -4
  28. package/src/apps/new-piral.ts +3 -3
  29. package/src/apps/pack-pilet.test.ts +2 -2
  30. package/src/apps/pack-pilet.ts +1 -1
  31. package/src/apps/publish-pilet.ts +2 -2
  32. package/src/apps/upgrade-pilet.ts +3 -3
  33. package/src/apps/upgrade-piral.ts +3 -3
  34. package/src/bundler.ts +1 -1
  35. package/src/commands.ts +16 -10
  36. package/src/common/clients/npm.ts +10 -10
  37. package/src/common/emulator.ts +1 -1
  38. package/src/common/log.ts +9 -4
  39. package/src/common/npm.test.ts +4 -4
  40. package/src/common/npm.ts +6 -6
  41. package/src/common/package.ts +5 -2
  42. package/src/messages.ts +25 -21
package/src/commands.ts CHANGED
@@ -132,7 +132,10 @@ const allCommands: Array<ToolCommand<any>> = [
132
132
  .describe('source-maps', 'Create associated source maps for the bundles.')
133
133
  .default('source-maps', apps.buildPiralDefaults.sourceMaps)
134
134
  .boolean('subdir')
135
- .describe('subdir', `Places the build's output in an appropriate subdirectory (e.g., "emulator"). Ignored for "--all".`)
135
+ .describe(
136
+ 'subdir',
137
+ `Places the build's output in an appropriate subdirectory (e.g., "emulator"). Ignored for "--all".`,
138
+ )
136
139
  .default('subdir', apps.buildPiralDefaults.subdir)
137
140
  .boolean('content-hash')
138
141
  .describe('content-hash', 'Appends the hash to the side-bundle files.')
@@ -260,7 +263,7 @@ const allCommands: Array<ToolCommand<any>> = [
260
263
  .describe('framework', 'Sets the framework/library level to use.')
261
264
  .default('framework', apps.newPiralDefaults.framework)
262
265
  .boolean('install')
263
- .describe('install', 'Already performs the installation of its NPM dependencies.')
266
+ .describe('install', 'Already performs the installation of its npm dependencies.')
264
267
  .default('install', apps.newPiralDefaults.install)
265
268
  .string('registry')
266
269
  .describe('registry', 'Sets the package registry to use for resolving the dependencies.')
@@ -269,7 +272,10 @@ const allCommands: Array<ToolCommand<any>> = [
269
272
  .describe('log-level', 'Sets the log level to use (1-5).')
270
273
  .default('log-level', apps.newPiralDefaults.logLevel)
271
274
  .string('tag')
272
- .describe('tag', 'Sets the tag or version of the package to install. By default, this uses the version of the CLI.')
275
+ .describe(
276
+ 'tag',
277
+ 'Sets the tag or version of the package to install. By default, this uses the version of the CLI.',
278
+ )
273
279
  .default('tag', apps.newPiralDefaults.version)
274
280
  .choices('force-overwrite', forceOverwriteKeys)
275
281
  .describe('force-overwrite', 'Determines if files should be overwritten by the installation.')
@@ -281,7 +287,7 @@ const allCommands: Array<ToolCommand<any>> = [
281
287
  .describe('template', 'Sets the boilerplate template package to be used when scaffolding.')
282
288
  .default('template', apps.newPiralDefaults.template)
283
289
  .choices('npm-client', clientTypeKeys)
284
- .describe('npm-client', 'Sets the NPM client to be used when scaffolding.')
290
+ .describe('npm-client', 'Sets the npm client to be used when scaffolding.')
285
291
  .default('npm-client', apps.newPiralDefaults.npmClient)
286
292
  .choices('bundler', bundlerKeys)
287
293
  .describe('bundler', 'Sets the default bundler to install.')
@@ -330,10 +336,10 @@ const allCommands: Array<ToolCommand<any>> = [
330
336
  .describe('log-level', 'Sets the log level to use (1-5).')
331
337
  .default('log-level', apps.upgradePiralDefaults.logLevel)
332
338
  .boolean('install')
333
- .describe('install', 'Already performs the update of its NPM dependencies.')
339
+ .describe('install', 'Already performs the update of its npm dependencies.')
334
340
  .default('install', apps.upgradePiralDefaults.install)
335
341
  .choices('npm-client', clientTypeKeys)
336
- .describe('npm-client', 'Sets the NPM client to be used when upgrading.')
342
+ .describe('npm-client', 'Sets the npm client to be used when upgrading.')
337
343
  .default('npm-client', apps.upgradePiralDefaults.npmClient)
338
344
  .string('base')
339
345
  .default('base', process.cwd())
@@ -606,7 +612,7 @@ const allCommands: Array<ToolCommand<any>> = [
606
612
  .describe('registry', 'Sets the package registry to use for resolving the specified Piral app.')
607
613
  .default('registry', apps.newPiletDefaults.registry)
608
614
  .boolean('install')
609
- .describe('install', 'Already performs the installation of its NPM dependencies.')
615
+ .describe('install', 'Already performs the installation of its npm dependencies.')
610
616
  .default('install', apps.newPiletDefaults.install)
611
617
  .choices('force-overwrite', forceOverwriteKeys)
612
618
  .describe('force-overwrite', 'Determines if files should be overwritten by the scaffolding.')
@@ -621,7 +627,7 @@ const allCommands: Array<ToolCommand<any>> = [
621
627
  .describe('template', 'Sets the boilerplate template package to be used when scaffolding.')
622
628
  .default('template', apps.newPiletDefaults.template)
623
629
  .choices('npm-client', clientTypeKeys)
624
- .describe('npm-client', 'Sets the NPM client to be used when scaffolding.')
630
+ .describe('npm-client', 'Sets the npm client to be used when scaffolding.')
625
631
  .default('npm-client', apps.newPiletDefaults.npmClient)
626
632
  .choices('bundler', bundlerKeys)
627
633
  .describe('bundler', 'Sets the default bundler to install.')
@@ -668,13 +674,13 @@ const allCommands: Array<ToolCommand<any>> = [
668
674
  .describe('log-level', 'Sets the log level to use (1-5).')
669
675
  .default('log-level', apps.upgradePiletDefaults.logLevel)
670
676
  .boolean('install')
671
- .describe('install', 'Already performs the update of its NPM dependencies.')
677
+ .describe('install', 'Already performs the update of its npm dependencies.')
672
678
  .default('install', apps.upgradePiletDefaults.install)
673
679
  .choices('force-overwrite', forceOverwriteKeys)
674
680
  .describe('force-overwrite', 'Determines if files should be overwritten by the upgrading process.')
675
681
  .default('force-overwrite', keyOfForceOverwrite(apps.upgradePiletDefaults.forceOverwrite))
676
682
  .choices('npm-client', clientTypeKeys)
677
- .describe('npm-client', 'Sets the NPM client to be used when upgrading.')
683
+ .describe('npm-client', 'Sets the npm client to be used when upgrading.')
678
684
  .default('npm-client', apps.upgradePiletDefaults.npmClient)
679
685
  .string('base')
680
686
  .default('base', process.cwd())
@@ -4,7 +4,7 @@ import { runCommand } from '../scripts';
4
4
  import { MemoryStream } from '../MemoryStream';
5
5
 
6
6
  function runNpmProcess(args: Array<string>, target: string, output?: NodeJS.WritableStream) {
7
- log('generalDebug_0003', 'Starting the NPM process ...');
7
+ log('generalDebug_0003', 'Starting the npm process ...');
8
8
  const cwd = resolve(process.cwd(), target);
9
9
  return runCommand('npm', args, cwd, output);
10
10
  }
@@ -12,49 +12,49 @@ function runNpmProcess(args: Array<string>, target: string, output?: NodeJS.Writ
12
12
  export async function installDependencies(target = '.', ...flags: Array<string>) {
13
13
  const ms = new MemoryStream();
14
14
  await runNpmProcess(['install', '--legacy-peer-deps', ...flags], target, ms);
15
- log('generalDebug_0003', `NPM install dependencies result: ${ms.value}`);
15
+ log('generalDebug_0003', `npm install dependencies result: ${ms.value}`);
16
16
  return ms.value;
17
17
  }
18
18
 
19
19
  export async function unpackPackage(packageRef: string, target = '.', ...flags: Array<string>) {
20
20
  const ms = new MemoryStream();
21
21
  await runNpmProcess(['pack', packageRef, ...flags], target, ms);
22
- log('generalDebug_0003', `NPM (un)pack result: ${ms.value}`);
22
+ log('generalDebug_0003', `npm (un)pack result: ${ms.value}`);
23
23
  return ms.value;
24
24
  }
25
25
 
26
26
  export async function installPackage(packageRef: string, target = '.', ...flags: Array<string>) {
27
27
  const ms = new MemoryStream();
28
28
  await runNpmProcess(['install', packageRef, '--legacy-peer-deps', ...flags], target, ms);
29
- log('generalDebug_0003', `NPM install package result: ${ms.value}`);
29
+ log('generalDebug_0003', `npm install package result: ${ms.value}`);
30
30
  return ms.value;
31
31
  }
32
32
 
33
33
  export async function createPackage(target = '.', ...flags: Array<string>) {
34
34
  const ms = new MemoryStream();
35
35
  await runNpmProcess(['pack', ...flags], target, ms);
36
- log('generalDebug_0003', `NPM pack result: ${ms.value}`);
36
+ log('generalDebug_0003', `npm pack result: ${ms.value}`);
37
37
  return ms.value;
38
38
  }
39
39
 
40
40
  export async function publishPackage(target = '.', file = '*.tgz', ...flags: Array<string>) {
41
41
  const ms = new MemoryStream();
42
42
  await runNpmProcess(['publish', file, ...flags], target, ms);
43
- log('generalDebug_0003', `NPM publish result: ${ms.value}`);
43
+ log('generalDebug_0003', `npm publish result: ${ms.value}`);
44
44
  return ms.value;
45
45
  }
46
46
 
47
47
  export async function findSpecificVersion(packageName: string, version: string) {
48
48
  const ms = new MemoryStream();
49
49
  await runNpmProcess(['show', packageName, 'version', '--tag', version], '.', ms);
50
- log('generalDebug_0003', `NPM show result: ${ms.value}`);
50
+ log('generalDebug_0003', `npm show result: ${ms.value}`);
51
51
  return ms.value;
52
52
  }
53
53
 
54
54
  export async function findTarball(packageRef: string, target = '.', ...flags: Array<string>) {
55
55
  const ms = new MemoryStream();
56
56
  await runNpmProcess(['view', packageRef, 'dist.tarball', ...flags], target, ms);
57
- log('generalDebug_0003', `NPM view packageRef result: ${ms.value}`);
57
+ log('generalDebug_0003', `npm view packageRef result: ${ms.value}`);
58
58
  return ms.value;
59
59
  }
60
60
 
@@ -64,9 +64,9 @@ export async function listPackage(packageRef: string, target = '.', ...flags: Ar
64
64
  try {
65
65
  await runNpmProcess(['ls', packageRef, '--json', '--depth', '0', ...flags], target, ms);
66
66
  } catch (e) {
67
- log('generalDebug_0003', `NPM ls packageRef error: ${e}`);
67
+ log('generalDebug_0003', `npm ls packageRef error: ${e}`);
68
68
  }
69
69
 
70
- log('generalDebug_0003', `NPM ls packageRef result: ${ms.value}`);
70
+ log('generalDebug_0003', `npm ls packageRef result: ${ms.value}`);
71
71
  return JSON.parse(ms.value);
72
72
  }
@@ -119,7 +119,7 @@ export async function createEmulatorSources(
119
119
  // generate the associated index.d.ts
120
120
  await createPiralDeclaration(sourceDir, piralPkg.app ?? `./src/index.html`, targetDir, ForceOverwrite.yes, logLevel);
121
121
 
122
- // since things like .gitignore are not properly treated by NPM we pack the files (for standard and once only)
122
+ // since things like .gitignore are not properly treated by npm we pack the files (for standard and once only)
123
123
  await Promise.all([
124
124
  createTarball(filesDir, rootDir, `${filesTar}.tar`),
125
125
  createTarball(filesOnceDir, rootDir, `${filesOnceTar}.tar`),
package/src/common/log.ts CHANGED
@@ -11,10 +11,15 @@ type MessageTypes = keyof Messages;
11
11
 
12
12
  const logger = (() => {
13
13
  try {
14
- return require('@parcel/logger');
15
- } catch {
16
- return require('../external').logger;
17
- }
14
+ const logger = require('@parcel/logger');
15
+
16
+ // check to see if this is really right
17
+ if (typeof logger.verbose === 'function') {
18
+ return logger;
19
+ }
20
+ } catch {}
21
+
22
+ return require('../external').logger;
18
23
  })();
19
24
 
20
25
  // unfortunately, Parcel's support for verbose logging on Windows is broken
@@ -81,7 +81,7 @@ jest.mock('fs', () => ({
81
81
  },
82
82
  }));
83
83
 
84
- describe('NPM Module', () => {
84
+ describe('npm Module', () => {
85
85
  it('dissects a fully qualified name with latest correctly', async () => {
86
86
  wrongCase = false;
87
87
  const [name, version, hadVersion, type] = await dissectPackageName(process.cwd(), 'foo@latest');
@@ -172,14 +172,14 @@ describe('NPM Module', () => {
172
172
  expect(type).toBe('registry');
173
173
  });
174
174
 
175
- it('installs a package using the NPM command line tool without a target', async () => {
175
+ it('installs a package using the npm command line tool without a target', async () => {
176
176
  wrongCase = false;
177
177
  await installPackage('npm', 'foo', 'latest').then((result) => expect(result).toEqual(jsonValueString));
178
178
  wrongCase = true;
179
179
  await installPackage('npm', 'foo', 'latest').then((result) => expect(result).not.toEqual(jsonValueString));
180
180
  });
181
181
 
182
- it('installs a package using the NPM command line tool without a version', async () => {
182
+ it('installs a package using the npm command line tool without a version', async () => {
183
183
  wrongCase = false;
184
184
  await installPackage('npm', 'foo').then((result) => expect(result).toEqual(jsonValueString));
185
185
  wrongCase = true;
@@ -200,7 +200,7 @@ describe('NPM Module', () => {
200
200
  await installPackage('pnpm', 'foo').then((result) => expect(result).not.toEqual(jsonValueString));
201
201
  });
202
202
 
203
- it('installs a package using the NPM command line tool with some flag', async () => {
203
+ it('installs a package using the npm command line tool with some flag', async () => {
204
204
  wrongCase = false;
205
205
  await installPackage('npm', 'foo', '1.3', '.', '--a=b').then((result) => expect(result).toEqual(jsonValueString));
206
206
  wrongCase = true;
package/src/common/npm.ts CHANGED
@@ -69,27 +69,27 @@ export async function getLernaNpmClient(root: string): Promise<NpmClientType> {
69
69
  */
70
70
  export async function determineNpmClient(root: string, selected?: NpmClientType): Promise<NpmClientType> {
71
71
  if (!selected || !clientTypeKeys.includes(selected)) {
72
- log('generalDebug_0003', 'No NPM client selected. Checking for lock files ...');
72
+ log('generalDebug_0003', 'No npm client selected. Checking for lock files ...');
73
73
  const [hasNpm, hasYarn, hasPnpm] = await Promise.all([detectNpm(root), detectYarn(root), detectPnpm(root)]);
74
74
  const found = +hasNpm + +hasYarn + +hasPnpm;
75
- log('generalDebug_0003', `Results of the lock file check: NPM = ${hasNpm}, Yarn = ${hasYarn}, Pnpm = ${hasPnpm}`);
75
+ log('generalDebug_0003', `Results of the lock file check: npm = ${hasNpm}, Yarn = ${hasYarn}, Pnpm = ${hasPnpm}`);
76
76
  const defaultClient = config.npmClient;
77
77
 
78
78
  if (found !== 1) {
79
79
  const lernaClient = await getLernaNpmClient(root);
80
80
 
81
81
  if (clientTypeKeys.includes(lernaClient)) {
82
- log('generalDebug_0003', `Found valid NPM client via Lerna: ${lernaClient}.`);
82
+ log('generalDebug_0003', `Found valid npm client via Lerna: ${lernaClient}.`);
83
83
  return lernaClient;
84
84
  }
85
85
  } else if (hasNpm) {
86
- log('generalDebug_0003', `Found valid NPM client via lockfile.`);
86
+ log('generalDebug_0003', `Found valid npm client via lockfile.`);
87
87
  return 'npm';
88
88
  } else if (hasYarn) {
89
89
  log('generalDebug_0003', `Found valid Yarn client via lockfile.`);
90
90
  return 'yarn';
91
91
  } else if (hasPnpm) {
92
- log('generalDebug_0003', `Found valid Pnpm client via lockfile.`);
92
+ log('generalDebug_0003', `Found valid pnpm client via lockfile.`);
93
93
  return 'pnpm';
94
94
  }
95
95
 
@@ -98,7 +98,7 @@ export async function determineNpmClient(root: string, selected?: NpmClientType)
98
98
  return defaultClient;
99
99
  }
100
100
 
101
- log('generalDebug_0003', 'Using the default NPM client.');
101
+ log('generalDebug_0003', 'Using the default npm client.');
102
102
  return 'npm';
103
103
  }
104
104
 
@@ -7,7 +7,7 @@ import { SourceLanguage, ForceOverwrite } from './enums';
7
7
  import { checkAppShellCompatibility } from './compatibility';
8
8
  import { deepMerge } from './merge';
9
9
  import { getHashFromUrl } from './http';
10
- import { isGitPackage, isLocalPackage, makeGitUrl, makeFilePath, makePiletExternals } from './npm';
10
+ import { isGitPackage, isLocalPackage, makeGitUrl, makeFilePath, makePiletExternals, makeExternals } from './npm';
11
11
  import { filesTar, filesOnceTar, declarationEntryExtensions } from './constants';
12
12
  import { getHash, checkIsDirectory, matchFiles } from './io';
13
13
  import { readJson, copy, updateExistingJson, findFile, checkExists } from './io';
@@ -410,9 +410,12 @@ export async function retrievePiletsInfo(entryFile: string) {
410
410
  }
411
411
 
412
412
  const packageInfo = require(packageJson);
413
+ const info = getPiletsInfo(packageInfo);
414
+ const externals = makeExternals(info.externals);
413
415
 
414
416
  return {
415
- ...getPiletsInfo(packageInfo),
417
+ ...info,
418
+ externals,
416
419
  name: packageInfo.name,
417
420
  version: packageInfo.version,
418
421
  dependencies: {
package/src/messages.ts CHANGED
@@ -198,7 +198,7 @@ export function appInstanceInvalid_0011(): QuickMessage {
198
198
  * project folder has a package.json in its root.
199
199
  *
200
200
  * @see
201
- * - [NPM Package Specification](https://docs.npmjs.com/files/package.json)
201
+ * - [npm Package Specification](https://docs.npmjs.com/files/package.json)
202
202
  *
203
203
  * @example
204
204
  * You can see if you are currently in a correct folder.
@@ -235,7 +235,7 @@ export function packageJsonNotFound_0020(): QuickMessage {
235
235
  * The name of the pilet is provided by the name field specified in its package.json.
236
236
  *
237
237
  * A valid package.json file requires a valid name. The name has to follow standard naming
238
- * conventions of the NPM system.
238
+ * conventions of the npm system.
239
239
  *
240
240
  * @see
241
241
  * - [Package Naming Guidelines](https://docs.npmjs.com/package-name-guidelines)
@@ -285,7 +285,7 @@ export function packageJsonMissingName_0021(): QuickMessage {
285
285
  * specification.
286
286
  *
287
287
  * @see
288
- * - [NPM on Semantic Versioning](https://docs.npmjs.com/about-semantic-versioning)
288
+ * - [npm on Semantic Versioning](https://docs.npmjs.com/about-semantic-versioning)
289
289
  *
290
290
  * @example
291
291
  * Check the contents of the available package.json:
@@ -330,7 +330,7 @@ export function packageJsonMissingVersion_0022(): QuickMessage {
330
330
  * and which ones can remain at their current version.
331
331
  *
332
332
  * @see
333
- * - [NPM Install](https://docs.npmjs.com/cli/install)
333
+ * - [npm Install](https://docs.npmjs.com/cli/install)
334
334
  *
335
335
  * @example
336
336
  * Check that the package is indeed installed:
@@ -370,7 +370,7 @@ export function packageNotInstalled_0023(name: string): QuickMessage {
370
370
  * versions. If no release for the given version was found then an error is emitted.
371
371
  *
372
372
  * @see
373
- * - [StackOverflow Listing NPM Versions](https://stackoverflow.com/questions/41415945/how-to-list-all-versions-of-an-npm-module)
373
+ * - [StackOverflow Listing npm Versions](https://stackoverflow.com/questions/41415945/how-to-list-all-versions-of-an-npm-module)
374
374
  *
375
375
  * @example
376
376
  * Check that the version is valid:
@@ -481,7 +481,7 @@ export function projectReferenceNotSupported_0032(fullPath: string): QuickMessag
481
481
  * CLI via command line parameters.
482
482
  *
483
483
  * @see
484
- * - [NPM Package Specification](https://docs.npmjs.com/files/package.json)
484
+ * - [npm Package Specification](https://docs.npmjs.com/files/package.json)
485
485
  *
486
486
  * @example
487
487
  * Make sure you are in the right directory by calling commands such as
@@ -611,7 +611,7 @@ export function invalidPiletPackage_0042(): QuickMessage {
611
611
  * Even though everything seems to be correct on the first glance it may be that the
612
612
  * actual reference is broken. This could be due to various reasons.
613
613
  *
614
- * - NPM linking is broken
614
+ * - npm linking is broken
615
615
  * - The dependencies have not been installed yet (run `npm i`)
616
616
  * - The Piral instance's name is invalid (e.g., due to a typo)
617
617
  *
@@ -762,8 +762,8 @@ export function cannotFindFile_0046(file: string): QuickMessage {
762
762
  * Since the local resolution only works against a filename the update process has also to be triggered with
763
763
  * a file location. Otherwise, there is no chance to know a different file location.
764
764
  *
765
- * Potentially, you wanted to switch / resolve the module from NPM instead. Therefore, we are then trying to
766
- * obtain the Piral instance from NPM instead using the known name.
765
+ * Potentially, you wanted to switch / resolve the module from npm instead. Therefore, we are then trying to
766
+ * obtain the Piral instance from npm instead using the known name.
767
767
  *
768
768
  * @see
769
769
  * - [Local File Dependencies](https://stackoverflow.com/questions/14381898/local-dependency-in-package-json)
@@ -800,11 +800,11 @@ export function localeFileForUpgradeMissing_0050(): QuickMessage {
800
800
  * Right now we only support "latest" for Git resolved Piral instances. In this scenario we obtain the
801
801
  * current head from the repository's default branch and update accordingly.
802
802
  *
803
- * Potentially, you wanted to switch / resolve the module from NPM instead. Therefore, we are then trying to
804
- * obtain the Piral instance from NPM instead using the known name.
803
+ * Potentially, you wanted to switch / resolve the module from npm instead. Therefore, we are then trying to
804
+ * obtain the Piral instance from npm instead using the known name.
805
805
  *
806
806
  * @see
807
- * - [Git Dependencies in NPM](https://medium.com/&commat;jonchurch/use-github-branch-as-dependency-in-package-json-5eb609c81f1a)
807
+ * - [Git Dependencies in npm](https://medium.com/&commat;jonchurch/use-github-branch-as-dependency-in-package-json-5eb609c81f1a)
808
808
  *
809
809
  * @example
810
810
  * You may have set up the pilet using a locally available tgz file. In this case your original command may
@@ -995,7 +995,7 @@ export function missingPiletFeedUrl_0060(): QuickMessage {
995
995
  * directly.
996
996
  *
997
997
  * @see
998
- * - [NPM Pack](https://docs.npmjs.com/cli-commands/pack.html)
998
+ * - [npm Pack](https://docs.npmjs.com/cli-commands/pack.html)
999
999
  *
1000
1000
  * @example
1001
1001
  * Make sure to have build a pilet beforehand:
@@ -1541,10 +1541,10 @@ export function entryPointDoesNotExist_0073(app: string): QuickMessage {
1541
1541
  * point for the bundler.
1542
1542
  *
1543
1543
  * @see
1544
- * - [NPM Init](https://docs.npmjs.com/cli/init)
1544
+ * - [npm Init](https://docs.npmjs.com/cli/init)
1545
1545
  *
1546
1546
  * @example
1547
- * You can create a new NPM project using the `npm init` command. This will essentially guide
1547
+ * You can create a new npm project using the `npm init` command. This will essentially guide
1548
1548
  * you through a number of decisions for creating a proper package.json.
1549
1549
  *
1550
1550
  * Even better you could start a new Piral instance using the following command:
@@ -1577,10 +1577,10 @@ export function packageJsonMissing_0074(): QuickMessage {
1577
1577
  * point for the bundler.
1578
1578
  *
1579
1579
  * @see
1580
- * - [NPM Init](https://docs.npmjs.com/cli/init)
1580
+ * - [npm Init](https://docs.npmjs.com/cli/init)
1581
1581
  *
1582
1582
  * @example
1583
- * You can create a new NPM project using the `npm init` command. This will essentially guide
1583
+ * You can create a new npm project using the `npm init` command. This will essentially guide
1584
1584
  * you through a number of decisions for creating a proper package.json.
1585
1585
  *
1586
1586
  * Even better you could start a new pilet using the following command:
@@ -1855,7 +1855,7 @@ export function toolingIncompatible_0101(piralVersion: string, cliVersion: strin
1855
1855
  *
1856
1856
  * @example
1857
1857
  * The following command first removes the output directory, then starts the build,
1858
- * and finally publishes the emulator to NPM.
1858
+ * and finally publishes the emulator to npm.
1859
1859
  *
1860
1860
  * ```sh
1861
1861
  * rm -rf dist
@@ -1881,7 +1881,7 @@ export function publishDirectoryMissing_0110(directory: string): QuickMessage {
1881
1881
  *
1882
1882
  * @example
1883
1883
  * The following command first removes the output directory, then starts the build,
1884
- * and finally publishes the emulator to NPM.
1884
+ * and finally publishes the emulator to npm.
1885
1885
  *
1886
1886
  * ```sh
1887
1887
  * rm -rf dist
@@ -1964,7 +1964,11 @@ export function publishProviderMissing_0113(providerName: string, availableProvi
1964
1964
  * The type is "release".
1965
1965
  */
1966
1966
  export function publishEmulatorSourcesInvalid_0114(): QuickMessage {
1967
- return [LogLevels.error, '0114', `The command "publish" cannot be done with "--type emulator-sources". Use another type instead.`];
1967
+ return [
1968
+ LogLevels.error,
1969
+ '0114',
1970
+ `The command "publish" cannot be done with "--type emulator-sources". Use another type instead.`,
1971
+ ];
1968
1972
  }
1969
1973
 
1970
1974
  /**
@@ -1986,7 +1990,7 @@ export function publishEmulatorSourcesInvalid_0114(): QuickMessage {
1986
1990
  * - The API for opening the default browser is invalid
1987
1991
  *
1988
1992
  * @see
1989
- * - [NPM Open Package](https://www.npmjs.com/package/open)
1993
+ * - [npm Open Package](https://www.npmjs.com/package/open)
1990
1994
  *
1991
1995
  * @example
1992
1996
  * The browser is usually just opened via the command line: