@teambit/generator 0.0.0-dbf65159c8156eebd27e4fb62d76b1ce369cb2d1 → 0.0.0-dc497ffdaefe2ad637e6f5414a7406ce9e77e738

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-1753801810615.js → preview-1765936264441.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-dbf65159c8156eebd27e4fb62d76b1ce369cb2d1",
3
+ "version": "0.0.0-dc497ffdaefe2ad637e6f5414a7406ce9e77e738",
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": "dbf65159c8156eebd27e4fb62d76b1ce369cb2d1"
9
+ "version": "dc497ffdaefe2ad637e6f5414a7406ce9e77e738"
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.64",
23
- "@teambit/workspace.modules.node-modules-linker": "0.0.285",
24
22
  "@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",
23
+ "@teambit/legacy-bit-id": "1.1.3",
29
24
  "@teambit/git.modules.git-ignore": "1.0.2",
30
- "@teambit/envs": "0.0.0-5d1cda7a206c86c7b66deb780a7436b292593c0e",
31
- "@teambit/logger": "0.0.0-d65d0c32484f00d2452e7e34dc106f129fe7ae83",
32
- "@teambit/new-component-helper": "0.0.0-bccba2ce9e50e2b6edce56c7df96a4684d25123e",
33
- "@teambit/tracker": "0.0.0-c9cd66d80fac1a7963736b5a3e0b36036dad18a9",
34
- "@teambit/workspace-config-files": "0.0.0-4e8397ee4079b7afc7a58d63564e4cf6048ccaa8",
35
- "@teambit/workspace": "0.0.0-0240e238962bde9f50b0277b59455224674e2545",
36
- "@teambit/component": "0.0.0-6d256085c92217410fdab9ae84b5fc7fe09d1ae7",
37
- "@teambit/cli": "0.0.0-dfe03c0f40da57f8ce2210cf940caaf6e4c6369e",
38
- "@teambit/graphql": "0.0.0-599480cb48e575e9cb3efacc0e4c4ec3fc91270a",
39
- "@teambit/aspect-loader": "0.0.0-c6c12290b7a51a95df420c4ee947af6ab0ab5ed4",
40
- "@teambit/deprecation": "0.0.0-8aa638f4e6bb69b6b63ae123ee69aee7ec84d5a5",
41
- "@teambit/git": "0.0.0-0f68667e8ce1317f680dc99f627266bb932c18e4",
42
- "@teambit/scope": "0.0.0-2c58fd654519dc237260ddb84d96cd19a13e55ec",
43
- "@teambit/compiler": "0.0.0-8e1844c762465651414f12df2fa94b1020c7ee43",
44
- "@teambit/forking": "0.0.0-6dbc383c147414f7cc81e887951dd79b40f0ae2a",
45
- "@teambit/host-initializer": "0.0.0-182994017155625e2095568b45cfe5ee9a377a78",
46
- "@teambit/importer": "0.0.0-4bbec93938f016c9f63a1fcb79f0096b0b6bcbf3",
47
- "@teambit/install": "0.0.0-73b6771bd58d0676729509937c95e2f9fe3ea214",
48
- "@teambit/ui": "0.0.0-224a9121a2697a126416bdf4e2600c26a482177b",
49
- "@teambit/config": "0.0.0-b8493410764caf38afa7fdd9730b6104c491c958"
25
+ "@teambit/envs": "0.0.0-e365c1b347ac09a70a1a1c26b2b36ef881fc4685",
26
+ "@teambit/logger": "0.0.0-129d1ae82743563f304a487edb18d92d4813a053",
27
+ "@teambit/new-component-helper": "0.0.0-0b4b2408b9e365bdcedb468a38d5cf915842b2d4",
28
+ "@teambit/pkg.modules.component-package-name": "0.0.0-5771b094a8d19a9499fb8c0ca10a1678c2fbe1f6",
29
+ "@teambit/tracker": "0.0.0-11090547ed5ad514cfcec373c32f4896da5d992b",
30
+ "@teambit/workspace-config-files": "0.0.0-ba26d294485928b0df61aeac23e38ac4673cc20c",
31
+ "@teambit/workspace.modules.node-modules-linker": "0.0.0-2f29bce162eb564a39fd9a5e4a39605a1ff30163",
32
+ "@teambit/workspace": "0.0.0-86c3dad27492ca49b66e55838c0c60abbb5e90dc",
33
+ "@teambit/component": "0.0.0-fd2eb8a52c18c7ddf9ae6d2e8cfc1d55097578f2",
34
+ "@teambit/cli": "0.0.0-acffaae972459af26daba24ed03300997c150e47",
35
+ "@teambit/graphql": "0.0.0-19e29f288acaaae5d38c55bb8a5e8a7bdf2f0cd2",
36
+ "@teambit/aspect-loader": "0.0.0-25f7c7c60af6bab0114b233dfe34d67e5ef1a8d1",
37
+ "@teambit/deprecation": "0.0.0-d1a79c544ae75c4ba42a81137b7f07eec5502fb8",
38
+ "@teambit/git": "0.0.0-e98b69e78d2a925087fa8034652f4df0031ace6e",
39
+ "@teambit/legacy.constants": "0.0.0-6732b6c4322feb62b694721e5319ce5046cb8810",
40
+ "@teambit/legacy.consumer-config": "0.0.0-3b836f92ce1ba32a44c2581609f00fe290f45de5",
41
+ "@teambit/legacy.scope": "0.0.0-fba45da51e25b1c322078034296bf07d9b324a59",
42
+ "@teambit/scope": "0.0.0-1a2edc51e22aa9638bfaf5dcf2caa0769035d1b6",
43
+ "@teambit/compiler": "0.0.0-f36b268d0c1a4d24431323bc794cf0c8f526f3d5",
44
+ "@teambit/forking": "0.0.0-6279f0341f52a11f83d5310f098ee478f3dc3426",
45
+ "@teambit/git.modules.git-executable": "0.0.0-105a5d1ba1a9b49c470ca93cb734915cd2d8c99a",
46
+ "@teambit/host-initializer": "0.0.0-2558b4f913944583e8b637372b0b64f5bbebc3db",
47
+ "@teambit/importer": "0.0.0-4f259c49134951607ed5b9406d302148c8b00119",
48
+ "@teambit/install": "0.0.0-16f074d9ca834b17c1789c1f4dff9e0ae9e3c224",
49
+ "@teambit/ui": "0.0.0-d2afecc5edd1f78f687500956117fd0d34e279d3",
50
+ "@teambit/config": "0.0.0-808da6639fec158c6859fe911ae17195396f50e5"
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.1.0"
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';