@teambit/pkg 0.0.1133 → 0.0.1134

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.
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pkg_pkg@0.0.1133/dist/pkg.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pkg_pkg@0.0.1133/dist/pkg.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pkg_pkg@0.0.1134/dist/pkg.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pkg_pkg@0.0.1134/dist/pkg.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -37,7 +37,7 @@ class PublishCmd {
37
37
  name: 'component-pattern',
38
38
  description: _constants().COMPONENT_PATTERN_HELP
39
39
  }]);
40
- (0, _defineProperty2().default)(this, "options", [['d', 'dry-run', 'npm publish --dry-run'], ['', 'allow-staged', 'allow publish components that were not exported yet (not recommended)'], ['j', 'json', 'return the output as JSON']]);
40
+ (0, _defineProperty2().default)(this, "options", [['d', 'dry-run', 'npm publish --dry-run'], ['', 'allow-staged', 'allow publishing components that were not exported yet (not recommended)'], ['j', 'json', 'return the output as JSON']]);
41
41
  (0, _defineProperty2().default)(this, "alias", '');
42
42
  (0, _defineProperty2().default)(this, "private", true);
43
43
  (0, _defineProperty2().default)(this, "group", 'collaborate');
@@ -45,7 +45,7 @@ class PublishCmd {
45
45
  async report(args, options) {
46
46
  const result = await this.json(args, options);
47
47
  const publishResults = result.data;
48
- if (!publishResults.length) return 'no components were found candidate for publish';
48
+ if (!publishResults.length) return 'no components candidates found to publish';
49
49
  const publishOrDryRun = options.dryRun ? 'dry-run' : 'published';
50
50
  const title = _chalk().default.white.bold(`successfully ${publishOrDryRun} the following components\n`);
51
51
  const output = publishResults.map(publishResult => {
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_constants","PublishCmd","constructor","publisher","_defineProperty2","default","name","description","COMPONENT_PATTERN_HELP","report","args","options","result","json","publishResults","length","publishOrDryRun","dryRun","title","chalk","white","bold","output","map","publishResult","compName","component","id","toString","getData","_publishResult$errors","_publishResult$metada","errors","red","join","green","metadata","publishedPackage","pattern","packResult","publish","code","exports"],"sources":["publish.cmd.tsx"],"sourcesContent":["import { ComponentResult } from '@teambit/builder';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';\n\nimport { Publisher, PublisherOptions } from './publisher';\n\ntype PublishArgs = [string];\n\nexport class PublishCmd implements Command {\n name = 'publish <component-pattern>';\n description = 'publish components to npm (npm publish)';\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n options = [\n ['d', 'dry-run', 'npm publish --dry-run'],\n ['', 'allow-staged', 'allow publish components that were not exported yet (not recommended)'],\n ['j', 'json', 'return the output as JSON'],\n ] as CommandOptions;\n alias = '';\n private = true;\n group = 'collaborate';\n\n constructor(private publisher: Publisher) {}\n\n async report(args: PublishArgs, options: PublisherOptions) {\n const result = await this.json(args, options);\n const publishResults: ComponentResult[] = result.data;\n if (!publishResults.length) return 'no components were found candidate for publish';\n\n const publishOrDryRun = options.dryRun ? 'dry-run' : 'published';\n const title = chalk.white.bold(`successfully ${publishOrDryRun} the following components\\n`);\n const output = publishResults\n .map((publishResult) => {\n const compName = publishResult.component.id.toString();\n const getData = () => {\n if (publishResult.errors?.length) {\n return chalk.red(publishResult.errors.join('\\n'));\n }\n return chalk.green((publishResult.metadata?.publishedPackage as string) || '');\n };\n return `${chalk.bold(compName)}\\n${getData()}\\n`;\n })\n .join('\\n');\n return title + output;\n }\n\n async json([pattern]: PublishArgs, options: PublisherOptions): Promise<{ data: ComponentResult[]; code: number }> {\n const packResult = await this.publisher.publish(pattern, options);\n return {\n data: packResult,\n code: 0,\n };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAEA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAMO,MAAMI,UAAU,CAAoB;EAkBzCC,WAAWA,CAASC,SAAoB,EAAE;IAAA,KAAtBA,SAAoB,GAApBA,SAAoB;IAAA,IAAAC,gBAAA,GAAAC,OAAA,gBAjBjC,6BAA6B;IAAA,IAAAD,gBAAA,GAAAC,OAAA,uBACtB,yCAAyC;IAAA,IAAAD,gBAAA,GAAAC,OAAA,qBAC3C,CACV;MACEC,IAAI,EAAE,mBAAmB;MACzBC,WAAW,EAAEC;IACf,CAAC,CACF;IAAA,IAAAJ,gBAAA,GAAAC,OAAA,mBACS,CACR,CAAC,GAAG,EAAE,SAAS,EAAE,uBAAuB,CAAC,EACzC,CAAC,EAAE,EAAE,cAAc,EAAE,uEAAuE,CAAC,EAC7F,CAAC,GAAG,EAAE,MAAM,EAAE,2BAA2B,CAAC,CAC3C;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBACO,EAAE;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACA,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBACN,aAAa;EAEsB;EAE3C,MAAMI,MAAMA,CAACC,IAAiB,EAAEC,OAAyB,EAAE;IACzD,MAAMC,MAAM,GAAG,MAAM,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AC;IACjE,OAAO;MACLd,IAAI,EAAE0C,UAAU;MAChBE,IAAI,EAAE;IACR,CAAC;EACH;AACF;AAACC,OAAA,CAAAzC,UAAA,GAAAA,UAAA"}
1
+ {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_constants","PublishCmd","constructor","publisher","_defineProperty2","default","name","description","COMPONENT_PATTERN_HELP","report","args","options","result","json","publishResults","length","publishOrDryRun","dryRun","title","chalk","white","bold","output","map","publishResult","compName","component","id","toString","getData","_publishResult$errors","_publishResult$metada","errors","red","join","green","metadata","publishedPackage","pattern","packResult","publish","code","exports"],"sources":["publish.cmd.tsx"],"sourcesContent":["import { ComponentResult } from '@teambit/builder';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';\n\nimport { Publisher, PublisherOptions } from './publisher';\n\ntype PublishArgs = [string];\n\nexport class PublishCmd implements Command {\n name = 'publish <component-pattern>';\n description = 'publish components to npm (npm publish)';\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n options = [\n ['d', 'dry-run', 'npm publish --dry-run'],\n ['', 'allow-staged', 'allow publishing components that were not exported yet (not recommended)'],\n ['j', 'json', 'return the output as JSON'],\n ] as CommandOptions;\n alias = '';\n private = true;\n group = 'collaborate';\n\n constructor(private publisher: Publisher) {}\n\n async report(args: PublishArgs, options: PublisherOptions) {\n const result = await this.json(args, options);\n const publishResults: ComponentResult[] = result.data;\n if (!publishResults.length) return 'no components candidates found to publish';\n\n const publishOrDryRun = options.dryRun ? 'dry-run' : 'published';\n const title = chalk.white.bold(`successfully ${publishOrDryRun} the following components\\n`);\n const output = publishResults\n .map((publishResult) => {\n const compName = publishResult.component.id.toString();\n const getData = () => {\n if (publishResult.errors?.length) {\n return chalk.red(publishResult.errors.join('\\n'));\n }\n return chalk.green((publishResult.metadata?.publishedPackage as string) || '');\n };\n return `${chalk.bold(compName)}\\n${getData()}\\n`;\n })\n .join('\\n');\n return title + output;\n }\n\n async json([pattern]: PublishArgs, options: PublisherOptions): Promise<{ data: ComponentResult[]; code: number }> {\n const packResult = await this.publisher.publish(pattern, options);\n return {\n data: packResult,\n code: 0,\n };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAEA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAMO,MAAMI,UAAU,CAAoB;EAkBzCC,WAAWA,CAASC,SAAoB,EAAE;IAAA,KAAtBA,SAAoB,GAApBA,SAAoB;IAAA,IAAAC,gBAAA,GAAAC,OAAA,gBAjBjC,6BAA6B;IAAA,IAAAD,gBAAA,GAAAC,OAAA,uBACtB,yCAAyC;IAAA,IAAAD,gBAAA,GAAAC,OAAA,qBAC3C,CACV;MACEC,IAAI,EAAE,mBAAmB;MACzBC,WAAW,EAAEC;IACf,CAAC,CACF;IAAA,IAAAJ,gBAAA,GAAAC,OAAA,mBACS,CACR,CAAC,GAAG,EAAE,SAAS,EAAE,uBAAuB,CAAC,EACzC,CAAC,EAAE,EAAE,cAAc,EAAE,0EAA0E,CAAC,EAChG,CAAC,GAAG,EAAE,MAAM,EAAE,2BAA2B,CAAC,CAC3C;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBACO,EAAE;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACA,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBACN,aAAa;EAEsB;EAE3C,MAAMI,MAAMA,CAACC,IAAiB,EAAEC,OAAyB,EAAE;IACzD,MAAMC,MAAM,GAAG,MAAM,IAAI,CAACC,IAAI,CAACH,IAAI,EAAEC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UAAU;MAChBE,IAAI,EAAE;IACR,CAAC;EACH;AACF;AAACC,OAAA,CAAAzC,UAAA,GAAAA,UAAA"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/pkg",
3
- "version": "0.0.1133",
3
+ "version": "0.0.1134",
4
4
  "homepage": "https://bit.cloud/teambit/pkg/pkg",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.pkg",
8
8
  "name": "pkg",
9
- "version": "0.0.1133"
9
+ "version": "0.0.1134"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -22,25 +22,25 @@
22
22
  "core-js": "^3.0.0",
23
23
  "@babel/runtime": "7.20.0",
24
24
  "@teambit/harmony": "0.4.6",
25
- "@teambit/cli": "0.0.759",
26
- "@teambit/builder": "0.0.1133",
27
- "@teambit/logger": "0.0.852",
28
- "@teambit/typescript": "0.0.1133",
29
- "@teambit/envs": "0.0.1133",
30
- "@teambit/component": "0.0.1133",
31
- "@teambit/express": "0.0.857",
32
- "@teambit/isolator": "0.0.1133",
33
- "@teambit/scope": "0.0.1133",
34
- "@teambit/graphql": "0.0.1133",
25
+ "@teambit/cli": "0.0.760",
26
+ "@teambit/builder": "0.0.1134",
27
+ "@teambit/logger": "0.0.853",
28
+ "@teambit/typescript": "0.0.1134",
29
+ "@teambit/envs": "0.0.1134",
30
+ "@teambit/component": "0.0.1134",
31
+ "@teambit/express": "0.0.858",
32
+ "@teambit/isolator": "0.0.1134",
33
+ "@teambit/scope": "0.0.1134",
34
+ "@teambit/graphql": "0.0.1134",
35
35
  "@teambit/bit-error": "0.0.402",
36
36
  "@teambit/component-issues": "0.0.95",
37
37
  "@teambit/component-package-version": "0.0.425",
38
- "@teambit/dependency-resolver": "0.0.1133",
39
- "@teambit/workspace.modules.node-modules-linker": "0.0.101",
40
- "@teambit/workspace": "0.0.1133",
38
+ "@teambit/dependency-resolver": "0.0.1134",
39
+ "@teambit/workspace.modules.node-modules-linker": "0.0.102",
40
+ "@teambit/workspace": "0.0.1134",
41
41
  "@teambit/ui-foundation.ui.use-box.menu": "0.0.136",
42
- "@teambit/ui": "0.0.1133",
43
- "@teambit/compiler": "0.0.1133"
42
+ "@teambit/ui": "0.0.1134",
43
+ "@teambit/compiler": "0.0.1134"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/mime": "2.0.3",
@@ -55,7 +55,7 @@
55
55
  "@teambit/pkg.content.packages-overview": "1.95.9"
56
56
  },
57
57
  "peerDependencies": {
58
- "@teambit/legacy": "1.0.542",
58
+ "@teambit/legacy": "1.0.544",
59
59
  "react": "^16.8.0 || ^17.0.0",
60
60
  "react-dom": "^16.8.0 || ^17.0.0"
61
61
  },
package/publish.cmd.tsx CHANGED
@@ -18,7 +18,7 @@ export class PublishCmd implements Command {
18
18
  ];
19
19
  options = [
20
20
  ['d', 'dry-run', 'npm publish --dry-run'],
21
- ['', 'allow-staged', 'allow publish components that were not exported yet (not recommended)'],
21
+ ['', 'allow-staged', 'allow publishing components that were not exported yet (not recommended)'],
22
22
  ['j', 'json', 'return the output as JSON'],
23
23
  ] as CommandOptions;
24
24
  alias = '';
@@ -30,7 +30,7 @@ export class PublishCmd implements Command {
30
30
  async report(args: PublishArgs, options: PublisherOptions) {
31
31
  const result = await this.json(args, options);
32
32
  const publishResults: ComponentResult[] = result.data;
33
- if (!publishResults.length) return 'no components were found candidate for publish';
33
+ if (!publishResults.length) return 'no components candidates found to publish';
34
34
 
35
35
  const publishOrDryRun = options.dryRun ? 'dry-run' : 'published';
36
36
  const title = chalk.white.bold(`successfully ${publishOrDryRun} the following components\n`);