|
37 | 37 | }, |
38 | 38 | "scripts": { |
39 | 39 | "build": "pnpm clean && pnpm build:js && pnpm build:css", |
40 | | - "clean": "rm -rf client css lib providers core jwt react next index.d.ts index.js adapters.d.ts middleware.d.ts middleware.js", |
| 40 | + "clean": "rm -rf client css utils providers core jwt react next index.d.ts index.js adapters.d.ts middleware.d.ts middleware.js", |
41 | 41 | "build:js": "pnpm clean && pnpm generate-providers && tsc && babel --config-file ./config/babel.config.js src --out-dir . --extensions \".tsx,.ts,.js,.jsx\"", |
42 | 42 | "build:css": "postcss --config config/postcss.config.js src/**/*.css --base src --dir . && node config/wrap-css.js", |
43 | 43 | "watch:css": "postcss --config config/postcss.config.js --watch src/**/*.css --base src --dir .", |
44 | | - "test": "jest --config ./config/jest.config.js", |
| 44 | + "test:client": "jest --config ./config/jest.client.config.js", |
| 45 | + "test:core": "jest --config ./config/jest.core.config.js", |
| 46 | + "test": "pnpm test:core && pnpm test:client", |
45 | 47 | "prepublishOnly": "pnpm build", |
46 | 48 | "generate-providers": "node ./config/generate-providers.js", |
47 | 49 | "setup": "pnpm generate-providers", |
|
85 | 87 | } |
86 | 88 | }, |
87 | 89 | "devDependencies": { |
88 | | - "@babel/cli": "^7.16.0", |
89 | | - "@babel/core": "^7.16.0", |
90 | | - "@babel/plugin-proposal-optional-catch-binding": "^7.16.0", |
91 | | - "@babel/plugin-transform-runtime": "^7.16.4", |
92 | | - "@babel/preset-env": "^7.16.4", |
93 | | - "@babel/preset-react": "^7.16.0", |
94 | | - "@babel/preset-typescript": "^7.16.0", |
| 90 | + "@babel/cli": "^7.17.10", |
| 91 | + "@babel/core": "^7.18.2", |
| 92 | + "@babel/plugin-proposal-optional-catch-binding": "^7.16.7", |
| 93 | + "@babel/plugin-transform-runtime": "^7.18.2", |
| 94 | + "@babel/preset-env": "^7.18.2", |
| 95 | + "@babel/preset-react": "^7.17.12", |
| 96 | + "@babel/preset-typescript": "^7.17.12", |
95 | 97 | "@next-auth/tsconfig": "workspace:^0.0.0", |
96 | | - "@testing-library/dom": "^8.11.3", |
97 | | - "@testing-library/jest-dom": "^5.16.1", |
98 | | - "@testing-library/react": "^12.1.2", |
99 | | - "@testing-library/react-hooks": "^7.0.2", |
100 | | - "@testing-library/user-event": "^13.5.0", |
101 | | - "@types/node": "^16.11.12", |
| 98 | + "@swc/core": "^1.2.198", |
| 99 | + "@swc/jest": "^0.2.21", |
| 100 | + "@testing-library/dom": "^8.13.0", |
| 101 | + "@testing-library/jest-dom": "^5.16.4", |
| 102 | + "@testing-library/react": "^13.3.0", |
| 103 | + "@testing-library/react-hooks": "^8.0.0", |
| 104 | + "@testing-library/user-event": "^14.2.0", |
| 105 | + "@types/node": "^17.0.42", |
102 | 106 | "@types/nodemailer": "^6.4.4", |
103 | 107 | "@types/oauth": "^0.9.1", |
104 | | - "@types/react": "^17.0.37", |
105 | | - "@types/react-dom": "^17.0.11", |
106 | | - "autoprefixer": "^10.4.0", |
107 | | - "babel-jest": "^27.4.2", |
| 108 | + "@types/react": "^18.0.2", |
| 109 | + "@types/react-dom": "^18.0.5", |
| 110 | + "autoprefixer": "^10.4.7", |
108 | 111 | "babel-plugin-jsx-pragmatic": "^1.0.2", |
109 | 112 | "babel-preset-preact": "^2.0.0", |
110 | | - "cssnano": "^5.0.12", |
111 | | - "jest": "^27.4.3", |
112 | | - "jest-watch-typeahead": "^1.0.0", |
113 | | - "msw": "^0.36.3", |
114 | | - "next": "12.1.0", |
115 | | - "postcss": "^8.4.12", |
116 | | - "postcss-cli": "^9.0.2", |
| 113 | + "cssnano": "^5.1.11", |
| 114 | + "jest": "^28.1.1", |
| 115 | + "jest-environment-jsdom": "^28.1.1", |
| 116 | + "jest-watch-typeahead": "^1.1.0", |
| 117 | + "msw": "^0.42.1", |
| 118 | + "next": "^12.1.6", |
| 119 | + "postcss": "^8.4.14", |
| 120 | + "postcss-cli": "^9.1.0", |
117 | 121 | "postcss-nested": "^5.0.6", |
118 | | - "react": "^17.0.2", |
119 | | - "react-dom": "^17.0.2", |
| 122 | + "react": "^18.1.0", |
| 123 | + "react-dom": "^18.1.0", |
120 | 124 | "whatwg-fetch": "^3.6.2" |
121 | 125 | }, |
122 | 126 | "engines": { |
|
0 commit comments