@teambit/generator 0.0.0-ce6eb94601d06876d952cad37f5858f69be1be02 → 0.0.0-cf2d1a0d75943d277297d9cb264f4978f92d1b00

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-1752480321186.js → preview-1759869796776.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-ce6eb94601d06876d952cad37f5858f69be1be02",
3
+ "version": "0.0.0-cf2d1a0d75943d277297d9cb264f4978f92d1b00",
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": "ce6eb94601d06876d952cad37f5858f69be1be02"
9
+ "version": "cf2d1a0d75943d277297d9cb264f4978f92d1b00"
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.1373",
23
+ "@teambit/pkg.modules.component-package-name": "0.0.88",
24
+ "@teambit/workspace.modules.node-modules-linker": "0.0.310",
25
+ "@teambit/cli": "0.0.1280",
22
26
  "@teambit/harmony": "0.4.7",
27
+ "@teambit/legacy.constants": "0.0.19",
28
+ "@teambit/legacy.consumer-config": "0.0.81",
29
+ "@teambit/legacy.scope": "0.0.81",
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-f84f0a2cabbdc137119eabbafd6537210351bd6a",
25
- "@teambit/logger": "0.0.0-21810fd72f32f03ccfce0ed9d58511aabd9510b0",
26
- "@teambit/new-component-helper": "0.0.0-09a6f5c710f38196662c7bdca5b2b1278aa76313",
27
- "@teambit/pkg.modules.component-package-name": "0.0.0-993fd7041b12d25e5106fcd14554baf19defc35d",
28
- "@teambit/tracker": "0.0.0-64629fd83319a0c6991720c1ac9ae327636fa6b6",
29
- "@teambit/workspace-config-files": "0.0.0-7673f60266b681cda2a3dddb49689d46e3051f36",
30
- "@teambit/workspace.modules.node-modules-linker": "0.0.0-fdc957789645889e57a51d7e952430de9ab32221",
31
- "@teambit/workspace": "0.0.0-b9f3bc25f552b3986e486a2c09a7d54925b1fffc",
32
- "@teambit/component": "0.0.0-0630053e5891f47755416ded479d8d25177992b9",
33
- "@teambit/cli": "0.0.0-3dabbcb2983030940896e7d011077946ed7206c9",
34
- "@teambit/graphql": "0.0.0-c4adef0e2208eeb79f25c3cbcc52695bd52f1bd8",
35
- "@teambit/aspect-loader": "0.0.0-5402504c77099d7d7b686fe46637b42b1f561383",
36
- "@teambit/deprecation": "0.0.0-10203522a4cc67131f86c40b5df2a12e27156ba8",
37
- "@teambit/git": "0.0.0-61c740b8a58f63b9bfaba39c866d77151492817b",
38
- "@teambit/legacy.constants": "0.0.12",
39
- "@teambit/legacy.consumer-config": "0.0.0-e1b99aa20f791e5e4eec37b55e10c072143ee321",
40
- "@teambit/legacy.scope": "0.0.0-72e9d3f90f4d0467c3d43c5dad8ebe1c32bf3432",
41
- "@teambit/scope": "0.0.0-99756a161864dd1ab7288404bb9b59bb64f27d0f",
42
- "@teambit/compiler": "0.0.0-9919af84feabe82d7d15636becc2f85d4cfef12f",
43
- "@teambit/forking": "0.0.0-537653591a82c6a0ef43b759c193beca8fbd6847",
44
- "@teambit/git.modules.git-executable": "0.0.13",
45
- "@teambit/host-initializer": "0.0.0-5d38aaade762cff4b531a8f44934cf71e82757fe",
46
- "@teambit/importer": "0.0.0-17965f5a24b6c62fb9bb7ff9521278b8e84b54be",
47
- "@teambit/install": "0.0.0-52c3877b3c68ef1c96da4cad3ac0e23ae9434fc8",
48
- "@teambit/ui": "0.0.0-130dd873b7c92446f2977bf6d97c909642072c19",
49
- "@teambit/config": "0.0.0-42351cbb1c6e09fe1bbf35b2d9c8776322fcb648"
32
+ "@teambit/config": "0.0.1454",
33
+ "@teambit/envs": "0.0.0-230ce59b587d1e86152837b3da7e95e65cde942d",
34
+ "@teambit/new-component-helper": "0.0.0-1cc30611a422a8799a0e71c3450465c76ced4c6c",
35
+ "@teambit/tracker": "0.0.0-d50f4b11ef7ef7faff067afb1d28bac1b59737f2",
36
+ "@teambit/workspace-config-files": "0.0.0-b0f7878895d9cc2ff6d0e309f1432627dee44102",
37
+ "@teambit/workspace": "0.0.0-43d82f6f67ddce6dbbaf5c8cf7c9b2df8c7f170b",
38
+ "@teambit/component": "0.0.0-e8c1753aac856e7d29fff54a9eea99719db04e80",
39
+ "@teambit/graphql": "0.0.0-6579d8dbde7ff842a4a016d922abdf64c3386609",
40
+ "@teambit/aspect-loader": "0.0.0-bfce1ac5d998123c8eb6f9aa2549c454eacd828d",
41
+ "@teambit/deprecation": "0.0.0-acd6ec06ad8329625564ea0d3fdb04c953bbb739",
42
+ "@teambit/git": "0.0.0-4baa4948f2f89937bf93930c243a0721c7ac318c",
43
+ "@teambit/scope": "0.0.0-49a927f310f06a83202f4a9d56da479c5b038247",
44
+ "@teambit/compiler": "0.0.0-f81e31f2c2137da414b3c647614b1d92498c203d",
45
+ "@teambit/forking": "0.0.0-7f57660a206678ad61f87bad4dc041b43e711834",
46
+ "@teambit/host-initializer": "0.0.0-ac636bbed4037763b58241c25d97fee8b1347cf6",
47
+ "@teambit/importer": "0.0.0-86cedd9953b77c59d003a265b017dd297871e897",
48
+ "@teambit/install": "0.0.0-68f86e295d00c6b7407e24cc403433c41b5a1096",
49
+ "@teambit/ui": "0.0.0-0eae474625c795b9af9404bb130bf7b5543654ac"
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';