Skip to content

Commit

Permalink
migrating
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie ⚡ committed Mar 26, 2022
1 parent fd6a702 commit 80193be
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
6 changes: 4 additions & 2 deletions next.config.js → next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// @ts-check
const withBundleAnalyzer = require("@next/bundle-analyzer")({
import bundleAnalyzer from "@next/bundle-analyzer";

const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === "true"
});

Expand All @@ -12,4 +14,4 @@ const config = {
cleanDistDir: true
};

module.exports = withBundleAnalyzer(config);
export default withBundleAnalyzer(config);
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"build": "next build",
"dev": "next dev",
"lint": "next lint",
"build:analyze": "ANALYZE=true yarn build",
"build:analyze": "ANALYZE=true next build",
"dev:inspect": "NODE_OPTIONS='--inspect' next dev",
"test": "jest --runInBand",
"test:ci": "jest --ci --runInBand --no-cache",
"db:clear": "node scripts/prep-db",
"prepare": "husky install",
"prebuild": "yarn generate",
"predev": "yarn generate",
"prebuild": "graphql-codegen",
"predev": "graphql-codegen",
"generate": "graphql-codegen",
"types": "tsc --noEmit --pretty"
},
Expand Down Expand Up @@ -81,7 +81,7 @@
"@types/prismjs": "^1.26.0",
"@types/puppeteer": "^5.4.5",
"@types/react": "^17.0.43",
"@types/react-dom": "^17.0.13",
"@types/react-dom": "^17.0.14",
"@types/react-test-renderer": "^17.0.1",
"@types/ua-parser-js": "^0.7.36",
"@types/use-subscription": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"isolatedModules": true,
"incremental": true
},
"exclude": ["next.config.js", "node_modules/@jest"],
"exclude": ["next.config.mjs", "node_modules/@jest"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]
}
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2078,10 +2078,10 @@
resolved "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz#cd667bcfdd025213aafb7ca5915a932590acdcdc"
integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==

"@types/react-dom@^17.0.13":
version "17.0.13"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.13.tgz#a3323b974ee4280070982b3112351bb1952a7809"
integrity sha512-wEP+B8hzvy6ORDv1QBhcQia4j6ea4SFIBttHYpXKPFZRviBvknq0FRh3VrIxeXUmsPkwuXVZrVGG7KUVONmXCQ==
"@types/react-dom@^17.0.14":
version "17.0.14"
resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.14.tgz#c8f917156b652ddf807711f5becbd2ab018dea9f"
integrity sha512-H03xwEP1oXmSfl3iobtmQ/2dHF5aBHr8aUMwyGZya6OW45G+xtdzmq6HkncefiBt5JU8DVyaWl/nWZbjZCnzAQ==
dependencies:
"@types/react" "*"

Expand Down Expand Up @@ -9186,7 +9186,7 @@ zen-observable@^0.8.0:

zod@^3.14.2:
version "3.14.2"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.14.2.tgz#0b4ed79085c471adce0e7f2c0a4fbb5ddc516ba2"
resolved "https://registry.npmjs.org/zod/-/zod-3.14.2.tgz#0b4ed79085c471adce0e7f2c0a4fbb5ddc516ba2"
integrity sha512-iF+wrtzz7fQfkmn60PG6XFxaWBhYYKzp2i+nv24WbLUWb2JjymdkHlzBwP0erpc78WotwP5g9AAu7Sk8GWVVNw==

zwitch@^1.0.0:
Expand Down

1 comment on commit 80193be

@vercel
Copy link

@vercel vercel bot commented on 80193be Mar 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.