@teambit/generator 0.0.0-711f9f86bcf01cf5b391e697ff91b7952b219371 → 0.0.0-7149436274996600a363e10251022e76c792eb28

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-1753277474239.js → preview-1765208323850.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-711f9f86bcf01cf5b391e697ff91b7952b219371",
3
+ "version": "0.0.0-7149436274996600a363e10251022e76c792eb28",
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": "711f9f86bcf01cf5b391e697ff91b7952b219371"
9
+ "version": "7149436274996600a363e10251022e76c792eb28"
10
10
  },
11
11
  "dependencies": {
12
12
  "camelcase": "6.2.0",
@@ -19,41 +19,42 @@
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.0-3f6a642e641cc066e42249e92540376b3f621956",
23
- "@teambit/workspace.modules.node-modules-linker": "0.0.0-c8585135c433020dd12eb9d0cbf7d875c2718d10",
22
+ "@teambit/logger": "0.0.1383",
23
+ "@teambit/pkg.modules.component-package-name": "0.0.97",
24
+ "@teambit/workspace.modules.node-modules-linker": "0.0.319",
25
+ "@teambit/cli": "0.0.1290",
24
26
  "@teambit/harmony": "0.4.7",
25
- "@teambit/legacy.constants": "0.0.0-d9a21071eaedd2501387ff0eeb65c7b7c9964de9",
26
- "@teambit/legacy.consumer-config": "0.0.0-774c63a0f3ee5c249e4398c33b326013cac88f90",
27
- "@teambit/legacy.scope": "0.0.0-61c5f118c2879f0b4a00a395828e013b47b9f412",
28
- "@teambit/git.modules.git-executable": "0.0.0-acf31ad0bf62f058d3923971bd8eb94dae09dd5a",
27
+ "@teambit/legacy-bit-id": "1.1.3",
28
+ "@teambit/legacy.constants": "0.0.20",
29
+ "@teambit/legacy.consumer-config": "0.0.90",
30
+ "@teambit/legacy.scope": "0.0.90",
31
+ "@teambit/git.modules.git-executable": "0.0.21",
29
32
  "@teambit/git.modules.git-ignore": "1.0.2",
30
- "@teambit/envs": "0.0.0-bda5a140c32ebddf20cacd9c762ef35eb891a31a",
31
- "@teambit/logger": "0.0.0-4fedf6fab81edd1a54ee0188a40fd0a6940d938b",
32
- "@teambit/new-component-helper": "0.0.0-0a170ece4a069e05e9768b6ce4c2932fff7cfb04",
33
- "@teambit/tracker": "0.0.0-a145458d5926308722f904618406a847ef09d8d6",
34
- "@teambit/workspace-config-files": "0.0.0-f757ab27513206435c3105b99751b7d4c23ae5eb",
35
- "@teambit/workspace": "0.0.0-27269ddbc5d352f4ecf15b94984da3b295ea19c9",
36
- "@teambit/component": "0.0.0-050d580727837594ff3cf21736e12ebf6c9dd7eb",
37
- "@teambit/cli": "0.0.0-c69acb580101349c1791cca83aedb1cc7a0eaf63",
38
- "@teambit/graphql": "0.0.0-e4ac6624a617cac1192dfd2ea41933638368ac4c",
39
- "@teambit/aspect-loader": "0.0.0-bc5ab900553f9fedb2acad1ad11690f3d1c97ab6",
40
- "@teambit/deprecation": "0.0.0-898923906bd45416f66990d4fa11a9a6635587b8",
41
- "@teambit/git": "0.0.0-b1b4c188fabbf67de7e71ce7d38a9d421c988e0c",
42
- "@teambit/scope": "0.0.0-0daf7439b76b0bed36c32304d160643df1814f21",
43
- "@teambit/compiler": "0.0.0-1b00421035faf2ee1560cb1d0c04dd5f15a89579",
44
- "@teambit/forking": "0.0.0-c1583d048ed9c64b25a29d75f12e8f5761f648b0",
45
- "@teambit/host-initializer": "0.0.0-e2f9ac161dde2c18e5d72aa9d7377fa5305fd4a5",
46
- "@teambit/importer": "0.0.0-9930d5b0024481c31b205c40d4362deb711d01b3",
47
- "@teambit/install": "0.0.0-5070bc64bb6a798f5aa11eefd3106885d5863eab",
48
- "@teambit/ui": "0.0.0-87fafa0d4384d166afc518d352b5837b3c27a61b",
49
- "@teambit/config": "0.0.0-008fb8bd3f5c90e08cf881be00887d589a090f23"
33
+ "@teambit/config": "0.0.1465",
34
+ "@teambit/envs": "0.0.0-56072b95140ca84e4e312d6d815fd35f34cb4830",
35
+ "@teambit/new-component-helper": "0.0.0-4864dfb4702d3183143ba87385a30061183bebbc",
36
+ "@teambit/tracker": "0.0.0-2dd2bdc82d4b37e69398dc812171ebd478058b40",
37
+ "@teambit/workspace-config-files": "0.0.0-a01fa3c5c0b462ae5c4c8568ca4a7291690b8686",
38
+ "@teambit/workspace": "0.0.0-f0898f5c7fdbcc5394d3d20466915a88e521fd1e",
39
+ "@teambit/component": "0.0.0-739ab7ba542e97499f734a76297c4afb900c624e",
40
+ "@teambit/graphql": "0.0.0-353e2083724d84ccea51aab5bcefe41232d5210c",
41
+ "@teambit/aspect-loader": "0.0.0-98c367edd7260e1068f4519329c966603ecd3cb5",
42
+ "@teambit/deprecation": "0.0.0-ea1fda513a205b77d817606e333c6e3d5ecff6a7",
43
+ "@teambit/git": "0.0.0-502535f3301f47ca6f0c780e74acfa36c6214562",
44
+ "@teambit/scope": "0.0.0-39dfa1640103fedbfd570677f99dfc8215211a2b",
45
+ "@teambit/compiler": "0.0.0-a9a5c218df08d17c58926aade017393896a5f327",
46
+ "@teambit/forking": "0.0.0-35d69cf5958f486dd18be58aad575d895f1f38d4",
47
+ "@teambit/host-initializer": "0.0.0-d6a01887c686ac5e49e91d15705c2c2e377ed087",
48
+ "@teambit/importer": "0.0.0-944bf1a138cb079118ac8bff9575345e2efbb11b",
49
+ "@teambit/install": "0.0.0-1d4d2a5dc1bf5febf3d0fd8e4daf15904eebac6b",
50
+ "@teambit/ui": "0.0.0-60897b3b11bd56a18315316e72ebfed03ff02ef9"
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/generator.aspect-docs.generator": "0.0.175",
56
- "@teambit/harmony.envs.core-aspect-env": "0.0.72"
56
+ "@teambit/generator.aspect-docs.generator": "0.0.177",
57
+ "@teambit/harmony.envs.core-aspect-env": "0.0.80"
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';