@teambit/compiler 1.0.1096 → 1.0.1097

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.
@@ -70,7 +70,13 @@ class CompilerTask {
70
70
  await Promise.all(context.capsuleNetwork.seedersCapsules.map(async capsule => {
71
71
  const relCompDir = _path().default.relative(context.capsuleNetwork.capsulesRootDir, capsule.path).replace(/\\/g, '/');
72
72
  const injectedDirs = await this.dependencyResolver.getInjectedDirs(context.capsuleNetwork.capsulesRootDir, relCompDir, this.dependencyResolver.getPackageName(capsule.component));
73
- return (0, _toolboxFs().hardLinkDirectory)(capsule.path, injectedDirs.map(injectedDir => _path().default.join(context.capsuleNetwork.capsulesRootDir, injectedDir)));
73
+ return (0, _toolboxFs().hardLinkDirectory)(capsule.path,
74
+ // An injected copy is reported relative to the lockfile dir when it sits under it, and
75
+ // absolute when it cannot - which is what the global virtual store always produces, since
76
+ // its slots live outside the capsule root entirely. Joining an absolute path onto the
77
+ // capsule root would silently produce `<capsulesRoot>/<store path>` and link the
78
+ // artifacts into nowhere.
79
+ injectedDirs.map(injectedDir => _path().default.isAbsolute(injectedDir) ? injectedDir : _path().default.join(context.capsuleNetwork.capsulesRootDir, injectedDir)));
74
80
  }));
75
81
  }
