@teambit/workspace 0.0.871 → 0.0.873
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.
- package/dist/watch/watch.cmd.js +2 -4
- package/dist/watch/watch.cmd.js.map +1 -1
- package/package-tar/teambit-workspace-0.0.873.tgz +0 -0
- package/package.json +33 -33
- package/{preview-1664941100086.js → preview-1665088654908.js} +2 -2
- package/watch/watch.cmd.tsx +2 -2
- package/package-tar/teambit-workspace-0.0.871.tgz +0 -0
package/dist/watch/watch.cmd.js
CHANGED
|
@@ -100,8 +100,7 @@ class WatchCommand {
|
|
|
100
100
|
this.logger.console(_chalk().default.yellow(`Watching for component changes in workspace ${workspace.config.name} (${(0, _moment().default)().format('HH:mm:ss')})...\n`));
|
|
101
101
|
},
|
|
102
102
|
onChange: (filePaths, buildResults, verbose, duration, failureMsg) => {
|
|
103
|
-
const files = filePaths.join(', ');
|
|
104
|
-
clearOutdatedData();
|
|
103
|
+
const files = filePaths.join(', '); // clearOutdatedData();
|
|
105
104
|
|
|
106
105
|
if (!buildResults.length) {
|
|
107
106
|
failureMsg = failureMsg || `The files ${files} have been changed, but nothing to compile`;
|
|
@@ -115,8 +114,7 @@ class WatchCommand {
|
|
|
115
114
|
this.logger.console(_chalk().default.yellow(`Watching for component changes (${(0, _moment().default)().format('HH:mm:ss')})...`));
|
|
116
115
|
},
|
|
117
116
|
onAdd: (filePaths, buildResults, verbose, duration, failureMsg) => {
|
|
118
|
-
const files = filePaths.join(', ');
|
|
119
|
-
clearOutdatedData();
|
|
117
|
+
const files = filePaths.join(', '); // clearOutdatedData();
|
|
120
118
|
|
|
121
119
|
if (!buildResults.length) {
|
|
122
120
|
failureMsg = failureMsg || `The files ${files} have been added, but nothing to compile`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["WatchCommand","constructor","pubsub","logger","watcher","onAll","event","path","console","onStart","onReady","workspace","watchPathsSortByComponent","verbose","clearOutdatedData","formatWatchPathsSortByComponent","chalk","yellow","config","name","moment","format","onChange","filePaths","buildResults","duration","failureMsg","files","join","length","formatCompileResults","onAdd","onUnlink","p","onError","err","type","CompilerErrorEvent","TYPE","data","error","registerToEvents","sub","CompilerAspect","id","eventsListener","report","cliArgs","watchCmdOpts","checkTypes","getCheckTypesEnum","undefined","CheckTypes","None","EntireProject","ChangedFile","Error","watchOpts","msgs","preCompile","skipPreCompilation","spawnTSServer","Boolean","watchAll","process","stdout","write"],"sources":["watch.cmd.tsx"],"sourcesContent":["import chalk from 'chalk';\nimport moment from 'moment';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport type { Logger } from '@teambit/logger';\nimport type { BitBaseEvent, PubsubMain } from '@teambit/pubsub';\n\n// import IDs and events\nimport { CompilerAspect, CompilerErrorEvent } from '@teambit/compiler';\n\nimport { Watcher, WatchOptions } from './watcher';\nimport { formatCompileResults, formatWatchPathsSortByComponent } from './output-formatter';\nimport { OnComponentEventResult } from '../on-component-events';\nimport { CheckTypes } from './check-types';\n\nexport type WatchCmdOpts = {\n verbose?: boolean;\n skipPreCompilation?: boolean;\n checkTypes?: string | boolean;\n};\n\nexport class WatchCommand implements Command {\n msgs = {\n onAll: (event: string, path: string) => this.logger.console(`Event: \"${event}\". Path: ${path}`),\n onStart: () => {},\n onReady: (workspace, watchPathsSortByComponent, verbose) => {\n clearOutdatedData();\n if (verbose) {\n this.logger.console(formatWatchPathsSortByComponent(watchPathsSortByComponent));\n }\n this.logger.console(\n chalk.yellow(\n `Watching for component changes in workspace ${workspace.config.name} (${moment().format('HH:mm:ss')})...\\n`\n )\n );\n },\n onChange: (\n filePaths: string[],\n buildResults: OnComponentEventResult[],\n verbose: boolean,\n duration,\n failureMsg?: string\n ) => {\n const files = filePaths.join(', ');\n clearOutdatedData();\n if (!buildResults.length) {\n failureMsg = failureMsg || `The files ${files} have been changed, but nothing to compile`;\n this.logger.console(`${failureMsg}\\n\\n`);\n return;\n }\n this.logger.console(`The file(s) ${files} have been changed.\\n\\n`);\n this.logger.console(formatCompileResults(buildResults, verbose));\n this.logger.console(`Finished. (${duration}ms)`);\n this.logger.console(chalk.yellow(`Watching for component changes (${moment().format('HH:mm:ss')})...`));\n },\n onAdd: (\n filePaths: string[],\n buildResults: OnComponentEventResult[],\n verbose: boolean,\n duration,\n failureMsg?: string\n ) => {\n const files = filePaths.join(', ');\n clearOutdatedData();\n if (!buildResults.length) {\n failureMsg = failureMsg || `The files ${files} have been added, but nothing to compile`;\n this.logger.console(`${failureMsg}\\n\\n`);\n return;\n }\n this.logger.console(`The file(s) ${filePaths} have been added.\\n\\n`);\n this.logger.console(formatCompileResults(buildResults, verbose));\n this.logger.console(`Finished. (${duration}ms)`);\n this.logger.console(chalk.yellow(`Watching for component changes (${moment().format('HH:mm:ss')})...`));\n },\n onUnlink: (p) => {\n this.logger.console(`file ${p} has been removed`);\n },\n onError: (err) => {\n this.logger.console(`Watcher error ${err}`);\n },\n };\n\n name = 'watch';\n description = 'automatically recompile modified components (on save)';\n alias = '';\n group = 'development';\n options = [\n ['v', 'verbose', 'show npm verbose output for inspection and print the stack trace'],\n ['', 'skip-pre-compilation', 'skip the compilation step before starting to watch'],\n [\n 't',\n 'check-types [string]',\n 'EXPERIMENTAL. show errors/warnings for types. options are [file, project] to investigate only changed file or entire project. defaults to project',\n ],\n ] as CommandOptions;\n\n constructor(\n /**\n * logger extension.\n */\n private pubsub: PubsubMain,\n\n /**\n * logger extension.\n */\n private logger: Logger,\n\n /**\n * watcher extension.\n */\n private watcher: Watcher\n ) {\n this.registerToEvents();\n }\n\n private registerToEvents() {\n this.pubsub.sub(CompilerAspect.id, this.eventsListener);\n }\n\n private eventsListener = (event: BitBaseEvent<any>) => {\n switch (event.type) {\n case CompilerErrorEvent.TYPE:\n this.logger.console(`Watcher error ${event.data.error}, 'error'`);\n break;\n default:\n }\n };\n\n async report(cliArgs: [], watchCmdOpts: WatchCmdOpts) {\n const { verbose, checkTypes } = watchCmdOpts;\n const getCheckTypesEnum = () => {\n switch (checkTypes) {\n case undefined:\n case false:\n return CheckTypes.None;\n case 'project':\n case true: // project is the default\n return CheckTypes.EntireProject;\n case 'file':\n return CheckTypes.ChangedFile;\n default:\n throw new Error(`check-types can be either \"file\" or \"project\". got \"${checkTypes}\"`);\n }\n };\n const watchOpts: WatchOptions = {\n msgs: this.msgs,\n verbose,\n preCompile: !watchCmdOpts.skipPreCompilation,\n spawnTSServer: Boolean(checkTypes), // if check-types is enabled, it must spawn the tsserver.\n checkTypes: getCheckTypesEnum(),\n };\n await this.watcher.watchAll(watchOpts);\n return 'watcher terminated';\n }\n}\n\n/**\n * with console.clear() all history is deleted from the console. this function preserver the history.\n */\nfunction clearOutdatedData() {\n process.stdout.write('\\x1Bc');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAMA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AANA;AAcO,MAAMA,YAAN,CAAsC;EA2E3CC,WAAW;EACT;AACJ;AACA;EACYC,MAJC;EAMT;AACJ;AACA;EACYC,MATC;EAWT;AACJ;AACA;EACYC,OAdC,EAeT;IAAA,KAXQF,MAWR,GAXQA,MAWR;IAAA,KANQC,MAMR,GANQA,MAMR;IAAA,KADQC,OACR,GADQA,OACR;IAAA,8CAzFK;MACLC,KAAK,EAAE,CAACC,KAAD,EAAgBC,IAAhB,KAAiC,KAAKJ,MAAL,CAAYK,OAAZ,CAAqB,WAAUF,KAAM,YAAWC,IAAK,EAArD,CADnC;MAELE,OAAO,EAAE,MAAM,CAAE,CAFZ;MAGLC,OAAO,EAAE,CAACC,SAAD,EAAYC,yBAAZ,EAAuCC,OAAvC,KAAmD;QAC1DC,iBAAiB;;QACjB,IAAID,OAAJ,EAAa;UACX,KAAKV,MAAL,CAAYK,OAAZ,CAAoB,IAAAO,kDAAA,EAAgCH,yBAAhC,CAApB;QACD;;QACD,KAAKT,MAAL,CAAYK,OAAZ,CACEQ,gBAAA,CAAMC,MAAN,CACG,+CAA8CN,SAAS,CAACO,MAAV,CAAiBC,IAAK,KAAI,IAAAC,iBAAA,IAASC,MAAT,CAAgB,UAAhB,CAA4B,QADvG,CADF;MAKD,CAbI;MAcLC,QAAQ,EAAE,CACRC,SADQ,EAERC,YAFQ,EAGRX,OAHQ,EAIRY,QAJQ,EAKRC,UALQ,KAML;QACH,MAAMC,KAAK,GAAGJ,SAAS,CAACK,IAAV,CAAe,IAAf,CAAd
|
|
1
|
+
{"version":3,"names":["WatchCommand","constructor","pubsub","logger","watcher","onAll","event","path","console","onStart","onReady","workspace","watchPathsSortByComponent","verbose","clearOutdatedData","formatWatchPathsSortByComponent","chalk","yellow","config","name","moment","format","onChange","filePaths","buildResults","duration","failureMsg","files","join","length","formatCompileResults","onAdd","onUnlink","p","onError","err","type","CompilerErrorEvent","TYPE","data","error","registerToEvents","sub","CompilerAspect","id","eventsListener","report","cliArgs","watchCmdOpts","checkTypes","getCheckTypesEnum","undefined","CheckTypes","None","EntireProject","ChangedFile","Error","watchOpts","msgs","preCompile","skipPreCompilation","spawnTSServer","Boolean","watchAll","process","stdout","write"],"sources":["watch.cmd.tsx"],"sourcesContent":["import chalk from 'chalk';\nimport moment from 'moment';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport type { Logger } from '@teambit/logger';\nimport type { BitBaseEvent, PubsubMain } from '@teambit/pubsub';\n\n// import IDs and events\nimport { CompilerAspect, CompilerErrorEvent } from '@teambit/compiler';\n\nimport { Watcher, WatchOptions } from './watcher';\nimport { formatCompileResults, formatWatchPathsSortByComponent } from './output-formatter';\nimport { OnComponentEventResult } from '../on-component-events';\nimport { CheckTypes } from './check-types';\n\nexport type WatchCmdOpts = {\n verbose?: boolean;\n skipPreCompilation?: boolean;\n checkTypes?: string | boolean;\n};\n\nexport class WatchCommand implements Command {\n msgs = {\n onAll: (event: string, path: string) => this.logger.console(`Event: \"${event}\". Path: ${path}`),\n onStart: () => {},\n onReady: (workspace, watchPathsSortByComponent, verbose) => {\n clearOutdatedData();\n if (verbose) {\n this.logger.console(formatWatchPathsSortByComponent(watchPathsSortByComponent));\n }\n this.logger.console(\n chalk.yellow(\n `Watching for component changes in workspace ${workspace.config.name} (${moment().format('HH:mm:ss')})...\\n`\n )\n );\n },\n onChange: (\n filePaths: string[],\n buildResults: OnComponentEventResult[],\n verbose: boolean,\n duration,\n failureMsg?: string\n ) => {\n const files = filePaths.join(', ');\n // clearOutdatedData();\n if (!buildResults.length) {\n failureMsg = failureMsg || `The files ${files} have been changed, but nothing to compile`;\n this.logger.console(`${failureMsg}\\n\\n`);\n return;\n }\n this.logger.console(`The file(s) ${files} have been changed.\\n\\n`);\n this.logger.console(formatCompileResults(buildResults, verbose));\n this.logger.console(`Finished. (${duration}ms)`);\n this.logger.console(chalk.yellow(`Watching for component changes (${moment().format('HH:mm:ss')})...`));\n },\n onAdd: (\n filePaths: string[],\n buildResults: OnComponentEventResult[],\n verbose: boolean,\n duration,\n failureMsg?: string\n ) => {\n const files = filePaths.join(', ');\n // clearOutdatedData();\n if (!buildResults.length) {\n failureMsg = failureMsg || `The files ${files} have been added, but nothing to compile`;\n this.logger.console(`${failureMsg}\\n\\n`);\n return;\n }\n this.logger.console(`The file(s) ${filePaths} have been added.\\n\\n`);\n this.logger.console(formatCompileResults(buildResults, verbose));\n this.logger.console(`Finished. (${duration}ms)`);\n this.logger.console(chalk.yellow(`Watching for component changes (${moment().format('HH:mm:ss')})...`));\n },\n onUnlink: (p) => {\n this.logger.console(`file ${p} has been removed`);\n },\n onError: (err) => {\n this.logger.console(`Watcher error ${err}`);\n },\n };\n\n name = 'watch';\n description = 'automatically recompile modified components (on save)';\n alias = '';\n group = 'development';\n options = [\n ['v', 'verbose', 'show npm verbose output for inspection and print the stack trace'],\n ['', 'skip-pre-compilation', 'skip the compilation step before starting to watch'],\n [\n 't',\n 'check-types [string]',\n 'EXPERIMENTAL. show errors/warnings for types. options are [file, project] to investigate only changed file or entire project. defaults to project',\n ],\n ] as CommandOptions;\n\n constructor(\n /**\n * logger extension.\n */\n private pubsub: PubsubMain,\n\n /**\n * logger extension.\n */\n private logger: Logger,\n\n /**\n * watcher extension.\n */\n private watcher: Watcher\n ) {\n this.registerToEvents();\n }\n\n private registerToEvents() {\n this.pubsub.sub(CompilerAspect.id, this.eventsListener);\n }\n\n private eventsListener = (event: BitBaseEvent<any>) => {\n switch (event.type) {\n case CompilerErrorEvent.TYPE:\n this.logger.console(`Watcher error ${event.data.error}, 'error'`);\n break;\n default:\n }\n };\n\n async report(cliArgs: [], watchCmdOpts: WatchCmdOpts) {\n const { verbose, checkTypes } = watchCmdOpts;\n const getCheckTypesEnum = () => {\n switch (checkTypes) {\n case undefined:\n case false:\n return CheckTypes.None;\n case 'project':\n case true: // project is the default\n return CheckTypes.EntireProject;\n case 'file':\n return CheckTypes.ChangedFile;\n default:\n throw new Error(`check-types can be either \"file\" or \"project\". got \"${checkTypes}\"`);\n }\n };\n const watchOpts: WatchOptions = {\n msgs: this.msgs,\n verbose,\n preCompile: !watchCmdOpts.skipPreCompilation,\n spawnTSServer: Boolean(checkTypes), // if check-types is enabled, it must spawn the tsserver.\n checkTypes: getCheckTypesEnum(),\n };\n await this.watcher.watchAll(watchOpts);\n return 'watcher terminated';\n }\n}\n\n/**\n * with console.clear() all history is deleted from the console. this function preserver the history.\n */\nfunction clearOutdatedData() {\n process.stdout.write('\\x1Bc');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAMA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IA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CA,UAAU,EAAEC,iBAAiB;IALC,CAAhC;IAOA,MAAM,KAAK9C,OAAL,CAAa2D,QAAb,CAAsBN,SAAtB,CAAN;IACA,OAAO,oBAAP;EACD;;AApI0C;AAuI7C;AACA;AACA;;;;;AACA,SAAS3C,iBAAT,GAA6B;EAC3BkD,OAAO,CAACC,MAAR,CAAeC,KAAf,CAAqB,OAArB;AACD"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/workspace",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.873",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/workspace/workspace",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.workspace",
|
|
8
8
|
"name": "workspace",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.873"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"lodash": "4.17.21",
|
|
@@ -34,48 +34,48 @@
|
|
|
34
34
|
"@teambit/base-ui.surfaces.split-pane.split-pane": "1.0.0",
|
|
35
35
|
"@teambit/bit-error": "0.0.400",
|
|
36
36
|
"@teambit/component-id": "0.0.417",
|
|
37
|
-
"@teambit/lane-id": "0.0.
|
|
37
|
+
"@teambit/lane-id": "0.0.101",
|
|
38
38
|
"@teambit/legacy-bit-id": "0.0.414",
|
|
39
|
-
"@teambit/logger": "0.0.
|
|
40
|
-
"@teambit/scope": "0.0.
|
|
41
|
-
"@teambit/cli": "0.0.
|
|
42
|
-
"@teambit/isolator": "0.0.
|
|
43
|
-
"@teambit/component-tree": "0.0.
|
|
39
|
+
"@teambit/logger": "0.0.676",
|
|
40
|
+
"@teambit/scope": "0.0.873",
|
|
41
|
+
"@teambit/cli": "0.0.583",
|
|
42
|
+
"@teambit/isolator": "0.0.873",
|
|
43
|
+
"@teambit/component-tree": "0.0.661",
|
|
44
44
|
"@teambit/component.ui.component-status-resolver": "0.0.500",
|
|
45
|
-
"@teambit/lanes.hooks.use-lanes": "0.0.
|
|
45
|
+
"@teambit/lanes.hooks.use-lanes": "0.0.43",
|
|
46
46
|
"@teambit/harmony.modules.resolved-component": "0.0.490",
|
|
47
|
-
"@teambit/compiler": "0.0.
|
|
48
|
-
"@teambit/component": "0.0.
|
|
49
|
-
"@teambit/graphql": "0.0.
|
|
50
|
-
"@teambit/aspect-loader": "0.0.
|
|
51
|
-
"@teambit/bundler": "0.0.
|
|
52
|
-
"@teambit/dependency-resolver": "0.0.
|
|
53
|
-
"@teambit/envs": "0.0.
|
|
54
|
-
"@teambit/pubsub": "0.0.
|
|
55
|
-
"@teambit/ui": "0.0.
|
|
56
|
-
"@teambit/variants": "0.0.
|
|
47
|
+
"@teambit/compiler": "0.0.873",
|
|
48
|
+
"@teambit/component": "0.0.873",
|
|
49
|
+
"@teambit/graphql": "0.0.873",
|
|
50
|
+
"@teambit/aspect-loader": "0.0.873",
|
|
51
|
+
"@teambit/bundler": "0.0.873",
|
|
52
|
+
"@teambit/dependency-resolver": "0.0.873",
|
|
53
|
+
"@teambit/envs": "0.0.873",
|
|
54
|
+
"@teambit/pubsub": "0.0.873",
|
|
55
|
+
"@teambit/ui": "0.0.873",
|
|
56
|
+
"@teambit/variants": "0.0.686",
|
|
57
57
|
"@teambit/component-issues": "0.0.72",
|
|
58
|
-
"@teambit/config": "0.0.
|
|
58
|
+
"@teambit/config": "0.0.596",
|
|
59
59
|
"@teambit/harmony.modules.requireable-component": "0.0.490",
|
|
60
60
|
"@teambit/workspace.modules.match-pattern": "0.0.495",
|
|
61
|
-
"@teambit/component.ui.component-drawer": "0.0.
|
|
61
|
+
"@teambit/component.ui.component-drawer": "0.0.137",
|
|
62
62
|
"@teambit/design.ui.tree": "0.0.12",
|
|
63
|
-
"@teambit/lanes.hooks.use-lane-components": "0.0.
|
|
64
|
-
"@teambit/ui-foundation.ui.side-bar": "0.0.
|
|
65
|
-
"@teambit/command-bar": "0.0.
|
|
66
|
-
"@teambit/component.ui.component-filters.component-filter-context": "0.0.
|
|
67
|
-
"@teambit/component.ui.component-filters.deprecate-filter": "0.0.
|
|
68
|
-
"@teambit/component.ui.component-filters.env-filter": "0.0.
|
|
69
|
-
"@teambit/component.ui.component-filters.show-main-filter": "0.0.
|
|
70
|
-
"@teambit/graph": "0.0.
|
|
71
|
-
"@teambit/sidebar": "0.0.
|
|
63
|
+
"@teambit/lanes.hooks.use-lane-components": "0.0.42",
|
|
64
|
+
"@teambit/ui-foundation.ui.side-bar": "0.0.654",
|
|
65
|
+
"@teambit/command-bar": "0.0.873",
|
|
66
|
+
"@teambit/component.ui.component-filters.component-filter-context": "0.0.12",
|
|
67
|
+
"@teambit/component.ui.component-filters.deprecate-filter": "0.0.12",
|
|
68
|
+
"@teambit/component.ui.component-filters.env-filter": "0.0.18",
|
|
69
|
+
"@teambit/component.ui.component-filters.show-main-filter": "0.0.5",
|
|
70
|
+
"@teambit/graph": "0.0.873",
|
|
71
|
+
"@teambit/sidebar": "0.0.873",
|
|
72
72
|
"@teambit/ui-foundation.ui.main-dropdown": "0.0.493",
|
|
73
73
|
"@teambit/ui-foundation.ui.menu": "0.0.493",
|
|
74
74
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.496",
|
|
75
75
|
"@teambit/ui-foundation.ui.tree.drawer": "0.0.505",
|
|
76
76
|
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.496",
|
|
77
|
-
"@teambit/component-descriptor": "0.0.
|
|
78
|
-
"@teambit/deprecation": "0.0.
|
|
77
|
+
"@teambit/component-descriptor": "0.0.151",
|
|
78
|
+
"@teambit/deprecation": "0.0.873",
|
|
79
79
|
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.494",
|
|
80
80
|
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.201",
|
|
81
81
|
"@teambit/ui-foundation.ui.corner": "0.0.504",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"peerDependencies": {
|
|
103
103
|
"react-router-dom": "^6.0.0",
|
|
104
104
|
"@apollo/client": "^3.6.0",
|
|
105
|
-
"@teambit/legacy": "1.0.
|
|
105
|
+
"@teambit/legacy": "1.0.364",
|
|
106
106
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
107
107
|
"react": "^16.8.0 || ^17.0.0"
|
|
108
108
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.873/dist/workspace.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.873/dist/workspace.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/watch/watch.cmd.tsx
CHANGED
|
@@ -41,7 +41,7 @@ export class WatchCommand implements Command {
|
|
|
41
41
|
failureMsg?: string
|
|
42
42
|
) => {
|
|
43
43
|
const files = filePaths.join(', ');
|
|
44
|
-
clearOutdatedData();
|
|
44
|
+
// clearOutdatedData();
|
|
45
45
|
if (!buildResults.length) {
|
|
46
46
|
failureMsg = failureMsg || `The files ${files} have been changed, but nothing to compile`;
|
|
47
47
|
this.logger.console(`${failureMsg}\n\n`);
|
|
@@ -60,7 +60,7 @@ export class WatchCommand implements Command {
|
|
|
60
60
|
failureMsg?: string
|
|
61
61
|
) => {
|
|
62
62
|
const files = filePaths.join(', ');
|
|
63
|
-
clearOutdatedData();
|
|
63
|
+
// clearOutdatedData();
|
|
64
64
|
if (!buildResults.length) {
|
|
65
65
|
failureMsg = failureMsg || `The files ${files} have been added, but nothing to compile`;
|
|
66
66
|
this.logger.console(`${failureMsg}\n\n`);
|
|
Binary file
|