Skip to content

Commit

Permalink
feat: remove all TypeScript references when isTypeScript is passed …
Browse files Browse the repository at this point in the history
…as `false` to `remix.init`
  • Loading branch information
MichaelDeBoey committed Apr 27, 2022
1 parent c8fc6a0 commit 63af32a
Show file tree
Hide file tree
Showing 9 changed files with 252 additions and 780 deletions.
5 changes: 3 additions & 2 deletions cypress/support/create-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
// and it will log out the cookie value you can use to interact with the server
// as that new user.

import { parse } from "cookie";
import { installGlobals } from "@remix-run/node/globals";
import { createUserSession } from "~/session.server";
import { parse } from "cookie";

import { createUser } from "~/models/user.server";
import { createUserSession } from "~/session.server";

installGlobals();

Expand Down
1 change: 1 addition & 0 deletions cypress/support/delete-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// and that user will get deleted

import { installGlobals } from "@remix-run/node/globals";

import { prisma } from "~/db.server";

installGlobals();
Expand Down
98 changes: 70 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"tsconfig-paths": "^3.14.1",
"typescript": "^4.6.3",
"vite": "^2.9.6",
"vite-jsconfig-paths": "^2.0.1",
"vite-tsconfig-paths": "^3.4.1",
"vitest": "^0.10.0"
},
Expand Down

0 comments on commit 63af32a

Please sign in to comment.