Skip to content

Commit

Permalink
Update dependencies, fix issue with building astro
Browse files Browse the repository at this point in the history
  • Loading branch information
Bwc9876 committed Aug 18, 2023
1 parent 09a63fd commit 63ab733
Show file tree
Hide file tree
Showing 4 changed files with 1,099 additions and 1,130 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"packageManager": "pnpm@7.9.5",
"scripts": {
"prettify": "prettier --write . --plugin-search-dir=. --ignore-unknown",
"prettify": "prettier --write . --ignore-unknown",
"black": "poetry run black .",
"lint": "eslint --cache .",
"format": "pnpm prettify && pnpm lint --fix && pnpm black",
Expand All @@ -18,19 +18,19 @@
"packages/*"
],
"devDependencies": {
"@types/node": "^18.11.17",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@typescript-eslint/parser": "^5.47.0",
"eslint": "^8.30.0",
"eslint-config-prettier": "^8.5.0",
"husky": "^8.0.2",
"lint-staged": "^13.1.0",
"prettier": "^2.8.1",
"prettier-plugin-astro": "^0.7.0",
"typescript": "^4.9.4"
"@types/node": "^20.5.0",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.0",
"prettier": "^3.0.2",
"prettier-plugin-astro": "^0.11.1",
"typescript": "^5.1.6"
},
"lint-staged": {
"*.{astro,js,ts,json,yaml}": "prettier --plugin-search-dir=. --ignore-unknown --write",
"*.{astro,js,ts,json,yaml}": "prettier --ignore-unknown --write",
"*.{js,ts}": "eslint --cache --fix",
"*.{py}": "poetry run black"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/create-djazztro/src/packageTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const makeProjectJson = (data: PromptData) => {
version: "0.1.0",
scripts: {
django: `cd backend && ${djangoCommand}`,
astro: "cd frontend && astro",
astro: "astro --root=frontend",
"dev:frontend": "npm run astro dev",
"dev:backend": "npm run django runserver",
dev: 'concurrently npm:dev:frontend npm:dev:backend -n "Astro,Django"',
Expand All @@ -36,7 +36,7 @@ export const makeProjectJson = (data: PromptData) => {
const black = data.features.includes("Black");

if (prettier) {
contents.scripts["prettify"] = "prettier --plugin-search-dir=. --write ./frontend";
contents.scripts["prettify"] = "prettier --write ./frontend";
}

if (eslint) {
Expand Down
Loading

0 comments on commit 63ab733

Please sign in to comment.