@teambit/generator 0.0.0-e3178287df8e32bdda79061371f177e643b2508e → 0.0.0-e366e67c1fbc13a90ba11f1214fb76efb8fdca09

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-1752582455144.js → preview-1764019157602.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-e3178287df8e32bdda79061371f177e643b2508e",
3
+ "version": "0.0.0-e366e67c1fbc13a90ba11f1214fb76efb8fdca09",
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": "e3178287df8e32bdda79061371f177e643b2508e"
9
+ "version": "e366e67c1fbc13a90ba11f1214fb76efb8fdca09"
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",
24
+ "@teambit/legacy.constants": "0.0.20",
25
+ "@teambit/git.modules.git-executable": "0.0.21",
23
26
  "@teambit/git.modules.git-ignore": "1.0.2",
24
- "@teambit/envs": "0.0.0-d9972a7e94ab844999896f588a390f6eef2c89f8",
25
- "@teambit/logger": "0.0.0-1a9ba24b946790dd3afb77ba5185e0cc1e914ef9",
26
- "@teambit/new-component-helper": "0.0.0-c2d3820f855f00e7da8dd2de430b7fba7f4abe46",
27
- "@teambit/pkg.modules.component-package-name": "0.0.62",
28
- "@teambit/tracker": "0.0.0-3573889211784f9bedab7151bc3fd390185fed22",
29
- "@teambit/workspace-config-files": "0.0.0-5508c1430d130ac31b2933b0ca32f63eb5a2e02f",
30
- "@teambit/workspace.modules.node-modules-linker": "0.0.283",
31
- "@teambit/workspace": "0.0.0-096a877b7efe924bf8c8a4482948cee2294ff323",
32
- "@teambit/component": "0.0.0-ed1f2d6f812dd11af1d899d53e12ac237ebfe49b",
33
- "@teambit/cli": "0.0.0-098c7a233c668813d47690933020c0524ffba857",
34
- "@teambit/graphql": "0.0.0-00d27cb5c82fb30799bcbc0f591cf874c3cb237d",
35
- "@teambit/aspect-loader": "0.0.0-4e36b9954bdc9ca63a407085e152132b3ca61aab",
36
- "@teambit/deprecation": "0.0.0-ff75191949d74680b434c5e504c8c2360136cf45",
37
- "@teambit/git": "0.0.0-a32196fd43b1aef868b6c184c2bc5860820f7f56",
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-6a77db8d29708eb20c00e0270bd5b93cf6031e6a",
42
- "@teambit/compiler": "0.0.0-98efe764f075f58dc087d4d48c26848b9bd213ca",
43
- "@teambit/forking": "0.0.0-9d107d0830fc24227c61ffcee16d6c9029d2f4ec",
44
- "@teambit/git.modules.git-executable": "0.0.13",
45
- "@teambit/host-initializer": "0.0.0-9fe4d8b4e569edaf1a837665ec10a7e9d98bda57",
46
- "@teambit/importer": "0.0.0-181230f4e7b6b703a698ace713b2b82ecfe4192b",
47
- "@teambit/install": "0.0.0-8e99d23031dd599b065c805427bb074b6cd158cb",
48
- "@teambit/ui": "0.0.0-bd7ec601cf4177e20e1c2207b2568cdc41b4b5dc",
49
- "@teambit/config": "0.0.0-3645257d9d863167e7ffe3be701486daf32d5f9f"
27
+ "@teambit/envs": "0.0.0-a5d7d55bd1c7ef9b15c4471e7baf1387ea0015e3",
28
+ "@teambit/logger": "0.0.0-3d06f63133a4706d27db9f12fa235a3fe3618070",
29
+ "@teambit/new-component-helper": "0.0.0-b11c8f3a7eb5b643e09fc69cae2145ae7fe970d9",
30
+ "@teambit/pkg.modules.component-package-name": "0.0.0-d7b56056598563a10780b1ffa8f50952a1c9ec9f",
31
+ "@teambit/tracker": "0.0.0-833182ab15100688497f119aeb4715448053fb0a",
32
+ "@teambit/workspace-config-files": "0.0.0-e1406b703b1e824362dd07df083ae0f06294b117",
33
+ "@teambit/workspace.modules.node-modules-linker": "0.0.0-0d36fe24478bd1419addd5debb47b84949a2f444",
34
+ "@teambit/workspace": "0.0.0-eaf4a09ef72c336b4f62d1317e452000223c1740",
35
+ "@teambit/component": "0.0.0-06a448d8105570378a52037b9b4f38591f02e230",
36
+ "@teambit/cli": "0.0.0-36bb847ee17d62bcf9200fc40b94463beb6b3f22",
37
+ "@teambit/graphql": "0.0.0-c5a46c028c452c1b719edebfa0368b48a7a49846",
38
+ "@teambit/aspect-loader": "0.0.0-f8a558c4fbba5a103f4eb8a2a677d93dd27a7184",
39
+ "@teambit/deprecation": "0.0.0-efc2d5a3eb35f7028b4e2435ca4ac070ae11414e",
40
+ "@teambit/git": "0.0.0-efdaa5ea1a45984026b93465243ce8d74caf122d",
41
+ "@teambit/legacy.consumer-config": "0.0.0-3b5d32991bdfdc2aa515c1c304de022e380a2839",
42
+ "@teambit/legacy.scope": "0.0.0-5ae1f14fe86e6314733683a034856a8d992af7e3",
43
+ "@teambit/scope": "0.0.0-539a29b418be2d80d7083336f466b5768cd5288a",
44
+ "@teambit/compiler": "0.0.0-51f4e99a7dcf27ec17defa138601b9dd72973a54",
45
+ "@teambit/forking": "0.0.0-4878fad4c8fa093b005b7a35b76fa96015f3176d",
46
+ "@teambit/host-initializer": "0.0.0-76d543d0de40e182fe54516092ee83d59ca16e2c",
47
+ "@teambit/importer": "0.0.0-cecfb486fe6bf7e6cd1adfc2d602d4a532f43999",
48
+ "@teambit/install": "0.0.0-53037dc1b0facbdcc991e3c2f2193d237dddb89f",
49
+ "@teambit/ui": "0.0.0-8d2317a1362f917eea7a47c90913fcd5bb66542c",
50
+ "@teambit/config": "0.0.0-f2392fba46b22afb2d2eabd87a47fe7535c9075e"
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.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';