@teambit/generator 0.0.0-6c5c1634a98558b82923eb4ed10909e7d011cf3c → 0.0.0-6e33a2fbfae18d509f5cf2e69434a64611db2017

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 (88) hide show
  1. package/dist/component-generator.d.ts +9 -9
  2. package/dist/component-generator.js.map +1 -1
  3. package/dist/component-template.d.ts +1 -1
  4. package/dist/component-template.js.map +1 -1
  5. package/dist/create.cmd.d.ts +4 -3
  6. package/dist/create.cmd.js +5 -1
  7. package/dist/create.cmd.js.map +1 -1
  8. package/dist/generator-env-type.d.ts +3 -3
  9. package/dist/generator-env-type.js.map +1 -1
  10. package/dist/generator.graphql.d.ts +3 -3
  11. package/dist/generator.graphql.js.map +1 -1
  12. package/dist/generator.main.runtime.d.ts +24 -17
  13. package/dist/generator.main.runtime.js +49 -1
  14. package/dist/generator.main.runtime.js.map +1 -1
  15. package/dist/generator.service.d.ts +3 -3
  16. package/dist/generator.service.js.map +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/new.cmd.d.ts +4 -3
  20. package/dist/new.cmd.js +4 -1
  21. package/dist/new.cmd.js.map +1 -1
  22. package/dist/{preview-1752590383237.js → preview-1765548248323.js} +2 -2
  23. package/dist/starter-list.d.ts +2 -2
  24. package/dist/starter-list.js.map +1 -1
  25. package/dist/starter.plugin.d.ts +2 -2
  26. package/dist/starter.plugin.js.map +1 -1
  27. package/dist/template-list.d.ts +2 -2
  28. package/dist/template-list.js.map +1 -1
  29. package/dist/templates/basic/basic.starter.d.ts +1 -1
  30. package/dist/templates/basic/basic.starter.js.map +1 -1
  31. package/dist/templates/basic/template/files/workspace-config.d.ts +1 -1
  32. package/dist/templates/basic/template/files/workspace-config.js.map +1 -1
  33. package/dist/templates/component-generator/files/component-template.d.ts +1 -1
  34. package/dist/templates/component-generator/files/component-template.js.map +1 -1
  35. package/dist/templates/component-generator/files/index.d.ts +1 -1
  36. package/dist/templates/component-generator/files/index.js.map +1 -1
  37. package/dist/templates/component-generator/index.d.ts +1 -1
  38. package/dist/templates/component-generator/index.js.map +1 -1
  39. package/dist/templates/component-generator-standalone/files/aspect-file.d.ts +1 -1
  40. package/dist/templates/component-generator-standalone/files/aspect-file.js.map +1 -1
  41. package/dist/templates/component-generator-standalone/files/index.d.ts +1 -1
  42. package/dist/templates/component-generator-standalone/files/index.js.map +1 -1
  43. package/dist/templates/component-generator-standalone/files/main-runtime.d.ts +1 -1
  44. package/dist/templates/component-generator-standalone/files/main-runtime.js.map +1 -1
  45. package/dist/templates/component-generator-standalone/index.d.ts +1 -1
  46. package/dist/templates/component-generator-standalone/index.js.map +1 -1
  47. package/dist/templates/starter/files/doc-file.d.ts +1 -1
  48. package/dist/templates/starter/files/doc-file.js.map +1 -1
  49. package/dist/templates/starter/files/index.d.ts +1 -1
  50. package/dist/templates/starter/files/index.js.map +1 -1
  51. package/dist/templates/starter/files/starter.d.ts +1 -1
  52. package/dist/templates/starter/files/starter.js.map +1 -1
  53. package/dist/templates/starter/index.d.ts +1 -1
  54. package/dist/templates/starter/index.js.map +1 -1
  55. package/dist/templates/starter-standalone/files/doc-file.d.ts +1 -1
  56. package/dist/templates/starter-standalone/files/doc-file.js.map +1 -1
  57. package/dist/templates/starter-standalone/files/index.d.ts +1 -1
  58. package/dist/templates/starter-standalone/files/index.js.map +1 -1
  59. package/dist/templates/starter-standalone/files/starter.d.ts +1 -1
  60. package/dist/templates/starter-standalone/files/starter.js.map +1 -1
  61. package/dist/templates/starter-standalone/index.d.ts +1 -1
  62. package/dist/templates/starter-standalone/index.js.map +1 -1
  63. package/dist/templates.cmd.d.ts +2 -2
  64. package/dist/templates.cmd.js +2 -2
  65. package/dist/templates.cmd.js.map +1 -1
  66. package/dist/workspace-generator.d.ts +5 -5
  67. package/dist/workspace-generator.js.map +1 -1
  68. package/dist/workspace-template.d.ts +1 -1
  69. package/dist/workspace-template.js.map +1 -1
  70. package/generator.service.tsx +3 -3
  71. package/package.json +31 -30
  72. package/templates/basic/basic.starter.ts +1 -1
  73. package/templates/basic/template/files/workspace-config.ts +1 -1
  74. package/templates/component-generator/files/component-template.ts +1 -1
  75. package/templates/component-generator/files/index.ts +1 -1
  76. package/templates/component-generator/index.ts +1 -1
  77. package/templates/component-generator-standalone/files/aspect-file.ts +1 -1
  78. package/templates/component-generator-standalone/files/index.ts +1 -1
  79. package/templates/component-generator-standalone/files/main-runtime.ts +1 -1
  80. package/templates/component-generator-standalone/index.ts +1 -1
  81. package/templates/starter/files/doc-file.ts +1 -1
  82. package/templates/starter/files/index.ts +1 -1
  83. package/templates/starter/files/starter.ts +1 -1
  84. package/templates/starter/index.ts +1 -1
  85. package/templates/starter-standalone/files/doc-file.ts +1 -1
  86. package/templates/starter-standalone/files/index.ts +1 -1
  87. package/templates/starter-standalone/files/starter.ts +1 -1
  88. package/templates/starter-standalone/index.ts +1 -1
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/generator",
3
- "version": "0.0.0-6c5c1634a98558b82923eb4ed10909e7d011cf3c",
3
+ "version": "0.0.0-6e33a2fbfae18d509f5cf2e69434a64611db2017",
4
4
  "homepage": "https://bit.cloud/teambit/generator/generator",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.generator",
