@teambit/generator 0.0.0-e95a4db2c09859f7c82020a1653dc0d8b03e2ef5 → 0.0.0-ea433e9918d5299069cbc0cd41b02b515d20eac7

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-1752188910074.js → preview-1760725768429.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-e95a4db2c09859f7c82020a1653dc0d8b03e2ef5",
3
+ "version": "0.0.0-ea433e9918d5299069cbc0cd41b02b515d20eac7",
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": "e95a4db2c09859f7c82020a1653dc0d8b03e2ef5"
9
+ "version": "ea433e9918d5299069cbc0cd41b02b515d20eac7"
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-a2003ae81adf3ff76417e95b1a47c8bd0b7b567f",
25
- "@teambit/logger": "0.0.0-6a5ef146ace499aa62776c85d3555c1ad4a8eadd",
26
- "@teambit/new-component-helper": "0.0.0-ac8dfb46c20da410e0968012920281ff3b7e28a9",
27
- "@teambit/pkg.modules.component-package-name": "0.0.61",
28
- "@teambit/tracker": "0.0.0-d2dcdefc335e7092b9dfbb59b5963a99a34b855f",
29
- "@teambit/workspace-config-files": "0.0.0-0b633565a35afa9d660f44f625e70977e3af6b00",
30
- "@teambit/workspace.modules.node-modules-linker": "0.0.282",
31
- "@teambit/workspace": "0.0.0-9b5f524530acdb7ad5d7c060142c45e73f16da21",
32
- "@teambit/component": "0.0.0-7b05f259733bffb8835336274c9163c3c3b05abb",
33
- "@teambit/cli": "0.0.0-488f076a7c57433b94373d42c763e18868925950",
34
- "@teambit/graphql": "0.0.0-ddeabb27e89c657960efd9e4ae840b872d92d6a6",
35
- "@teambit/aspect-loader": "0.0.0-14638994c60a18cbcf7dc7fc289385897b53e4a4",
36
- "@teambit/deprecation": "0.0.0-1234a85b8266af9aa9d536db992d2b3b7c1b8880",
37
- "@teambit/git": "0.0.0-03ba5ee5175a898e558c1938c18f396cdd131bb8",
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-465cd97dbdd80b5d4fb4a7d59a0b2aa5780b5363",
42
- "@teambit/compiler": "0.0.0-36ac6b1a71ef49b22523aa36ee899903cc4f5368",
43
- "@teambit/forking": "0.0.0-af31c8d9dace4dbdad1130872db551a108438458",
44
- "@teambit/git.modules.git-executable": "0.0.13",
45
- "@teambit/host-initializer": "0.0.0-d572a7ef7ccb50decea8b6ffa75e95730e63e495",
46
- "@teambit/importer": "0.0.0-7367c55f081a4b912991684d254b82427eb34d84",
47
- "@teambit/install": "0.0.0-15a8284781be437b32bb9c19c8ae2aa45af9e8d8",
48
- "@teambit/ui": "0.0.0-dac5c467fe52c9d8b799464d1de73353f0a859e0",
49
- "@teambit/config": "0.0.0-0c3e75ecdc3773a85093c8dfad3bdff4a8fe64aa"
32
+ "@teambit/config": "0.0.1456",
33
+ "@teambit/envs": "0.0.0-b2cb1f7ec32408f8ad238932cd7728d14c1d6dcf",
34
+ "@teambit/new-component-helper": "0.0.0-56f9b2763e44e4ae8e92d3c929f0c8ca2547830b",
35
+ "@teambit/tracker": "0.0.0-8a726aae4f22d8bcdab5e165840a03ad910f5803",
36
+ "@teambit/workspace-config-files": "0.0.0-4a9b4b22337b57221dc06aae6c784c28face9d9c",
37
+ "@teambit/workspace": "0.0.0-045523d669167d325a8e15a3f7c71ff23e44f3d1",
38
+ "@teambit/component": "0.0.0-b3cf48a8b628994c4b82e2da09ed1ef871e34b94",
39
+ "@teambit/graphql": "0.0.0-39feea45213fbe481ceba6444c0d630b0a4bcd92",
40
+ "@teambit/aspect-loader": "0.0.0-367243f15e679568b1471b2205c1f9c0949dbd00",
41
+ "@teambit/deprecation": "0.0.0-c570fadfc2dda043d75fd0eefe077cec80fac219",
42
+ "@teambit/git": "0.0.0-c4bea410e813f9f80826699ce796d28a6cc8c50b",
43
+ "@teambit/scope": "0.0.0-091285567411f9efaaaca870d9bf3025e4a89147",
44
+ "@teambit/compiler": "0.0.0-858bf38b0cdf19fe54f884eb1512d63d3d9645d8",
45
+ "@teambit/forking": "0.0.0-5ce5abc5a92c4543d4ba0bfbdfd05e006eeafdfc",
46
+ "@teambit/host-initializer": "0.0.0-8b0166c1ab85724ed5e0a42a9c932f38c280c523",
47
+ "@teambit/importer": "0.0.0-dd7a3515a14afb7487a4b7a3a02435a60c2591e6",
48
+ "@teambit/install": "0.0.0-bf5ca47d8312d4747352e391188fcb110b729bc3",
49
+ "@teambit/ui": "0.0.0-d6e44ac4364e91bcc9ecbdd2552e0e817f327417"
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';