@teambit/generator 0.0.0-6ec0ffdfb1879347aa49af3a12a159d3fa26216f → 0.0.0-6fc235c792c9a0c0a49fbbc39fe1639645d97783

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 (87) 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 +2 -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 +17 -17
  13. package/dist/generator.main.runtime.js.map +1 -1
  14. package/dist/generator.service.d.ts +3 -3
  15. package/dist/generator.service.js.map +1 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js.map +1 -1
  18. package/dist/new.cmd.d.ts +4 -3
  19. package/dist/new.cmd.js +4 -1
  20. package/dist/new.cmd.js.map +1 -1
  21. package/dist/{preview-1753722677799.js → preview-1758137614741.js} +2 -2
  22. package/dist/starter-list.d.ts +2 -2
  23. package/dist/starter-list.js.map +1 -1
  24. package/dist/starter.plugin.d.ts +2 -2
  25. package/dist/starter.plugin.js.map +1 -1
  26. package/dist/template-list.d.ts +2 -2
  27. package/dist/template-list.js.map +1 -1
  28. package/dist/templates/basic/basic.starter.d.ts +1 -1
  29. package/dist/templates/basic/basic.starter.js.map +1 -1
  30. package/dist/templates/basic/template/files/workspace-config.d.ts +1 -1
  31. package/dist/templates/basic/template/files/workspace-config.js.map +1 -1
  32. package/dist/templates/component-generator/files/component-template.d.ts +1 -1
  33. package/dist/templates/component-generator/files/component-template.js.map +1 -1
  34. package/dist/templates/component-generator/files/index.d.ts +1 -1
  35. package/dist/templates/component-generator/files/index.js.map +1 -1
  36. package/dist/templates/component-generator/index.d.ts +1 -1
  37. package/dist/templates/component-generator/index.js.map +1 -1
  38. package/dist/templates/component-generator-standalone/files/aspect-file.d.ts +1 -1
  39. package/dist/templates/component-generator-standalone/files/aspect-file.js.map +1 -1
  40. package/dist/templates/component-generator-standalone/files/index.d.ts +1 -1
  41. package/dist/templates/component-generator-standalone/files/index.js.map +1 -1
  42. package/dist/templates/component-generator-standalone/files/main-runtime.d.ts +1 -1
  43. package/dist/templates/component-generator-standalone/files/main-runtime.js.map +1 -1
  44. package/dist/templates/component-generator-standalone/index.d.ts +1 -1
  45. package/dist/templates/component-generator-standalone/index.js.map +1 -1
  46. package/dist/templates/starter/files/doc-file.d.ts +1 -1
  47. package/dist/templates/starter/files/doc-file.js.map +1 -1
  48. package/dist/templates/starter/files/index.d.ts +1 -1
  49. package/dist/templates/starter/files/index.js.map +1 -1
  50. package/dist/templates/starter/files/starter.d.ts +1 -1
  51. package/dist/templates/starter/files/starter.js.map +1 -1
  52. package/dist/templates/starter/index.d.ts +1 -1
  53. package/dist/templates/starter/index.js.map +1 -1
  54. package/dist/templates/starter-standalone/files/doc-file.d.ts +1 -1
  55. package/dist/templates/starter-standalone/files/doc-file.js.map +1 -1
  56. package/dist/templates/starter-standalone/files/index.d.ts +1 -1
  57. package/dist/templates/starter-standalone/files/index.js.map +1 -1
  58. package/dist/templates/starter-standalone/files/starter.d.ts +1 -1
  59. package/dist/templates/starter-standalone/files/starter.js.map +1 -1
  60. package/dist/templates/starter-standalone/index.d.ts +1 -1
  61. package/dist/templates/starter-standalone/index.js.map +1 -1
  62. package/dist/templates.cmd.d.ts +2 -2
  63. package/dist/templates.cmd.js +2 -2
  64. package/dist/templates.cmd.js.map +1 -1
  65. package/dist/workspace-generator.d.ts +5 -5
  66. package/dist/workspace-generator.js.map +1 -1
  67. package/dist/workspace-template.d.ts +1 -1
  68. package/dist/workspace-template.js.map +1 -1
  69. package/generator.service.tsx +3 -3
  70. package/package.json +30 -30
  71. package/templates/basic/basic.starter.ts +1 -1
  72. package/templates/basic/template/files/workspace-config.ts +1 -1
  73. package/templates/component-generator/files/component-template.ts +1 -1
  74. package/templates/component-generator/files/index.ts +1 -1
  75. package/templates/component-generator/index.ts +1 -1
  76. package/templates/component-generator-standalone/files/aspect-file.ts +1 -1
  77. package/templates/component-generator-standalone/files/index.ts +1 -1
  78. package/templates/component-generator-standalone/files/main-runtime.ts +1 -1
  79. package/templates/component-generator-standalone/index.ts +1 -1
  80. package/templates/starter/files/doc-file.ts +1 -1
  81. package/templates/starter/files/index.ts +1 -1
  82. package/templates/starter/files/starter.ts +1 -1
  83. package/templates/starter/index.ts +1 -1
  84. package/templates/starter-standalone/files/doc-file.ts +1 -1
  85. package/templates/starter-standalone/files/index.ts +1 -1
  86. package/templates/starter-standalone/files/starter.ts +1 -1
  87. 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-6ec0ffdfb1879347aa49af3a12a159d3fa26216f",
