Revert "refactor: use --env CLI arg" (#2212)
Reverts denoland/fresh#2204 The `--env` flag cannot be used by default because it fails when no `.env` file is present. Therefore this PR accidentally introduced a breaking change.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"lock": false,
|
||||
"tasks": {
|
||||
"start": "deno run -A --watch=static/,routes/ --env dev.ts"
|
||||
"start": "deno run -A --watch=static/,routes/ dev.ts"
|
||||
},
|
||||
"imports": {
|
||||
"$fresh/": "../../",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"lock": false,
|
||||
"tasks": {
|
||||
"start": "deno run -A --watch=static/,routes/ --env dev.ts"
|
||||
"start": "deno run -A --watch=static/,routes/ dev.ts"
|
||||
},
|
||||
"imports": {
|
||||
"$fresh/": "../../",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"lock": false,
|
||||
"tasks": {
|
||||
"start": "deno run -A --watch=static/,routes/ --env dev.ts"
|
||||
"start": "deno run -A --watch=static/,routes/ dev.ts"
|
||||
},
|
||||
"imports": {
|
||||
"$fresh/": "../../",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"lock": false,
|
||||
"tasks": {
|
||||
"start": "deno run -A --watch=static/,routes/ --env dev.ts",
|
||||
"start": "deno run -A --watch=static/,routes/ dev.ts",
|
||||
"update": "deno run -A -r https://fresh.deno.dev/update ."
|
||||
},
|
||||
"imports": {
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
/// <reference lib="dom.asynciterable" />
|
||||
/// <reference lib="deno.ns" />
|
||||
|
||||
import "$std/dotenv/load.ts";
|
||||
|
||||
import { start } from "$fresh/server.ts";
|
||||
import manifest from "./fresh.gen.ts";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"lock": false,
|
||||
"tasks": {
|
||||
"start": "deno run -A --watch=static/,routes/ --env dev.ts"
|
||||
"start": "deno run -A --watch=static/,routes/ dev.ts"
|
||||
},
|
||||
"imports": {
|
||||
"$fresh/": "../../",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"lock": false,
|
||||
"tasks": {
|
||||
"start": "deno run -A --watch=static/,routes/ --env dev.ts"
|
||||
"start": "deno run -A --watch=static/,routes/ dev.ts"
|
||||
},
|
||||
"imports": {
|
||||
"$fresh/": "../../",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"lock": false,
|
||||
"tasks": {
|
||||
"start": "deno run -A --watch=static/,routes/ --env dev.ts"
|
||||
"start": "deno run -A --watch=static/,routes/ dev.ts"
|
||||
},
|
||||
"imports": {
|
||||
"$fresh/": "../../",
|
||||
|
||||
+2
-2
@@ -406,7 +406,7 @@ Deno.test({
|
||||
|
||||
await t.step("start up the server", async () => {
|
||||
const { serverProcess, lines, address } = await startFreshServer({
|
||||
args: ["run", "-A", "--no-check", "--env", "dev.ts"],
|
||||
args: ["run", "-A", "--no-check", "dev.ts"],
|
||||
cwd: tmpDirName,
|
||||
});
|
||||
|
||||
@@ -433,7 +433,7 @@ Deno.test({
|
||||
}).output();
|
||||
|
||||
const { serverProcess, lines, address, output } = await startFreshServer({
|
||||
args: ["run", "-A", "--no-check", "--env", "main.ts"],
|
||||
args: ["run", "-A", "--no-check", "main.ts"],
|
||||
cwd: tmpDirName,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user