@teambit/install 1.0.428 → 1.0.430

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="2" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.workspace/install@1.0.428" tests="2" failures="0" errors="0" skipped="0">
4
- <testcase classname="dist/pick-outdated-pkgs.spec.js" name="should render choices in correct order" time="0.192"/>
5
- <testcase classname="dist/pick-outdated-pkgs.spec.js" name="should render choices with context information" time="0.002"/>
3
+ <testsuite name="teambit.workspace/install@1.0.430" tests="2" failures="0" errors="0" skipped="0">
4
+ <testcase classname="dist/pick-outdated-pkgs.spec.js" name="should render choices in correct order" time="0.155"/>
5
+ <testcase classname="dist/pick-outdated-pkgs.spec.js" name="should render choices with context information" time="0.001"/>
6
6
  </testsuite>
7
7
  </testsuites>
@@ -5308,7 +5308,7 @@
5308
5308
  "componentId": {
5309
5309
  "scope": "teambit.workspace",
5310
5310
  "name": "install",
5311
- "version": "1.0.428"
5311
+ "version": "1.0.430"
5312
5312
  },
5313
5313
  "taggedModuleExports": []
5314
5314
  }
@@ -17,7 +17,7 @@ class UpdateCmd {
17
17
  _defineProperty(this, "group", 'development');
18
18
  _defineProperty(this, "arguments", [{
19
19
  name: 'package-patterns...',
20
- description: 'a string list of package names, or patterns (separated by spaces or commas), e.g. "@teambit/**,@my-org/ui/**". The patterns should be in glob format. By default, all packages are selected.'
20
+ description: 'a string list of package names, or patterns (separated by spaces or commas), e.g. "@teambit/**,@my-org/ui.**". The patterns should be in glob format. By default, all packages are selected.'
21
21
  }]);
22
22
  _defineProperty(this, "options", [['y', 'yes', 'automatically update all outdated versions for packages specified in pattern (all if no pattern supplied) - use carefully as could result in breaking updates for dependencies'], ['', 'patch', 'update to the latest patch version. Semver rules are ignored'], ['', 'minor', 'update to the latest minor version. Semver rules are ignored'], ['', 'major', 'update to the latest major version. Semver rules are ignored'], ['', 'semver', 'update to the newest version respecting semver']]);
23
23
  }
