@teambit/builder 1.0.9 → 1.0.10

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.
@@ -22,24 +22,35 @@ export type ArtifactDefinition = {
22
22
  description?: string;
23
23
 
24
24
  /**
25
- * glob patterns of files to include upon artifact creation. minimatch is used to match the patterns.
26
- * e.g. ['*.ts', '!foo.ts'] matches all ts files but ignores foo.ts.
25
+ * glob patterns of files to include upon artifact creation.
26
+ * examples:
27
+ * ['*.ts', '!foo.ts'] - matches all ts files but ignores foo.ts.
28
+ * ['dist'] - matches all files recursively from dist dir. (similar to 'dist/**').
29
+ *
30
+ * the glob array are passed to [globby](https://www.npmjs.com/package/globby), which interprets the patterns
31
+ * according to [minimatch](https://github.com/isaacs/minimatch#usage).
27
32
  */
28
33
  globPatterns?: string[];
29
34
 
30
35
  /**
36
+ * @deprecated use globPatterns instead.
37
+ *
31
38
  * directories of files to include upon artifact creation. minimatch is used to match the patterns.
32
39
  * e.g. ['/tmp'] will include all files from tmp dir
33
40
  */
34
41
  directories?: string[];
35
42
 
36
43
  /**
44
+ * @deprecated use globPatterns instead.
45
+ *
37
46
  * define the root directory for reading the artifacts from the capsule file system.
38
47
  * the rootDir must be unique per artifacts, otherwise we risk overriding data between artifacts.
39
48
  */
40
49
  rootDir?: string;
41
50
 
42
51
  /**
52
+ * @deprecated use globPatterns instead.
53
+ *
43
54
  * adds a directory prefix for all artifact files.
44
55
  */
45
56
  dirPrefix?: string;
@@ -18,21 +18,32 @@ export declare type ArtifactDefinition = {
18
18
  */
19
19
  description?: string;
20
20
  /**
21
- * glob patterns of files to include upon artifact creation. minimatch is used to match the patterns.
22
- * e.g. ['*.ts', '!foo.ts'] matches all ts files but ignores foo.ts.
21
+ * glob patterns of files to include upon artifact creation.
22
+ * examples:
23
+ * ['*.ts', '!foo.ts'] - matches all ts files but ignores foo.ts.
24
+ * ['dist'] - matches all files recursively from dist dir. (similar to 'dist/**').
25
+ *
26
+ * the glob array are passed to [globby](https://www.npmjs.com/package/globby), which interprets the patterns
27
+ * according to [minimatch](https://github.com/isaacs/minimatch#usage).
23
28
  */
24
29
  globPatterns?: string[];
25
30
  /**
31
+ * @deprecated use globPatterns instead.
32
+ *
26
33
  * directories of files to include upon artifact creation. minimatch is used to match the patterns.
27
34
  * e.g. ['/tmp'] will include all files from tmp dir
28
35
  */
29
36
  directories?: string[];
30
37
  /**
38
+ * @deprecated use globPatterns instead.
39
+ *
31
40
  * define the root directory for reading the artifacts from the capsule file system.
32
41
  * the rootDir must be unique per artifacts, otherwise we risk overriding data between artifacts.
33
42
  */
34
43
  rootDir?: string;
35
44
  /**
45
+ * @deprecated use globPatterns instead.
46
+ *
36
47
  * adds a directory prefix for all artifact files.
37
48
  */
38
49
  dirPrefix?: string;
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["artifact-definition.ts"],"sourcesContent":["import { ArtifactStorageResolver } from '..';\n\nexport type ArtifactDefinition = {\n /**\n * name of the artifact.\n * e.g. a project might utilize two different artifacts for the same typescript compiler, one\n * that generates ES5 files and another for ES6, this prop helps to distinguish between the two.\n */\n name: string;\n\n /**\n * aspect id that created the artifact. sometimes it's not the same as the task.id.\n * e.g. teambit.compilation/compiler executes teambit.typescript/typescript code that generates dists artifacts\n * the generatedBy in this case is the teambit.typescript/typescript while the task.id is\n * teambit.compilation/compiler\n */\n generatedBy?: string;\n\n /**\n * description of the artifact.\n */\n description?: string;\n\n /**\n * glob patterns of files to include upon artifact creation. minimatch is used to match the patterns.\n * e.g. ['*.ts', '!foo.ts'] matches all ts files but ignores foo.ts.\n */\n globPatterns?: string[];\n\n /**\n * directories of files to include upon artifact creation. minimatch is used to match the patterns.\n * e.g. ['/tmp'] will include all files from tmp dir\n */\n directories?: string[];\n\n /**\n * define the root directory for reading the artifacts from the capsule file system.\n * the rootDir must be unique per artifacts, otherwise we risk overriding data between artifacts.\n */\n rootDir?: string;\n\n /**\n * adds a directory prefix for all artifact files.\n */\n dirPrefix?: string;\n\n /**\n * determine the context of the artifact.\n * default artifact context is `component`.\n * \"env\" is useful when the same file is generated for all components, for example, \"preview\"\n * task may create the same webpack file for all components of that env.\n */\n context?: 'component' | 'env';\n\n /**\n * storage resolver. can be used to replace where artifacts are stored.\n * default resolver persists artifacts on scope. (not recommended for large files!)\n */\n storageResolver?: ArtifactStorageResolver;\n};\n\nexport type ArtifactModelDefinition = Omit<ArtifactDefinition, 'storageResolver'> & {\n storageResolver?: string;\n};\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["artifact-definition.ts"],"sourcesContent":["import { ArtifactStorageResolver } from '..';\n\nexport type ArtifactDefinition = {\n /**\n * name of the artifact.\n * e.g. a project might utilize two different artifacts for the same typescript compiler, one\n * that generates ES5 files and another for ES6, this prop helps to distinguish between the two.\n */\n name: string;\n\n /**\n * aspect id that created the artifact. sometimes it's not the same as the task.id.\n * e.g. teambit.compilation/compiler executes teambit.typescript/typescript code that generates dists artifacts\n * the generatedBy in this case is the teambit.typescript/typescript while the task.id is\n * teambit.compilation/compiler\n */\n generatedBy?: string;\n\n /**\n * description of the artifact.\n */\n description?: string;\n\n /**\n * glob patterns of files to include upon artifact creation.\n * examples:\n * ['*.ts', '!foo.ts'] - matches all ts files but ignores foo.ts.\n * ['dist'] - matches all files recursively from dist dir. (similar to 'dist/**').\n *\n * the glob array are passed to [globby](https://www.npmjs.com/package/globby), which interprets the patterns\n * according to [minimatch](https://github.com/isaacs/minimatch#usage).\n */\n globPatterns?: string[];\n\n /**\n * @deprecated use globPatterns instead.\n *\n * directories of files to include upon artifact creation. minimatch is used to match the patterns.\n * e.g. ['/tmp'] will include all files from tmp dir\n */\n directories?: string[];\n\n /**\n * @deprecated use globPatterns instead.\n *\n * define the root directory for reading the artifacts from the capsule file system.\n * the rootDir must be unique per artifacts, otherwise we risk overriding data between artifacts.\n */\n rootDir?: string;\n\n /**\n * @deprecated use globPatterns instead.\n *\n * adds a directory prefix for all artifact files.\n */\n dirPrefix?: string;\n\n /**\n * determine the context of the artifact.\n * default artifact context is `component`.\n * \"env\" is useful when the same file is generated for all components, for example, \"preview\"\n * task may create the same webpack file for all components of that env.\n */\n context?: 'component' | 'env';\n\n /**\n * storage resolver. can be used to replace where artifacts are stored.\n * default resolver persists artifacts on scope. (not recommended for large files!)\n */\n storageResolver?: ArtifactStorageResolver;\n};\n\nexport type ArtifactModelDefinition = Omit<ArtifactDefinition, 'storageResolver'> & {\n storageResolver?: string;\n};\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pipelines_builder@1.0.9/dist/builder.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pipelines_builder@1.0.9/dist/builder.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pipelines_builder@1.0.10/dist/builder.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pipelines_builder@1.0.10/dist/builder.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/builder",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "homepage": "https://bit.cloud/teambit/pipelines/builder",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.pipelines",
8
8
  "name": "builder",
9
- "version": "1.0.9"
9
+ "version": "1.0.10"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -27,23 +27,23 @@
27
27
  "@teambit/graph.cleargraph": "0.0.1",
28
28
  "@teambit/harmony": "0.4.6",
29
29
  "@teambit/component-id": "0.0.427",
30
- "@teambit/component": "1.0.9",
31
- "@teambit/envs": "1.0.9",
32
- "@teambit/logger": "0.0.884",
30
+ "@teambit/component": "1.0.10",
31
+ "@teambit/envs": "1.0.10",
32
+ "@teambit/logger": "0.0.885",
33
33
  "@teambit/toolbox.string.capitalize": "0.0.492",
34
- "@teambit/tester": "1.0.9",
35
- "@teambit/isolator": "1.0.9",
36
- "@teambit/lane-id": "0.0.304",
37
- "@teambit/cli": "0.0.791",
38
- "@teambit/workspace": "1.0.9",
39
- "@teambit/aspect-loader": "1.0.9",
40
- "@teambit/aspect": "1.0.9",
41
- "@teambit/generator": "1.0.10",
42
- "@teambit/global-config": "0.0.793",
43
- "@teambit/graphql": "1.0.9",
44
- "@teambit/scope": "1.0.9",
45
- "@teambit/ui": "1.0.9",
46
- "@teambit/express": "0.0.890",
34
+ "@teambit/tester": "1.0.10",
35
+ "@teambit/isolator": "1.0.10",
36
+ "@teambit/lane-id": "0.0.305",
37
+ "@teambit/cli": "0.0.792",
38
+ "@teambit/workspace": "1.0.10",
39
+ "@teambit/aspect-loader": "1.0.10",
40
+ "@teambit/aspect": "1.0.10",
41
+ "@teambit/generator": "1.0.11",
42
+ "@teambit/global-config": "0.0.794",
43
+ "@teambit/graphql": "1.0.10",
44
+ "@teambit/scope": "1.0.10",
45
+ "@teambit/ui": "1.0.10",
46
+ "@teambit/express": "0.0.891",
47
47
  "@teambit/bit-error": "0.0.404"
48
48
  },
49
49
  "devDependencies": {
@@ -61,7 +61,7 @@
61
61
  "@teambit/pipelines.aspect-docs.builder": "0.0.161"
62
62
  },
63
63
  "peerDependencies": {
64
- "@teambit/legacy": "1.0.571",
64
+ "@teambit/legacy": "1.0.572",
65
65
  "react": "^16.8.0 || ^17.0.0",
66
66
  "react-dom": "^16.8.0 || ^17.0.0"
67
67
  },