mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-23 05:46:20 +02:00
♻️ Switch to app router (#922)
This commit is contained in:
parent
41f85279bb
commit
95feb9f01a
181 changed files with 2507 additions and 2494 deletions
4
packages/database/.eslintrc.js
Normal file
4
packages/database/.eslintrc.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
/** @type {import("eslint").Linter.Config} */
|
||||
module.exports = {
|
||||
...require("@rallly/eslint-config")(__dirname),
|
||||
};
|
|
@ -7,7 +7,7 @@
|
|||
"db:push": "prisma db push --skip-generate",
|
||||
"db:deploy": "prisma migrate deploy",
|
||||
"db:migrate": "prisma migrate dev",
|
||||
"db:seed": "ts-node --transpile-only prisma/seed.ts"
|
||||
"db:seed": "tsx prisma/seed.ts"
|
||||
},
|
||||
"main": "./index.ts",
|
||||
"types": "./index.ts",
|
||||
|
@ -19,6 +19,6 @@
|
|||
"@rallly/tsconfig": "*",
|
||||
"@types/node": "^18.15.10",
|
||||
"prisma": "^5.3.1",
|
||||
"ts-node": "^10.9.1"
|
||||
"tsx": "^3.14.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,11 +143,12 @@ async function main() {
|
|||
},
|
||||
});
|
||||
|
||||
[freeUser.id, proUser.id, proUserLegacy.id].forEach(async (userId) => {
|
||||
await createPollsForUser(userId);
|
||||
});
|
||||
|
||||
console.info(`Seeded data`);
|
||||
await Promise.all(
|
||||
[freeUser, proUser, proUserLegacy].map(async (user) => {
|
||||
await createPollsForUser(user.id);
|
||||
console.info(`✓ Added ${user.email}`);
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
main()
|
||||
|
|
5
packages/database/tsconfig.json
Normal file
5
packages/database/tsconfig.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"extends": "@rallly/tsconfig/next.json",
|
||||
"include": ["**/*.ts", "**/*.tsx"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue