@teambit/generator 0.0.0-c05756a29a7649154a781f77d25c9e811233184f → 0.0.0-c19c1e500cafd0e38de81a98ceb957613b9dbb0b

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-1752165283597.js → preview-1760041707141.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-c05756a29a7649154a781f77d25c9e811233184f",
3
+ "version": "0.0.0-c19c1e500cafd0e38de81a98ceb957613b9dbb0b",
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": "c05756a29a7649154a781f77d25c9e811233184f"
9
+ "version": "c19c1e500cafd0e38de81a98ceb957613b9dbb0b"
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/logger": "0.0.1375",
23
+ "@teambit/pkg.modules.component-package-name": "0.0.90",
24
+ "@teambit/workspace.modules.node-modules-linker": "0.0.312",
25
+ "@teambit/cli": "0.0.1282",
22
26
  "@teambit/harmony": "0.4.7",
27
+ "@teambit/legacy.constants": "0.0.19",
28
+ "@teambit/legacy.consumer-config": "0.0.83",
29
+ "@teambit/legacy.scope": "0.0.83",
30
+ "@teambit/git.modules.git-executable": "0.0.20",
23
31
  "@teambit/git.modules.git-ignore": "1.0.2",
24
- "@teambit/envs": "0.0.0-f20db74b43212f09e3d236d0f56fc1495bcc4c87",
25
- "@teambit/logger": "0.0.0-20ac0780078e3cf2d25885dbe6b89f2c49449a6b",
26
- "@teambit/new-component-helper": "0.0.0-ef87cb317eabc3fc212b56032d11624001f9ba6a",
27
- "@teambit/pkg.modules.component-package-name": "0.0.61",
28
- "@teambit/tracker": "0.0.0-7dec09d2d3a43996fe6be054def4a372ddb372b1",
29
- "@teambit/workspace-config-files": "0.0.0-6f0dfe1bf0a31f421e4ae4c8778349c559286207",
30
- "@teambit/workspace.modules.node-modules-linker": "0.0.282",
31
- "@teambit/workspace": "0.0.0-30855c1d0d3754c9e5c279ef51a7f88e2f36fde7",
32
- "@teambit/component": "0.0.0-12e3e6054e5668c98e66feab14480e7e9f7467cd",
33
- "@teambit/cli": "0.0.0-387ca83bd6d05e8441bf8d4e938b4a402307cc6b",
34
- "@teambit/graphql": "0.0.0-47104f54be0e54173e5c55769ec51200767fe6f0",
35
- "@teambit/aspect-loader": "0.0.0-a0bd4e7afe0df70513aa0654445aa4e9f2de3987",
36
- "@teambit/deprecation": "0.0.0-2dc309613c7dd3ff384ac785c9ab64a371f0085c",
37
- "@teambit/git": "0.0.0-6bf68224d5c3b541efffd8f2d913be87fcd958c3",
38
- "@teambit/legacy.constants": "0.0.12",
39
- "@teambit/legacy.consumer-config": "0.0.54",
40
- "@teambit/legacy.scope": "0.0.54",
41
- "@teambit/scope": "0.0.0-329728b0b394808dd1ab9043b040f438c0411af9",
42
- "@teambit/compiler": "0.0.0-e125ea6a42364dfe8a79aff63d595ab4f8845f5d",
43
- "@teambit/forking": "0.0.0-73c4eff800a8892bab1bc4b2f9ab4c8fbada8fe3",
44
- "@teambit/git.modules.git-executable": "0.0.13",
45
- "@teambit/host-initializer": "0.0.0-0992f84eae28a50c3a19dda2f18930e3ca4a17f4",
46
- "@teambit/importer": "0.0.0-1f1b36d16d5f7a2bfd059c5a2e67c9413bc2726c",
47
- "@teambit/install": "0.0.0-b8b56471c39d2799b789ae9fd36aff886329af83",
48
- "@teambit/ui": "0.0.0-8894703cf882a751c6953b7953e4a01de4e42d8c",
49
- "@teambit/config": "0.0.0-0dd6f0a2bfc8b9ed7ad2cd7173d1a11d8040e4c7"
32
+ "@teambit/config": "0.0.1456",
33
+ "@teambit/envs": "0.0.0-83bb1cff3d4e3b1e98b708c71139d42aed54e319",
34
+ "@teambit/new-component-helper": "0.0.0-f7bc820bb56bb8d34b5a2298fbac92059fa01595",
35
+ "@teambit/tracker": "0.0.0-9e6d6aa8a06609a4350c60dbde5afb1e337e9073",
36
+ "@teambit/workspace-config-files": "0.0.0-cf05806fd8f5c212a3cfc476a5f39c914a5cb2b9",
37
+ "@teambit/workspace": "0.0.0-f8dd5d075cb712fd55390e0a5ce312dd00206d0e",
38
+ "@teambit/component": "0.0.0-3a5e4e1e3c2022e7c6a8f52ac1e9101ad91c1024",
39
+ "@teambit/graphql": "0.0.0-90235793d02ee46996dd10c72ff4e4027fbded14",
40
+ "@teambit/aspect-loader": "0.0.0-7f3f16b9aadec0f7e49e977f6f4d05f78bfbc08f",
41
+ "@teambit/deprecation": "0.0.0-81440c3e0d3f3c043119b6f7254cf21064f55e00",
42
+ "@teambit/git": "0.0.0-e7c35abfae2317a95e7b7527bb8a2e5be73febd3",
43
+ "@teambit/scope": "0.0.0-b354bbed906bc7fef9706542fad46c985ba8f4c8",
44
+ "@teambit/compiler": "0.0.0-43d8b395e4dc566e0c576058965885efd384bfe6",
45
+ "@teambit/forking": "0.0.0-9af16f5d7d0132b41afd37dbdaa4e222a6920454",
46
+ "@teambit/host-initializer": "0.0.0-fec2caead8780bbafc334fdf22a7922f50ae4172",
47
+ "@teambit/importer": "0.0.0-c410efffd3d520c2f93246d027b6b4fcc5b125ff",
48
+ "@teambit/install": "0.0.0-56fb92d9887d32ed70825828b40caa92c0ccba33",
49
+ "@teambit/ui": "0.0.0-d6812b09ddf5afbf6759f22ea21109479d067916"
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/harmony.envs.core-aspect-env": "0.0.69",
56
- "@teambit/generator.aspect-docs.generator": "0.0.175"
55
+ "@teambit/generator.aspect-docs.generator": "0.0.176",
56
+ "@teambit/harmony.envs.core-aspect-env": "0.0.79"
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';