Skip to content

Commit

Permalink
Remove deprecated syntax from dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Feb 19, 2023
1 parent 3b90154 commit 554900e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 76 deletions.
46 changes: 0 additions & 46 deletions src/config.ts

This file was deleted.

30 changes: 0 additions & 30 deletions src/start-dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,8 @@ function isReadable(v: any): v is Readable {
export const startDevServer: StartDevServer = async ({
entrypoint,
workPath,
config,
meta = {},
}) => {
// @deprecated
const unstable =
configBool(
config,
'denoUnstable',
meta.buildEnv || {},
'DENO_UNSTABLE'
) || false;

// @deprecated
const denoTsConfig = configString(
config,
'tsconfig',
meta.buildEnv || {},
'DENO_TSCONFIG'
);

const portFile = join(
TMP,
`vercel-deno-port-${Math.random().toString(32).substring(2)}`
Expand All @@ -68,12 +50,6 @@ export const startDevServer: StartDevServer = async ({

const args = shebang.parse(await readFile(absEntrypoint, 'utf8'));

// @deprecated
if (unstable) {
console.log('DENO_UNSTABLE env var is deprecated');
args['--unstable'] = true;
}

// Flags that accept file paths are relative to the entrypoint in
// the source file, but `deno run` is executed at the root directory
// of the project, so the arguments need to be relativized to the root
Expand All @@ -89,12 +65,6 @@ export const startDevServer: StartDevServer = async ({
}
}

// @deprecated
if (denoTsConfig && !args['--config']) {
console.log('DENO_TSCONFIG env var is deprecated');
args['--config'] = denoTsConfig;
}

const argv = [
'run',
'--allow-all',
Expand Down

0 comments on commit 554900e

Please sign in to comment.