8
8
  "name": "generator",
9
- "version": "6c5c1634a98558b82923eb4ed10909e7d011cf3c"
9
+ "version": "6e33a2fbfae18d509f5cf2e69434a64611db2017"
10
10
  },
11
11
  "dependencies": {
12
12
  "camelcase": "6.2.0",
@@ -20,40 +20,41 @@
20
20
  "@teambit/bit-error": "0.0.404",
21
21
  "@teambit/component-id": "1.2.4",
22
22
  "@teambit/harmony": "0.4.7",
23
+ "@teambit/legacy-bit-id": "1.1.3",
23
24
  "@teambit/git.modules.git-ignore": "1.0.2",
24
- "@teambit/envs": "0.0.0-5b37020b9a6189114b70ae00e2a04ba1d724647f",
25
- "@teambit/logger": "0.0.0-832b4d1e9bca380d131cc2f60a527be4a0698831",
26
- "@teambit/new-component-helper": "0.0.0-f24b9fa21707724d66d4c8b25367b1eb9bbdc2bf",
27
- "@teambit/pkg.modules.component-package-name": "0.0.62",
28
- "@teambit/tracker": "0.0.0-a00f9e27d0bb3b1950f243ac9f1393e8078323d3",
29
- "@teambit/workspace-config-files": "0.0.0-a2d46c316bb3138c16808d6625a07c47a4610e4c",
30
- "@teambit/workspace.modules.node-modules-linker": "0.0.283",
31
- "@teambit/workspace": "0.0.0-253e45120479321d0d14270ab6bebe293946c404",
32
- "@teambit/component": "0.0.0-0d92faf7c6c2f693826753d0f226259a2bccf0f5",
33
- "@teambit/cli": "0.0.0-f6692bb287c07d4cfb8e0854f2a6e29ea226f3a7",
34
- "@teambit/graphql": "0.0.0-8bee669f9535c32ffeb158a146ab583dad206468",
35
- "@teambit/aspect-loader": "0.0.0-35433364cf7446ba52fe8c3449bf474c6c3d9725",
36
- "@teambit/deprecation": "0.0.0-843b36c83b726b5af234ff5db65e35035f107179",
37
- "@teambit/git": "0.0.0-adf24ccf8040414fe46c394a2ef6dab1c6f39112",
38
- "@teambit/legacy.constants": "0.0.12",
39
- "@teambit/legacy.consumer-config": "0.0.55",
40
- "@teambit/legacy.scope": "0.0.55",
41
- "@teambit/scope": "0.0.0-d10f46744353c0ffcd13fb267c0115a8462a21d0",
42
- "@teambit/compiler": "0.0.0-40241f180a82f8585552c9a33d6da1ed2c9680fd",
43
- "@teambit/forking": "0.0.0-4089acf709421e16388ebd6c10f905641f77aee8",
44
- "@teambit/git.modules.git-executable": "0.0.13",
45
- "@teambit/host-initializer": "0.0.0-c0c2ce51891ea664f6b3da7768e33d026119442c",
46
- "@teambit/importer": "0.0.0-d12cc082247fdc638f3f3967bc3f8e4227bb1158",
47
- "@teambit/install": "0.0.0-f943d31b2bfaa0606ad4bf769bc78ea72fb5133d",
48
- "@teambit/ui": "0.0.0-1746f14056ad6a74cb8636590cd3b1dfdd39ff77",
49
- "@teambit/config": "0.0.0-dc8b44ace9eaaf74bb3586bd580755d0779a1f86"
25
+ "@teambit/envs": "0.0.0-22a2d6ac807990eaeb77e158754bfd4c42694fb5",
26
+ "@teambit/logger": "0.0.0-58aa37674b5f33f99993d17d916084fd934c3b1d",
27
+ "@teambit/new-component-helper": "0.0.0-ffb3778c84062991ccd7cdab11c07700e29f5a56",
28
+ "@teambit/pkg.modules.component-package-name": "0.0.0-d392f7fb470abc1958ac2f0332bbc5a4e2d8bc9b",
29
+ "@teambit/tracker": "0.0.0-858f03594aad520eea47f6af01f01091c7f03ccc",
30
+ "@teambit/workspace-config-files": "0.0.0-954876371bb03d06a26ee199ae2777fbe846f025",
31
+ "@teambit/workspace.modules.node-modules-linker": "0.0.0-e83b028846c6d5e68b612c7ae9feac8baada428a",
32
+ "@teambit/workspace": "0.0.0-8b2c572908de3da8a9116e4e76d2891e2e26d916",
33
+ "@teambit/component": "0.0.0-7055ede2555d01304154d27516ca66e24024a956",
34
+ "@teambit/cli": "0.0.0-a17c0423c8eaad3d6826dfd97f334baa972d85fb",
35
+ "@teambit/graphql": "0.0.0-e356acf7f8b6ff58896e33ff08c25593ccf36b73",
36
+ "@teambit/aspect-loader": "0.0.0-b916d59bf978385be17152630e2e48f7cbfaedaa",
37
+ "@teambit/deprecation": "0.0.0-5f983adcfa68a034b8e9b3df54dd1b5f33f88b4a",
38
+ "@teambit/git": "0.0.0-5a0186db6a77b2b466b6768f435e9c7faa15d4db",
39
+ "@teambit/legacy.constants": "0.0.0-3a89b1a01ec74399ee8b9482a57080568a0620bb",
40
+ "@teambit/legacy.consumer-config": "0.0.0-8c2bc5492e7ab934749bf4a5b7f602df2aab56e0",
41
+ "@teambit/legacy.scope": "0.0.0-9e9d19b9416d20094d98fbed30af05ffdc2e52e8",
42
+ "@teambit/scope": "0.0.0-1c5830e99066ab15daff83a4df8281252e7ec153",
43
+ "@teambit/compiler": "0.0.0-428a471cd7b4d571948598478a9fbc35549c8a80",
44
+ "@teambit/forking": "0.0.0-7711ebf519dc34b2adc197ae74d8c168f1b2e832",
45
+ "@teambit/git.modules.git-executable": "0.0.0-59feb0c0eda896f93c02d2fc20ec2a1f580ef0be",
46
+ "@teambit/host-initializer": "0.0.0-f9f1f52830324d625a9f515dbbfca3bde6f8e701",
47
+ "@teambit/importer": "0.0.0-3f5dbf37bf3c9338fa96c985fdbcaf8f2f361d34",
48
+ "@teambit/install": "0.0.0-f20f456c850ce5e7c9a96cf9b376cc185b166079",
49
+ "@teambit/ui": "0.0.0-51c25725b21e0e80e93b38d11b97a7ba173b43a0",
50
+ "@teambit/config": "0.0.0-0be419a0fcc4651a3ba40f391f7b680d4c4e20b3"
50
51
  },
