@travetto/manifest 5.0.3 → 5.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/manifest",
3
- "version": "5.0.3",
3
+ "version": "5.0.4",
4
4
  "description": "Support for project indexing, manifesting, along with file watching",
5
5
  "keywords": [
6
6
  "path",
package/src/context.ts CHANGED
@@ -17,6 +17,7 @@ type Workspace = Pkg<{
17
17
  const TOOL_FOLDER = '.trv/tool';
18
18
  const COMPILER_FOLDER = '.trv/compiler';
19
19
  const OUTPUT_FOLDER = '.trv/output';
20
+ const TYPES_FOLDER = '.trv/types';
20
21
 
21
22
  const WS_ROOT: Record<string, Workspace> = {};
22
23
 
@@ -133,7 +134,6 @@ export function getManifestContext(folder?: string): ManifestContext {
133
134
  const workspace = resolveWorkspace();
134
135
  const mod = resolveModule(workspace, folder);
135
136
  const build = workspace.travetto?.build ?? {};
136
- const toolFolder = build.toolFolder ?? TOOL_FOLDER;
137
137
 
138
138
  return {
139
139
  workspace: {
@@ -149,7 +149,8 @@ export function getManifestContext(folder?: string): ManifestContext {
149
149
  compilerUrl: build.compilerUrl ?? getCompilerUrl(workspace),
150
150
  compilerModuleFolder: workspace.stripRoot(path.dirname(workspace.resolve('@travetto/compiler/package.json'))),
151
151
  outputFolder: build.outputFolder ?? OUTPUT_FOLDER,
152
- toolFolder
152
+ toolFolder: build.toolFolder ?? TOOL_FOLDER,
153
+ typesFolder: build.typesFolder ?? TYPES_FOLDER
153
154
  },
154
155
  main: {
155
156
  name: mod.name ?? 'untitled',
@@ -26,6 +26,8 @@ export type ManifestContext = {
26
26
  outputFolder: string;
27
27
  /** Location of development-time tool output */
28
28
  toolFolder: string;
29
+ /** Location for type outputs */
30
+ typesFolder: string;
29
31
  };
30
32
  main: {
31
33
  /** Main module for manifest */
@@ -46,6 +46,7 @@ export type Package = {
46
46
  isolated?: boolean;
47
47
  includes?: Record<string, 'main' | true>;
48
48
  watchIgnores?: string[];
49
+ typesFolder?: string;
49
50
  };
50
51
  };
51
52
  workspaces?: string[];