76
82
  async postBuild(context, tasksResults) {
@@ -1 +1 @@
1
- {"version":3,"names":["_toolboxFs","data","require","_fsExtra","_interopRequireDefault","_path","_compiler","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","CompilerTask","constructor","aspectId","name","compilerInstance","dependencyResolver","artifactName","description","preBuild","context","Promise","all","capsuleNetwork","seedersCapsules","map","capsule","copyNonSupportedFiles","execute","buildResults","build","_hardLinkBuildArtifactsOnCapsules","relCompDir","path","relative","capsulesRootDir","replace","injectedDirs","getInjectedDirs","getPackageName","component","hardLinkDirectory","injectedDir","join","postBuild","tasksResults","compiler","shouldCopyNonSupportedFiles","filesystem","files","file","isFileSupported","content","contents","fs","outputFile","distDir","from","options","CompilerAspect","id","depResolve","getAspect","exports"],"sources":["compiler.task.ts"],"sourcesContent":["import type { BuildContext, BuiltTaskResult, BuildTask, TaskResultsList } from '@teambit/builder';\nimport type { Capsule } from '@teambit/isolator';\nimport { hardLinkDirectory } from '@teambit/toolbox.fs.hard-link-directory';\nimport type { EnvContext, EnvHandler } from '@teambit/envs';\nimport type { DependencyResolverMain } from '@teambit/dependency-resolver';\nimport fs from 'fs-extra';\nimport path from 'path';\nimport type { Compiler } from './types';\nimport { CompilerAspect } from './compiler.aspect';\n\nexport type CompilerTaskOptions = {\n /**\n * instance of compiler to use.\n */\n compiler: EnvHandler<Compiler>;\n\n /**\n * name of compiler task\n */\n name?: string;\n};\n\n/**\n * compiler build task. Allows to compile components during component build.\n */\nexport class CompilerTask implements BuildTask {\n readonly description = 'compile components';\n constructor(\n readonly aspectId: string,\n readonly name: string,\n readonly compilerInstance: Compiler,\n private dependencyResolver: DependencyResolverMain\n ) {\n if (compilerInstance.artifactName) {\n this.description += ` for artifact ${compilerInstance.artifactName}`;\n }\n }\n\n async preBuild(context: BuildContext) {\n await Promise.all(\n context.capsuleNetwork.seedersCapsules.map((capsule) =>\n this.copyNonSupportedFiles(capsule, this.compilerInstance)\n )\n );\n if (!this.compilerInstance.preBuild) return;\n await this.compilerInstance.preBuild(context);\n }\n\n async execute(context: BuildContext): Promise<BuiltTaskResult> {\n const buildResults = await this.compilerInstance.build(context);\n await this._hardLinkBuildArtifactsOnCapsules(context);\n return buildResults;\n }\n\n /**\n * This function hard links the compiled artifacts to the `node_modules` of other component capsules.\n * For instance, if we have a `button` component that is a dependency of the `card` component,\n * then the `dist` folder of the `button` component will be copied to `<card_capsule>/node_modules/button/dist`.\n */\n private async _hardLinkBuildArtifactsOnCapsules(context: BuildContext): Promise<void> {\n await Promise.all(\n context.capsuleNetwork.seedersCapsules.map(async (capsule) => {\n const relCompDir = path.relative(context.capsuleNetwork.capsulesRootDir, capsule.path).replace(/\\\\/g, '/');\n const injectedDirs = await this.dependencyResolver.getInjectedDirs(\n context.capsuleNetwork.capsulesRootDir,\n relCompDir,\n this.dependencyResolver.getPackageName(capsule.component)\n );\n return hardLinkDirectory(\n capsule.path,\n injectedDirs.map((injectedDir) => path.join(context.capsuleNetwork.capsulesRootDir, injectedDir))\n );\n })\n );\n }\n\n async postBuild?(context: BuildContext, tasksResults: TaskResultsList): Promise<void> {\n if (!this.compilerInstance.postBuild) return;\n await this.compilerInstance.postBuild(context, tasksResults);\n }\n\n async copyNonSupportedFiles(capsule: Capsule, compiler: Compiler) {\n if (!compiler.shouldCopyNonSupportedFiles) {\n return;\n }\n const component = capsule.component;\n await Promise.all(\n component.filesystem.files.map(async (file) => {\n if (compiler.isFileSupported(file.path)) return;\n const content = file.contents;\n await fs.outputFile(path.join(capsule.path, compiler.distDir, file.relative), content);\n })\n );\n }\n\n static from(options: CompilerTaskOptions) {\n return (context: EnvContext) => {\n const aspectId = CompilerAspect.id;\n const name = options.name || 'compiler-task';\n const depResolve = context.getAspect<any>('teambit.dependencies/dependency-resolver');\n return new CompilerTask(aspectId, name, options.compiler(context), depResolve);\n };\n }\n}\n"],"mappings":";;;;;;AAEA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,UAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,MAAA;EAAA,MAAAJ,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAG,KAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,UAAA;EAAA,MAAAL,IAAA,GAAAC,O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,CAACZ,QAAQ,CAAC1B,OAAO,CAAC,EAAEyC,UAAU,CAAC;IAChF,CAAC;EACH;AACF;AAACE,OAAA,CAAApD,YAAA,GAAAA,YAAA","ignoreList":[]}
1
+ {"version":3,"names":["_toolboxFs","data","require","_fsExtra","_interopRequireDefault","_path","_compiler","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","CompilerTask","constructor","aspectId","name","compilerInstance","dependencyResolver","artifactName","description","preBuild","context","Promise","all","capsuleNetwork","seedersCapsules","map","capsule","copyNonSupportedFiles","execute","buildResults","build","_hardLinkBuildArtifactsOnCapsules","relCompDir","path","relative","capsulesRootDir","replace","injectedDirs","getInjectedDirs","getPackageName","component","hardLinkDirectory","injectedDir","isAbsolute","join","postBuild","tasksResults","compiler","shouldCopyNonSupportedFiles","filesystem","files","file","isFileSupported","content","contents","fs","outputFile","distDir","from","options","CompilerAspect","id","depResolve","getAspect","exports"],"sources":["compiler.task.ts"],"sourcesContent":["import type { BuildContext, BuiltTaskResult, BuildTask, TaskResultsList } from '@teambit/builder';\nimport type { Capsule } from '@teambit/isolator';\nimport { hardLinkDirectory } from '@teambit/toolbox.fs.hard-link-directory';\nimport type { EnvContext, EnvHandler } from '@teambit/envs';\nimport type { DependencyResolverMain } from '@teambit/dependency-resolver';\nimport fs from 'fs-extra';\nimport path from 'path';\nimport type { Compiler } from './types';\nimport { CompilerAspect } from './compiler.aspect';\n\nexport type CompilerTaskOptions = {\n /**\n * instance of compiler to use.\n */\n compiler: EnvHandler<Compiler>;\n\n /**\n * name of compiler task\n */\n name?: string;\n};\n\n/**\n * compiler build task. Allows to compile components during component build.\n */\nexport class CompilerTask implements BuildTask {\n readonly description = 'compile components';\n constructor(\n readonly aspectId: string,\n readonly name: string,\n readonly compilerInstance: Compiler,\n private dependencyResolver: DependencyResolverMain\n ) {\n if (compilerInstance.artifactName) {\n this.description += ` for artifact ${compilerInstance.artifactName}`;\n }\n }\n\n async preBuild(context: BuildContext) {\n await Promise.all(\n context.capsuleNetwork.seedersCapsules.map((capsule) =>\n this.copyNonSupportedFiles(capsule, this.compilerInstance)\n )\n );\n if (!this.compilerInstance.preBuild) return;\n await this.compilerInstance.preBuild(context);\n }\n\n async execute(context: BuildContext): Promise<BuiltTaskResult> {\n const buildResults = await this.compilerInstance.build(context);\n await this._hardLinkBuildArtifactsOnCapsules(context);\n return buildResults;\n }\n\n /**\n * This function hard links the compiled artifacts to the `node_modules` of other component capsules.\n * For instance, if we have a `button` component that is a dependency of the `card` component,\n * then the `dist` folder of the `button` component will be copied to `<card_capsule>/node_modules/button/dist`.\n */\n private async _hardLinkBuildArtifactsOnCapsules(context: BuildContext): Promise<void> {\n await Promise.all(\n context.capsuleNetwork.seedersCapsules.map(async (capsule) => {\n const relCompDir = path.relative(context.capsuleNetwork.capsulesRootDir, capsule.path).replace(/\\\\/g, '/');\n const injectedDirs = await this.dependencyResolver.getInjectedDirs(\n context.capsuleNetwork.capsulesRootDir,\n relCompDir,\n this.dependencyResolver.getPackageName(capsule.component)\n );\n return hardLinkDirectory(\n capsule.path,\n // An injected copy is reported relative to the lockfile dir when it sits under it, and\n // absolute when it cannot - which is what the global virtual store always produces, since\n // its slots live outside the capsule root entirely. Joining an absolute path onto the\n // capsule root would silently produce `<capsulesRoot>/<store path>` and link the\n // artifacts into nowhere.\n injectedDirs.map((injectedDir) =>\n path.isAbsolute(injectedDir) ? injectedDir : path.join(context.capsuleNetwork.capsulesRootDir, injectedDir)\n )\n );\n })\n );\n }\n\n async postBuild?(context: BuildContext, tasksResults: TaskResultsList): Promise<void> {\n if (!this.compilerInstance.postBuild) return;\n await this.compilerInstance.postBuild(context, tasksResults);\n }\n\n async copyNonSupportedFiles(capsule: Capsule, compiler: Compiler) {\n if (!compiler.shouldCopyNonSupportedFiles) {\n return;\n }\n const component = capsule.component;\n await Promise.all(\n component.filesystem.files.map(async (file) => {\n if (compiler.isFileSupported(file.path)) return;\n const content = file.contents;\n await fs.outputFile(path.join(capsule.path, compiler.distDir, file.relative), content);\n })\n );\n }\n\n static from(options: CompilerTaskOptions) {\n return (context: EnvContext) => {\n const aspectId = CompilerAspect.id;\n const name = options.name || 'compiler-task';\n const depResolve = context.getAspect<any>('teambit.dependencies/dependency-resolver');\n return new CompilerTask(aspectId, name, options.compiler(context), depResolve);\n };\n }\n}\n"],"mappings":";;;;;;AAEA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,UAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,MAAA;EAAA,MAAAJ,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAG,KAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,UAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,SAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAmD,SAAAG,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,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QAAQ,CAACC,2BAA2B,EAAE;MACzC;IACF;IACA,MAAMR,SAAS,GAAGd,OAAO,CAACc,SAAS;IACnC,MAAMnB,OAAO,CAACC,GAAG,CACfkB,SAAS,CAACS,UAAU,CAACC,KAAK,CAACzB,GAAG,CAAC,MAAO0B,IAAI,IAAK;MAC7C,IAAIJ,QAAQ,CAACK,eAAe,CAACD,IAAI,CAAClB,IAAI,CAAC,EAAE;MACzC,MAAMoB,OAAO,GAAGF,IAAI,CAACG,QAAQ;MAC7B,MAAMC,kBAAE,CAACC,UAAU,CAACvB,eAAI,CAACW,IAAI,CAAClB,OAAO,CAACO,IAAI,EAAEc,QAAQ,CAACU,OAAO,EAAEN,IAAI,CAACjB,QAAQ,CAAC,EAAEmB,OAAO,CAAC;IACxF,CAAC,CACH,CAAC;EACH;EAEA,OAAOK,IAAIA,CAACC,OAA4B,EAAE;IACxC,OAAQvC,OAAmB,IAAK;MAC9B,MAAMP,QAAQ,GAAG+C,0BAAc,CAACC,EAAE;MAClC,MAAM/C,IAAI,GAAG6C,OAAO,CAAC7C,IAAI,IAAI,eAAe;MAC5C,MAAMgD,UAAU,GAAG1C,OAAO,CAAC2C,SAAS,CAAM,0CAA0C,CAAC;MACrF,OAAO,IAAIpD,YAAY,CAACE,QAAQ,EAAEC,IAAI,EAAE6C,OAAO,CAACZ,QAAQ,CAAC3B,OAAO,CAAC,EAAE0C,UAAU,CAAC;IAChF,CAAC;EACH;AACF;AAACE,OAAA,CAAArD,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.1096/dist/compiler.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.1096/dist/compiler.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.1097/dist/compiler.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.1097/dist/compiler.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/compiler",
3
- "version": "1.0.1096",
3
+ "version": "1.0.1097",
4
4
  "homepage": "https://bit.cloud/teambit/compilation/compiler",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.compilation",
8
8
  "name": "compiler",
9
- "version": "1.0.1096"
9
+ "version": "1.0.1097"
10
10
  },
11
11
  "dependencies": {
12
12
  "pretty-time": "1.1.0",
@@ -18,32 +18,32 @@
18
18
  "p-map-series": "2.1.0",
19
19
  "@teambit/harmony": "0.4.12",
20
20
  "@teambit/component-id": "1.2.4",
21
+ "@teambit/component-issues": "0.0.183",
22
+ "@teambit/toolbox.fs.hard-link-directory": "0.0.37",
21
23
  "@teambit/toolbox.path.path": "0.0.21",
22
24
  "@teambit/workspace.root-components": "1.0.1",
23
25
  "@teambit/bit-error": "0.0.404",
24
- "@teambit/envs": "1.0.1096",
25
- "@teambit/cli": "0.0.1363",
26
- "@teambit/logger": "0.0.1456",
27
- "@teambit/pubsub": "1.0.1096",
28
- "@teambit/aspect-loader": "1.0.1096",
29
- "@teambit/builder": "1.0.1096",
30
- "@teambit/bundler": "1.0.1096",
31
- "@teambit/component-issues": "0.0.183",
32
- "@teambit/component": "1.0.1096",
33
- "@teambit/dependency-resolver": "1.0.1096",
34
- "@teambit/generator": "1.0.1097",
35
- "@teambit/issues": "1.0.1096",
36
- "@teambit/legacy.constants": "0.0.40",
37
- "@teambit/ui": "1.0.1096",
38
- "@teambit/watcher": "1.0.1096",
39
- "@teambit/workspace": "1.0.1096",
40
- "@teambit/isolator": "1.0.1096",
41
- "@teambit/toolbox.fs.hard-link-directory": "0.0.37",
42
- "@teambit/component.sources": "0.0.196",
43
- "@teambit/graph": "1.0.1096",
44
- "@teambit/multi-compiler": "1.0.1096",
45
- "@teambit/pkg.modules.component-package-name": "0.0.151",
46
- "@teambit/workspace.modules.node-modules-linker": "0.0.375"
26
+ "@teambit/envs": "1.0.1097",
27
+ "@teambit/cli": "0.0.1364",
28
+ "@teambit/logger": "0.0.1457",
29
+ "@teambit/pubsub": "1.0.1097",
30
+ "@teambit/aspect-loader": "1.0.1097",
31
+ "@teambit/builder": "1.0.1097",
32
+ "@teambit/bundler": "1.0.1097",
33
+ "@teambit/component": "1.0.1097",
34
+ "@teambit/dependency-resolver": "1.0.1097",
35
+ "@teambit/generator": "1.0.1098",
36
+ "@teambit/issues": "1.0.1097",
37
+ "@teambit/legacy.constants": "0.0.41",
38
+ "@teambit/ui": "1.0.1097",
39
+ "@teambit/watcher": "1.0.1097",
40
+ "@teambit/workspace": "1.0.1097",
41
+ "@teambit/isolator": "1.0.1097",
42
+ "@teambit/component.sources": "0.0.197",
43
+ "@teambit/graph": "1.0.1097",
44
+ "@teambit/multi-compiler": "1.0.1097",
45
+ "@teambit/pkg.modules.component-package-name": "0.0.152",
46
+ "@teambit/workspace.modules.node-modules-linker": "0.0.376"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/pretty-time": "^1.1.5",