Upgrade redwood to 0.33

Resolves #341.
This commit is contained in:
Kurt Hutten
2021-06-05 12:52:39 +10:00
parent e433648fe6
commit 563700d995
9 changed files with 3744 additions and 1569 deletions

View File

@@ -1,4 +1,4 @@
datasource DS { datasource db {
provider = "postgresql" provider = "postgresql"
url = env("DATABASE_URL") url = env("DATABASE_URL")
} }

View File

@@ -3,8 +3,8 @@
"version": "0.0.0", "version": "0.0.0",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@redwoodjs/api": "0.32.2", "@redwoodjs/api": "^0.33.0",
"@redwoodjs/api-server": "0.32.2", "@redwoodjs/api-server": "^0.33.0",
"cloudinary": "^1.23.0" "cloudinary": "^1.23.0"
} }
} }

17
app/api/tsconfig.json Normal file
View File

@@ -0,0 +1,17 @@
{
"compilerOptions": {
"noEmit": true,
"allowJs": true,
"esModuleInterop": true,
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"baseUrl": "./",
"paths": {
"src/*": ["./src/*"]
},
"typeRoots": ["../node_modules/@types", "./node_modules/@types"],
"types": ["jest"]
},
"include": ["src", "../.redwood/**/*"]
}

View File

@@ -1,7 +1,5 @@
const { getConfig } = require('@redwoodjs/internal') const { getPaths } = require('@redwoodjs/internal')
const config = getConfig()
module.exports = { module.exports = {
schema: `http://${config.api.host}:${config.api.port}/graphql`, schema: getPaths().generated.schema,
} }

View File

@@ -8,7 +8,7 @@
}, },
"scripts": {}, "scripts": {},
"devDependencies": { "devDependencies": {
"@redwoodjs/core": "0.32.2" "@redwoodjs/core": "^0.33.0"
}, },
"eslintConfig": { "eslintConfig": {
"extends": "@redwoodjs/eslint-config", "extends": "@redwoodjs/eslint-config",
@@ -29,4 +29,4 @@
"node": ">=14", "node": ">=14",
"yarn": ">=1.15" "yarn": ">=1.15"
} }
} }

View File

@@ -15,3 +15,6 @@
schemaPath = "./api/db/schema.prisma" schemaPath = "./api/db/schema.prisma"
[browser] [browser]
open = true open = true
[experimental]
esbuild = true

View File

@@ -16,10 +16,10 @@
"@headlessui/react": "^1.0.0", "@headlessui/react": "^1.0.0",
"@material-ui/core": "^4.11.0", "@material-ui/core": "^4.11.0",
"@monaco-editor/react": "^4.0.11", "@monaco-editor/react": "^4.0.11",
"@redwoodjs/auth": "0.32.2", "@redwoodjs/auth": "^0.33.0",
"@redwoodjs/forms": "0.32.2", "@redwoodjs/forms": "^0.33.0",
"@redwoodjs/router": "0.32.2", "@redwoodjs/router": "^0.33.0",
"@redwoodjs/web": "0.32.2", "@redwoodjs/web": "^0.33.0",
"browser-fs-access": "^0.17.2", "browser-fs-access": "^0.17.2",
"cloudinary-react": "^1.6.7", "cloudinary-react": "^1.6.7",
"controlkit": "^0.1.9", "controlkit": "^0.1.9",
@@ -56,4 +56,4 @@
"tailwindcss": "^2.1.2", "tailwindcss": "^2.1.2",
"worker-loader": "^3.0.7" "worker-loader": "^3.0.7"
} }
} }

18
app/web/tsconfig.json Normal file
View File

@@ -0,0 +1,18 @@
{
"compilerOptions": {
"noEmit": true,
"allowJs": true,
"esModuleInterop": true,
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"baseUrl": "./",
"paths": {
"src/*": ["./src/*"]
},
"typeRoots": ["../node_modules/@types", "./node_modules/@types"],
"types": ["jest"],
"jsx": "preserve",
},
"include": ["src", "../.redwood/**/*"]
}

File diff suppressed because it is too large Load Diff