Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
test publish:prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
Vahor committed Aug 27, 2023
1 parent 024419d commit 0e0eb23
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"test": "NODE_ENV=test dotenv -- turbo run test",
"dev": "dotenv -- turbo run dev",
"lint": "SKIP_ENV_VALIDATION=true && turbo run lint",
"release": "turbo run publish",
"publish": "changeset publish",
"publish:prepare": "turbo run publish:prepare",
"publish": "pnpm run publish:prepare && changeset publish",
"typecheck": "turbo run typecheck"
},
"keywords": [
Expand Down
4 changes: 4 additions & 0 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"author": "Nathan David <me@vahor.fr>",
"license": "MIT",
"private": false,
"scripts": {
"format": "prettier --write . --cache",
"format:check": "prettier --check . --cache"
},
"devDependencies": {
"@types/eslint": "^8.44.2",
"@typescript-eslint/eslint-plugin": "6.4.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/prettier-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
/** @type { PrettierConfig | SortImportsConfig | TailwindConfig } */
const config = {
plugins: [
require.resolve('@ianvs/prettier-plugin-sort-imports'),
require.resolve("prettier-plugin-tailwindcss")
require.resolve("@ianvs/prettier-plugin-sort-imports"),
require.resolve("prettier-plugin-tailwindcss"),
],
semi: true,
trailingComma: "all",
singleQuote: true,
printWidth: 100,
tailwindConfig: './tailwind.config.cjs',
arrowParens: 'avoid',
tailwindConfig: "./tailwind.config.cjs",
arrowParens: "avoid",
tabWidth: 2,
};

Expand Down
4 changes: 4 additions & 0 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"author": "Nathan David <me@vahor.fr>",
"license": "MIT",
"private": true,
"scripts": {
"format": "prettier --write . --cache",
"format:check": "prettier --check . --cache"
},
"devDependencies": {
"prettier-plugin-tailwindcss": "^0.5.3",
"@types/prettier": "^2.7.3",
Expand Down
16 changes: 9 additions & 7 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
"**/.env.*local"
],
"pipeline": {
"publish": {
"dependsOn": [
"build",
"lint",
"typecheck"
]
},
"build": {
"dependsOn": [
"^build"
Expand Down Expand Up @@ -41,6 +34,15 @@
},
"typecheck": {
"cache": false
},
"publish:prepare": {
"dependsOn": [
"build",
"lint",
"format:check",
"typecheck"
],
"cache": false
}
}
}

0 comments on commit 0e0eb23

Please sign in to comment.