-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix
ModuleGraph
type export (#537)
* fix: fix `ModuleGraph` type export * chore: remove unnecessary directives * chore: reset formatting
- Loading branch information
1 parent
0c0fad6
commit 0138d13
Showing
6 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import { readdir, unlink } from 'fs/promises' | ||
import { join } from 'path' | ||
|
||
import type { ModuleGraphJson } from '../../deno/vendor/deno.land/x/[email protected]/types.d.js' | ||
import { DenoBridge, OnAfterDownloadHook, OnBeforeDownloadHook, ProcessRef } from '../bridge.js' | ||
import { getFunctionConfig, FunctionConfig } from '../config.js' | ||
import type { EdgeFunction } from '../edge_function.js' | ||
|
@@ -11,11 +10,11 @@ import { ImportMap } from '../import_map.js' | |
import { getLogger, LogFunction, Logger } from '../logger.js' | ||
import { vendorNPMSpecifiers } from '../npm_dependencies.js' | ||
import { ensureLatestTypes } from '../types.js' | ||
import type { ModuleGraphJson } from '../vendor/module_graph/module_graph.js' | ||
|
||
import { killProcess, waitForServer } from './util.js' | ||
|
||
export type FormatFunction = (name: string) => string | ||
export type ModuleGraph = ModuleGraphJson | ||
|
||
interface PrepareServerOptions { | ||
basePath: string | ||
|
@@ -73,7 +72,7 @@ const prepareServer = ({ | |
await killProcess(processRef.ps) | ||
} | ||
|
||
let graph: ModuleGraph = { | ||
let graph: ModuleGraphJson = { | ||
roots: [], | ||
modules: [], | ||
redirects: {}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ export enum MediaType { | |
TsBuildInfo = "TsBuildInfo", | ||
SourceMap = "SourceMap", | ||
Unknown = "Unknown", | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,11 +35,11 @@ | |
"test:ci:vitest": "vitest run --coverage", | ||
"test:ci:deno": "deno test --allow-all deno", | ||
"test:integration": "node --experimental-modules test/integration/test.js", | ||
"vendor": "deno vendor --force --output deno/vendor https://deno.land/x/[email protected]/types.d.ts https://deno.land/x/[email protected]/mod.ts https://deno.land/x/[email protected]/mod.ts https://deno.land/x/[email protected]/path/mod.ts" | ||
"vendor": "deno vendor --force --output deno/vendor https://deno.land/x/[email protected]/mod.ts https://deno.land/x/[email protected]/mod.ts https://deno.land/x/[email protected]/path/mod.ts" | ||
}, | ||
"config": { | ||
"eslint": "--ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \"{node,scripts,.github}/**/*.{js,ts,md,html}\" \"*.{js,ts,md,html}\"", | ||
"prettier": "--ignore-path .gitignore --loglevel=warn \"{node,scripts,.github}/**/*.{js,ts,md,yml,json,html}\" \"*.{js,ts,yml,json,html}\" \".*.{js,ts,yml,json,html}\" \"!**/package-lock.json\" \"!package-lock.json\"" | ||
"prettier": "--ignore-path .gitignore --loglevel=warn \"{node,scripts,.github}/**/*.{js,ts,md,yml,json,html}\" \"*.{js,ts,yml,json,html}\" \".*.{js,ts,yml,json,html}\" \"!**/package-lock.json\" \"!package-lock.json\" \"!node/vendor/**\"" | ||
}, | ||
"keywords": [], | ||
"license": "MIT", | ||
|