@@ -1 +1 @@
1
- {"version":3,"names":["UpdateCmd","constructor","install","_defineProperty","name","description","report","patterns","options","forceVersionBump","major","minor","patch","semver","updateDependencies","all","yes","splitPatterns","exports","default","splittedPatterns","pattern","push","split"],"sources":["update.cmd.tsx"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\n\nimport { InstallMain } from './install.main.runtime';\n\ntype UpdateCmdOptions = {\n yes?: boolean;\n patterns?: string[];\n major?: boolean;\n minor?: boolean;\n patch?: boolean;\n semver?: boolean;\n};\n\nexport default class UpdateCmd implements Command {\n name = 'update [package-patterns...]';\n description = 'update dependencies. By default, dependencies are updated to the highest semver compatible versions.';\n helpUrl = 'reference/dependencies/configuring-dependencies/#update-dependencies';\n alias = 'up';\n group = 'development';\n arguments = [\n {\n name: 'package-patterns...',\n description:\n 'a string list of package names, or patterns (separated by spaces or commas), e.g. \"@teambit/**,@my-org/ui/**\". The patterns should be in glob format. By default, all packages are selected.',\n },\n ];\n options = [\n [\n 'y',\n 'yes',\n 'automatically update all outdated versions for packages specified in pattern (all if no pattern supplied) - use carefully as could result in breaking updates for dependencies',\n ],\n ['', 'patch', 'update to the latest patch version. Semver rules are ignored'],\n ['', 'minor', 'update to the latest minor version. Semver rules are ignored'],\n ['', 'major', 'update to the latest major version. Semver rules are ignored'],\n ['', 'semver', 'update to the newest version respecting semver'],\n ] as CommandOptions;\n\n constructor(private install: InstallMain) {}\n\n async report([patterns = []]: [string[]], options: UpdateCmdOptions) {\n let forceVersionBump: 'major' | 'minor' | 'patch' | 'compatible' | undefined;\n if (options.major) {\n forceVersionBump = 'major';\n } else if (options.minor) {\n forceVersionBump = 'minor';\n } else if (options.patch) {\n forceVersionBump = 'patch';\n } else if (options.semver) {\n forceVersionBump = 'compatible';\n }\n await this.install.updateDependencies({\n all: options.yes === true,\n patterns: splitPatterns(patterns),\n forceVersionBump,\n });\n return '';\n }\n}\n\nfunction splitPatterns(patterns: string[]): string[] {\n const splittedPatterns: string[] = [];\n for (const pattern of patterns)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AAC;MACjCE;IACF,CAAC,CAAC;IACF,OAAO,EAAE;EACX;AACF;AAACS,OAAA,CAAAC,OAAA,GAAAnB,SAAA;AAED,SAASiB,aAAaA,CAACV,QAAkB,EAAY;EACnD,MAAMa,gBAA0B,GAAG,EAAE;EACrC,KAAK,MAAMC,OAAO,IAAId,QAAQ,EAAE;IAC9Ba,gBAAgB,CAACE,IAAI,CAAC,GAAGD,OAAO,CAACE,KAAK,CAAC,MAAM,CAAC,CAAC;EACjD;EACA,OAAOH,gBAAgB;AACzB","ignoreList":[]}
1
+ {"version":3,"names":["UpdateCmd","constructor","install","_defineProperty","name","description","report","patterns","options","forceVersionBump","major","minor","patch","semver","updateDependencies","all","yes","splitPatterns","exports","default","splittedPatterns","pattern","push","split"],"sources":["update.cmd.tsx"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\n\nimport { InstallMain } from './install.main.runtime';\n\ntype UpdateCmdOptions = {\n yes?: boolean;\n patterns?: string[];\n major?: boolean;\n minor?: boolean;\n patch?: boolean;\n semver?: boolean;\n};\n\nexport default class UpdateCmd implements Command {\n name = 'update [package-patterns...]';\n description = 'update dependencies. By default, dependencies are updated to the highest semver compatible versions.';\n helpUrl = 'reference/dependencies/configuring-dependencies/#update-dependencies';\n alias = 'up';\n group = 'development';\n arguments = [\n {\n name: 'package-patterns...',\n description:\n 'a string list of package names, or patterns (separated by spaces or commas), e.g. \"@teambit/**,@my-org/ui.**\". The patterns should be in glob format. By default, all packages are selected.',\n },\n ];\n options = [\n [\n 'y',\n 'yes',\n 'automatically update all outdated versions for packages specified in pattern (all if no pattern supplied) - use carefully as could result in breaking updates for dependencies',\n ],\n ['', 'patch', 'update to the latest patch version. Semver rules are ignored'],\n ['', 'minor', 'update to the latest minor version. Semver rules are ignored'],\n ['', 'major', 'update to the latest major version. Semver rules are ignored'],\n ['', 'semver', 'update to the newest version respecting semver'],\n ] as CommandOptions;\n\n constructor(private install: InstallMain) {}\n\n async report([patterns = []]: [string[]], options: UpdateCmdOptions) {\n let forceVersionBump: 'major' | 'minor' | 'patch' | 'compatible' | undefined;\n if (options.major) {\n forceVersionBump = 'major';\n } else if (options.minor) {\n forceVersionBump = 'minor';\n } else if (options.patch) {\n forceVersionBump = 'patch';\n } else if (options.semver) {\n forceVersionBump = 'compatible';\n }\n await this.install.updateDependencies({\n all: options.yes === true,\n patterns: splitPatterns(patterns),\n forceVersionBump,\n });\n return '';\n }\n}\n\nfunction splitPatterns(patterns: string[]): string[] {\n const splittedPatterns: string[] = [];\n for (const pattern of patterns) {\n splittedPatterns.push(...pattern.split(/[, ]/));\n }\n return splittedPatterns;\n}\n"],"mappings":";;;;;;;;;AAae,MAAMA,SAAS,CAAoB;EAyBhDC,WAAWA,CAASC,OAAoB,EAAE;IAAA,KAAtBA,OAAoB,GAApBA,OAAoB;IAAAC,eAAA,eAxBjC,8BAA8B;IAAAA,eAAA,sBACvB,sGAAsG;IAAAA,eAAA,kBAC1G,sEAAsE;IAAAA,eAAA,gBACxE,IAAI;IAAAA,eAAA,gBACJ,aAAa;IAAAA,eAAA,oBACT,CACV;MACEC,IAAI,EAAE,qBAAqB;MAC3BC,WAAW,EACT;IACJ,CAAC,CACF;IAAAF,eAAA,kBACS,CACR,CACE,GAAG,EACH,KAAK,EACL,gLAAgL,CACjL,EACD,CAAC,EAAE,EAAE,OAAO,EAAE,8DAA8D,CAAC,EAC7E,CAAC,EAAE,EAAE,OAAO,EAAE,8DAA8D,CAAC,EAC7E,CAAC,EAAE,EAAE,OAAO,EAAE,8DAA8D,CAAC,EAC7E,CAAC,EAAE,EAAE,QAAQ,EAAE,gDAAgD,CAAC,CACjE;EAE0C;EAE3C,MAAMG,MAAMA,CAAC,CAACC,QAAQ,GAAG,EAAE,CAAa,EAAEC,OAAyB,EAAE;IACnE,IAAIC,gBAAwE;IAC5E,IAAID,OAAO,CAACE,KAAK,EAAE;MACjBD,gBAAgB,GAAG,OAAO;IAC5B,CAAC,MAAM,IAAID,OAAO,CAACG,KAAK,EAAE;MACxBF,gBAAgB,GAAG,OAAO;IAC5B,CAAC,MAAM,IAAID,OAAO,CAACI,KAAK,EAAE;MACxBH,gBAAgB,GAAG,OAAO;IAC5B,CAAC,MAAM,IAAID,OAAO,CAACK,MAAM,EAAE;MACzBJ,gBAAgB,GAAG,YAAY;IACjC;IACA,MAAM,IAAI,CAACP,OAAO,CAACY,kBAAkB,CAAC;MACpCC,GAAG,EAAEP,OAAO,CAACQ,GAAG,KAAK,IAAI;MACzBT,QAAQ,EAAEU,aAAa,CAACV,QAAQ,CAAC;MACjCE;IACF,CAAC,CAAC;IACF,OAAO,EAAE;EACX;AACF;AAACS,OAAA,CAAAC,OAAA,GAAAnB,SAAA;AAED,SAASiB,aAAaA,CAACV,QAAkB,EAAY;EACnD,MAAMa,gBAA0B,GAAG,EAAE;EACrC,KAAK,MAAMC,OAAO,IAAId,QAAQ,EAAE;IAC9Ba,gBAAgB,CAACE,IAAI,CAAC,GAAGD,OAAO,CAACE,KAAK,CAAC,MAAM,CAAC,CAAC;EACjD;EACA,OAAOH,gBAAgB;AACzB","ignoreList":[]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/install",
3
- "version": "1.0.428",
3
+ "version": "1.0.430",
4
4
  "homepage": "https://bit.cloud/teambit/workspace/install",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.workspace",
8
8
  "name": "install",
9
- "version": "1.0.428"
9
+ "version": "1.0.430"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -23,24 +23,24 @@
23
23
  "@teambit/harmony": "0.4.6",
24
24
  "@teambit/workspace.root-components": "1.0.0",
25
25
  "@teambit/bit-error": "0.0.404",
26
- "@teambit/cli": "0.0.1005",
27
- "@teambit/dependency-resolver": "1.0.428",
28
- "@teambit/logger": "0.0.1098",
29
- "@teambit/workspace": "1.0.428",
30
- "@teambit/application": "1.0.428",
31
- "@teambit/aspect-loader": "1.0.428",
32
- "@teambit/compiler": "1.0.428",
26
+ "@teambit/cli": "0.0.1007",
27
+ "@teambit/dependency-resolver": "1.0.430",
28
+ "@teambit/logger": "0.0.1100",
29
+ "@teambit/workspace": "1.0.430",
30
+ "@teambit/application": "1.0.430",
31
+ "@teambit/aspect-loader": "1.0.430",
32
+ "@teambit/compiler": "1.0.430",
33
33
  "@teambit/component-issues": "0.0.151",
34
34
  "@teambit/component-package-version": "0.0.434",
35
- "@teambit/component": "1.0.428",
35
+ "@teambit/component": "1.0.430",
36
36
  "@teambit/dependencies.fs.linked-dependencies": "0.0.9",
37
- "@teambit/envs": "1.0.428",
38
- "@teambit/generator": "1.0.429",
39
- "@teambit/ipc-events": "1.0.428",
40
- "@teambit/issues": "1.0.428",
37
+ "@teambit/envs": "1.0.430",
38
+ "@teambit/generator": "1.0.431",
39
+ "@teambit/ipc-events": "1.0.430",
40
+ "@teambit/issues": "1.0.430",
41
41
  "@teambit/pkg.modules.component-package-name": "0.0.5",
42
- "@teambit/variants": "0.0.1272",
43
- "@teambit/workspace-config-files": "1.0.428",
42
+ "@teambit/variants": "0.0.1274",
43
+ "@teambit/workspace-config-files": "1.0.430",
44
44
  "@teambit/workspace.modules.node-modules-linker": "0.0.209",
45
45
  "@teambit/toolbox.time.time-format": "0.0.496"
46
46
  },
package/update.cmd.tsx CHANGED
@@ -21,7 +21,7 @@ export default class UpdateCmd implements Command {
21
21
  {
22
22
  name: 'package-patterns...',
23
23
  description:
24
- 'a string list of package names, or patterns (separated by spaces or commas), e.g. "@teambit/**,@my-org/ui/**". The patterns should be in glob format. By default, all packages are selected.',
24
+ 'a string list of package names, or patterns (separated by spaces or commas), e.g. "@teambit/**,@my-org/ui.**". The patterns should be in glob format. By default, all packages are selected.',
25
25
  },
26
26
  ];
27
27
  options = [