@teambit/pkg 1.0.225 → 1.0.227

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 (35) hide show
  1. package/artifacts/__bit_junit.xml +1 -1
  2. package/artifacts/preview/static/css/teambit.pkg/{pkg-preview.828ea776.css → pkg-preview.a13b4bf9.css} +6 -6
  3. package/artifacts/preview/teambit_pkg_pkg-preview.js +6 -6
  4. package/artifacts/schema.json +112 -464
  5. package/dist/{preview-1712546198033.js → preview-1712719054377.js} +2 -2
  6. package/package.json +19 -19
  7. package/tsconfig.json +43 -1
  8. package/dist/exceptions/index.d.ts +0 -3
  9. package/dist/exceptions/package-tar-filet-not-found.d.ts +0 -6
  10. package/dist/exceptions/pkg-artifact-not-found.d.ts +0 -6
  11. package/dist/exceptions/scope-not-found.d.ts +0 -5
  12. package/dist/index.d.ts +0 -6
  13. package/dist/pack.cmd.d.ts +0 -25
  14. package/dist/pack.task.d.ts +0 -17
  15. package/dist/package-dependency/index.d.ts +0 -2
  16. package/dist/package-dependency/package-dependency-factory.d.ts +0 -8
  17. package/dist/package-dependency/package-dependency.d.ts +0 -7
  18. package/dist/package-env-type.d.ts +0 -8
  19. package/dist/package-generator.d.ts +0 -19
  20. package/dist/package.fragment.d.ts +0 -16
  21. package/dist/package.route.d.ts +0 -18
  22. package/dist/packer.d.ts +0 -42
  23. package/dist/pkg-artifact.d.ts +0 -5
  24. package/dist/pkg.aspect.d.ts +0 -3
  25. package/dist/pkg.composition.d.ts +0 -1
  26. package/dist/pkg.graphql.d.ts +0 -3
  27. package/dist/pkg.main.runtime.d.ts +0 -194
  28. package/dist/pkg.service.d.ts +0 -18
  29. package/dist/pkg.ui.runtime.d.ts +0 -10
  30. package/dist/prepare-packages.task.d.ts +0 -31
  31. package/dist/publish-dry-run.task.d.ts +0 -18
  32. package/dist/publish.cmd.d.ts +0 -24
  33. package/dist/publish.task.d.ts +0 -15
  34. package/dist/publisher.d.ts +0 -32
  35. package/dist/write-npm-ignore.d.ts +0 -3
@@ -1,24 +0,0 @@
1
- import { ComponentResult } from '@teambit/builder';
2
- import { Command, CommandOptions } from '@teambit/cli';
3
- import { Publisher, PublisherOptions } from './publisher';
4
- type PublishArgs = [string];
5
- export declare class PublishCmd implements Command {
6
- private publisher;
7
- name: string;
8
- description: string;
9
- arguments: {
10
- name: string;
11
- description: string;
12
- }[];
13
- options: CommandOptions;
14
- alias: string;
15
- private: boolean;
16
- group: string;
17
- constructor(publisher: Publisher);
18
- report(args: PublishArgs, options: PublisherOptions): Promise<string>;
19
- json([pattern]: PublishArgs, options: PublisherOptions): Promise<{
20
- data: ComponentResult[];
21
- code: number;
22
- }>;
23
- }
24
- export {};
@@ -1,15 +0,0 @@
1
- import { BuildContext, BuiltTaskResult, BuildTask, TaskLocation } from '@teambit/builder';
2
- import { Logger } from '@teambit/logger';
3
- import { Publisher } from './publisher';
4
- /**
5
- * publish components by running "npm publish"
6
- */
7
- export declare class PublishTask implements BuildTask {
8
- readonly aspectId: string;
9
- private publisher;
10
- private logger;
11
- readonly name = "PublishComponents";
12
- readonly location: TaskLocation;
13
- constructor(aspectId: string, publisher: Publisher, logger: Logger);
14
- execute(context: BuildContext): Promise<BuiltTaskResult>;
15
- }
@@ -1,32 +0,0 @@
1
- import { ComponentResult } from '@teambit/builder';
2
- import { Capsule, IsolatorMain } from '@teambit/isolator';
3
- import { Logger } from '@teambit/logger';
4
- import { Workspace } from '@teambit/workspace';
5
- import { ExtensionDataList } from '@teambit/legacy/dist/consumer/config/extension-data';
6
- import { Scope } from '@teambit/legacy/dist/scope';
7
- export type PublisherOptions = {
8
- dryRun?: boolean;
9
- allowStaged?: boolean;
10
- };
11
- export declare class Publisher {
12
- private isolator;
13
- private logger;
14
- private scope;
15
- private workspace;
16
- options: PublisherOptions;
17
- packageManager: string;
18
- constructor(isolator: IsolatorMain, logger: Logger, scope: Scope, workspace: Workspace, options?: PublisherOptions);
19
- publish(componentPattern: string, options: PublisherOptions): Promise<ComponentResult[]>;
20
- publishMultipleCapsules(capsules: Capsule[]): Promise<ComponentResult[]>;
21
- private publishOneCapsule;
22
- private getTagFlagForPreRelease;
23
- private getComponentCapsules;
24
- /**
25
- * only components that use pkg extension and configure "publishConfig" with their own registry
26
- * or custom "name", should be published. ignore the rest.
27
- */
28
- private getIdsToPublish;
29
- shouldPublish(extensions: ExtensionDataList): boolean;
30
- private getExtraArgsFromConfig;
31
- private throwForNonStagedOrTaggedComponents;
32
- }
@@ -1,3 +0,0 @@
1
- import { EnvsMain } from '@teambit/envs';
2
- import { Capsule } from '@teambit/isolator';
3
- export declare function writeNpmIgnore(capsule: Capsule, envs: EnvsMain): Promise<void>;