51
52
  "devDependencies": {
52
53
  "@types/fs-extra": "9.0.7",
53
54
  "@types/lodash": "4.14.165",
54
55
  "@types/mocha": "9.1.0",
55
- "@teambit/harmony.envs.core-aspect-env": "0.0.69",
56
- "@teambit/generator.aspect-docs.generator": "0.0.175"
56
+ "@teambit/generator.aspect-docs.generator": "0.0.177",
57
+ "@teambit/harmony.envs.core-aspect-env": "0.1.0"
57
58
  },
58
59
  "peerDependencies": {
59
60
  "react": "^17.0.0 || ^18.0.0",
@@ -1,5 +1,5 @@
1
1
  import { gitIgnoreTemplate } from '@teambit/git.modules.git-ignore';
2
- import { WorkspaceContext, WorkspaceTemplate as Starter } from '../../workspace-template';
2
+ import type { WorkspaceContext, WorkspaceTemplate as Starter } from '../../workspace-template';
3
3
  import { workspaceConfig } from './template/files/workspace-config';
4
4
  import { packageJson } from './template/files/package-json';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { getWorkspaceConfigTemplateParsed, stringifyWorkspaceConfig } from '@teambit/config';
2
- import { WorkspaceContext } from '../../../../workspace-template';
2
+ import type { WorkspaceContext } from '../../../../workspace-template';
3
3
 
4
4
  export async function workspaceConfig({ name, defaultScope }: WorkspaceContext) {
5
5
  const configParsed = await getWorkspaceConfigTemplateParsed();
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '../../../component-template';
1
+ import type { ComponentContext } from '../../../component-template';
2
2
 
3
3
  export function componentTemplate({ namePascalCase, name }: ComponentContext) {
4
4
  return `import {
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '../../../component-template';
1
+ import type { ComponentContext } from '../../../component-template';
2
2
 
3
3
  export function indexFile({ namePascalCase, name }: ComponentContext) {
4
4
  return `export { ${namePascalCase}ComponentTemplate } from './${name}';
@@ -1,4 +1,4 @@
1
- import { ComponentContext, ComponentTemplate } from '../../component-template';
1
+ import type { ComponentContext, ComponentTemplate } from '../../component-template';
2
2
  import { indexFile } from './files/index';
3
3
  import { generateTestFileContent } from './files/component-template-files/test';
4
4
  import { generateComponentFileContent } from './files/component-template-files/component';
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '../../../component-template';
1
+ import type { ComponentContext } from '../../../component-template';
2
2
 
3
3
  export function aspectFile({ namePascalCase, componentId }: ComponentContext) {
4
4
  return `import { Aspect } from '@teambit/harmony';
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '../../../component-template';
1
+ import type { ComponentContext } from '../../../component-template';
2
2
 
3
3
  export function indexFile({ namePascalCase, name }: ComponentContext) {
4
4
  return `import { ${namePascalCase}Aspect } from './${name}.aspect';
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '../../../component-template';
1
+ import type { ComponentContext } from '../../../component-template';
2
2
 
3
3
  export function mainRuntime({ name, namePascalCase }: ComponentContext) {
4
4
  return `import { MainRuntime } from '@teambit/cli';
@@ -1,4 +1,4 @@
1
- import { ComponentContext, ComponentTemplate } from '../../component-template';
1
+ import type { ComponentContext, ComponentTemplate } from '../../component-template';
2
2
  import { indexFile } from './files/index';
3
3
  import { aspectFile } from './files/aspect-file';
4
4
  import { docsFile } from './files/docs-file';
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '../../../component-template';
1
+ import type { ComponentContext } from '../../../component-template';
2
2
 
3
3
  export function docFile(context: ComponentContext) {
4
4
  const { name, componentId } = context;
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '../../../component-template';
1
+ import type { ComponentContext } from '../../../component-template';
2
2
 
3
3
  export function indexFile({ namePascalCase, name }: ComponentContext) {
4
4
  return `export { ${namePascalCase}WorkspaceStarter } from './${name}.starter';
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '../../../component-template';
1
+ import type { ComponentContext } from '../../../component-template';
2
2
 
3
3
  export function starterFile({ namePascalCase, name }: ComponentContext) {
4
4
  return `import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';
@@ -1,4 +1,4 @@
1
- import { ComponentContext, ComponentTemplate } from '../../';
1
+ import type { ComponentContext, ComponentTemplate } from '../../';
2
2
  import { indexFile } from './files/index';
3
3
  import { starterFile } from './files/starter';
4
4
  import { docFile } from './files/doc-file';
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '../../../component-template';
1
+ import type { ComponentContext } from '../../../component-template';
2
2
 
3
3
  export function docFile(context: ComponentContext) {
4
4
  const { name, componentId } = context;
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '../../../component-template';
1
+ import type { ComponentContext } from '../../../component-template';
2
2
 
3
3
  export function indexFile({ namePascalCase, name }: ComponentContext) {
4
4
  return `export { ${namePascalCase}WorkspaceStarter } from './${name}.starter';
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '../../../component-template';
1
+ import type { ComponentContext } from '../../../component-template';
2
2
 
3
3
  export function starterFile({ namePascalCase, name }: ComponentContext) {
4
4
  return `import { WorkspaceContext, Starter } from '@teambit/generator';
@@ -1,4 +1,4 @@
1
- import { ComponentContext, ComponentTemplate } from '../../component-template';
1
+ import type { ComponentContext, ComponentTemplate } from '../../component-template';
2
2
  import { indexFile } from './files/index';
3
3
  import { starterFile } from './files/starter';
4
4
  import { docFile } from './files/doc-file';