3
+ "version": "0.0.0-6fc235c792c9a0c0a49fbbc39fe1639645d97783",
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": "6ec0ffdfb1879347aa49af3a12a159d3fa26216f"
9
+ "version": "6fc235c792c9a0c0a49fbbc39fe1639645d97783"
10
10
  },
11
11
  "dependencies": {
12
12
  "camelcase": "6.2.0",
@@ -19,41 +19,41 @@
19
19
  "execa": "2.1.0",
20
20
  "@teambit/bit-error": "0.0.404",
21
21
  "@teambit/component-id": "1.2.4",
22
- "@teambit/pkg.modules.component-package-name": "0.0.64",
23
- "@teambit/workspace.modules.node-modules-linker": "0.0.285",
22
+ "@teambit/logger": "0.0.1366",
23
+ "@teambit/pkg.modules.component-package-name": "0.0.81",
24
+ "@teambit/workspace.modules.node-modules-linker": "0.0.302",
25
+ "@teambit/cli": "0.0.1273",
24
26
  "@teambit/harmony": "0.4.7",
25
- "@teambit/legacy.constants": "0.0.13",
26
- "@teambit/legacy.consumer-config": "0.0.57",
27
- "@teambit/legacy.scope": "0.0.57",
28
- "@teambit/git.modules.git-executable": "0.0.14",
27
+ "@teambit/legacy.constants": "0.0.18",
28
+ "@teambit/legacy.consumer-config": "0.0.74",
29
+ "@teambit/legacy.scope": "0.0.74",
30
+ "@teambit/git.modules.git-executable": "0.0.19",
29
31
  "@teambit/git.modules.git-ignore": "1.0.2",
30
- "@teambit/envs": "0.0.0-3fcf3d5e7d688975c305ee8f25415a4180b05e87",
31
- "@teambit/logger": "0.0.0-31046659f020a96fb29220d0e4b32760e2da5899",
32
- "@teambit/new-component-helper": "0.0.0-fd93b9065430f66af08e6230e643b3e7425008e9",
33
- "@teambit/tracker": "0.0.0-329f51581e7e86467b25a0d7dcda5f8797cdef88",
34
- "@teambit/workspace-config-files": "0.0.0-8be589aa84b7f33adc58845711bf9e7d338aea42",
35
- "@teambit/workspace": "0.0.0-384fc987e756b6b0d4332941fa7a4b087339de56",
36
- "@teambit/component": "0.0.0-bb31bf4f343b3e630d94af3f7d8dd786cef8022e",
37
- "@teambit/cli": "0.0.0-e5b48182fad992c023804401a951c13844f4ea63",
38
- "@teambit/graphql": "0.0.0-02563cb6fcf9ad0b3132077756417000b0e7ff59",
39
- "@teambit/aspect-loader": "0.0.0-a169544cc15422d8600724a09f4acdf6087421e2",
40
- "@teambit/deprecation": "0.0.0-4dcf7344b6ffed4e81ec35b3c07733284f777fc8",
41
- "@teambit/git": "0.0.0-5febd9796308250f44c5f4661ea96cdaf2b9ad85",
42
- "@teambit/scope": "0.0.0-936e5fee545a3b8688750e9b20d5300fe9e6df02",
43
- "@teambit/compiler": "0.0.0-45081c397d4e0a538e7928fb980e133c96e07e01",
44
- "@teambit/forking": "0.0.0-8013cdaf4314557635e6c8723f72c868adc4d28c",
45
- "@teambit/host-initializer": "0.0.0-809ec545db8c33d4daf097340a4dd4461007c898",
46
- "@teambit/importer": "0.0.0-7ebc015cb5d006f204f3fd225704dabb3579d8fa",
47
- "@teambit/install": "0.0.0-99f66f4fb95d55d3f3c08ef36d7fdbe05affb8dd",
48
- "@teambit/ui": "0.0.0-abb19bfb1e5108766125ed6cb5a0acec6791ff1a",
49
- "@teambit/config": "0.0.0-1b87d3265f98be091ea6e75d5212fbfda8f04d8f"
32
+ "@teambit/config": "0.0.1447",
33
+ "@teambit/envs": "0.0.0-cf3686101159a29393763da4c675475d199bc50e",
34
+ "@teambit/new-component-helper": "0.0.0-fc1f7416d55e8d66dc17ba100ba38c15c8f27076",
35
+ "@teambit/tracker": "0.0.0-19e283f1a3b29d24ac7562c87d64cd2827f6958a",
36
+ "@teambit/workspace-config-files": "0.0.0-e18f61d183091e5fe3ead2bc147fa3cce8f36d03",
37
+ "@teambit/workspace": "0.0.0-7c64244db202b84fd3afece1bb83bc2bbe732559",
38
+ "@teambit/component": "0.0.0-1f029fe3f1ab9ed1950af9a347c40c0152b842de",
39
+ "@teambit/graphql": "0.0.0-39543e4bb13609c3af88770fe6e003b57a46668c",
40
+ "@teambit/aspect-loader": "0.0.0-16dbecbe4cc6ad6edf1c32350235bfdaee0825cc",
41
+ "@teambit/deprecation": "0.0.0-d21f9d1c4d45403c204f69d9510343abc980e12e",
42
+ "@teambit/git": "0.0.0-8766b6705ae107a53e9b34329a7c2d3b638d6f97",
43
+ "@teambit/scope": "0.0.0-a33755bba7d45d3ab4bc1c3f89e69dbf65b94880",
44
+ "@teambit/compiler": "0.0.0-2c06b8a7efb12c334fe99e70270d312af4a40682",
45
+ "@teambit/forking": "0.0.0-076d3167098f44c990e8490e68b18b04527e2d80",
46
+ "@teambit/host-initializer": "0.0.0-962f7b012802350524154caec244605d5d3096b0",
47
+ "@teambit/importer": "0.0.0-e5e3658e13e4bec74c62128fed0c97dd847e87d1",
48
+ "@teambit/install": "0.0.0-afcbf3459eaf23ffd31345bd70e1a943836f8f5c",
49
+ "@teambit/ui": "0.0.0-80748665222dbfde3bec2e0b1ae47da1adde0795"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/fs-extra": "9.0.7",
53
53
  "@types/lodash": "4.14.165",
54
54
  "@types/mocha": "9.1.0",
55
- "@teambit/generator.aspect-docs.generator": "0.0.175",
56
- "@teambit/harmony.envs.core-aspect-env": "0.0.72"
55
+ "@teambit/generator.aspect-docs.generator": "0.0.176",
56
+ "@teambit/harmony.envs.core-aspect-env": "0.0.78"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "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';