Skip to content

Commit

Permalink
feat: move to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Aug 31, 2023
1 parent 0ad7268 commit 2d0e4da
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion .eslintrc.repo.js → .eslintrc.repo.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const WARN = 1;
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: [
"./.eslintrc.js",
"./.eslintrc.cjs",
"@remix-run/eslint-config/internal",
"plugin:markdown/recommended",
],
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
"name": "indie-stack-template",
"private": true,
"sideEffects": false,
"type": "module",
"scripts": {
"build": "remix build",
"dev": "remix dev -c \"npm run dev:serve\"",
"dev:serve": "binode --require ./mocks -- @remix-run/serve:remix-serve ./build",
"format": "prettier --write .",
"format:repo": "npm run format && npm run lint:repo -- --fix",
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
"lint:repo": "npm run lint -- --config .eslintrc.repo.js",
"lint:repo": "npm run lint -- --config .eslintrc.repo.cjs",
"setup": "prisma generate && prisma migrate deploy && prisma db seed",
"start": "remix-serve build",
"start:mocks": "binode --require ./mocks -- @remix-run/serve:remix-serve build",
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions remix.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
export default {
cacheDirectory: "./node_modules/.cache/remix",
future: {
v2_dev: true,
Expand All @@ -11,6 +11,6 @@ module.exports = {
},
ignoredRouteFiles: ["**/.*", "**/*.test.{js,jsx,ts,tsx}"],
postcss: true,
serverModuleFormat: "cjs",
serverModuleFormat: "esm",
tailwind: true,
};

0 comments on commit 2d0e4da

Please sign in to comment.