-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add syncpack for linting dependency versions and package.jsons
This way, all the versions of dependencies are the same for all packages. Also, `package.json` files now follow the same format. In the future, once all dependency versions are fixed, we can even add the linting step to the pipeline. Related to #83
- Loading branch information
1 parent
9232b36
commit ef6567a
Showing
13 changed files
with
496 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"$schema": "./node_modules/syncpack/dist/schema.json", | ||
"versionGroups": [ | ||
{ | ||
"label": "Use workspace protocol for local packages", | ||
"dependencies": ["$LOCAL"], | ||
"dependencyTypes": ["dev", "prod"], | ||
"pinVersion": "workspace:*" | ||
} | ||
], | ||
"sortFirst": [ | ||
"name", | ||
"description", | ||
"version", | ||
"private", | ||
"license", | ||
"author", | ||
"repository", | ||
"homepage", | ||
"bugs", | ||
"engines", | ||
"type", | ||
"main", | ||
"types", | ||
"exports", | ||
"scripts", | ||
"dependencies", | ||
"peerDependencies", | ||
"devDependencies" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,28 @@ | ||
{ | ||
"name": "@serieslist/api", | ||
"version": "1.0.0", | ||
"private": true, | ||
"description": "A side project. Keep track of your seen series' episodes.", | ||
"author": "Joosep Alviste <[email protected]> (https://joosep.xyz/)", | ||
"type": "module", | ||
"module": "src/main.ts", | ||
"scripts": { | ||
"build": "NODE_ENV=production rimraf dist && tsx bin/build.ts && resolve-tspaths", | ||
"clear-test-db": "dotenv -e ../../.env.test tsx bin/clearDatabase.ts", | ||
"codegen": "DOTENV_CONFIG_PATH='../../.env' graphql-codegen-esm -r dotenv/config", | ||
"codegen:db": "tsx bin/kyselyCodegen.ts && eslint --fix src/generated/db.ts", | ||
"codegen:watch": "pnpm codegen -- --watch", | ||
"lint": "eslint src && madge --circular --extensions ts ./src", | ||
"lint:fix": "eslint --fix src", | ||
"migrate": "tsx src/bin/migrate.ts && pnpm codegen:db", | ||
"migrate:prod": "dotenv -e ../../.env node dist/bin/migrate.js", | ||
"migrate:test": "dotenv -e ../../.env.test tsx src/bin/migrate.ts", | ||
"migration": "./bin/createMigration.sh", | ||
"start": "NODE_ENV=development tsx watch --clear-screen=false src/main.ts", | ||
"start:prod": "NODE_ENV=production node dist/main.js", | ||
"start:e2e": "dotenv -e ../../.env.e2e -v NODE_ENV=test pnpm build && pnpm start:prod", | ||
"start:tmdb": "tsx watch src/test/mockTMDBServer.ts", | ||
"start:jobs": "NODE_ENV=development tsx watch --clear-screen=false src/mainJobs.ts", | ||
"start:jobs:prod": "NODE_ENV=production node dist/mainJobs.js", | ||
"tsc": "tsc --noEmit", | ||
"lint": "eslint src && madge --circular --extensions ts ./src", | ||
"lint:fix": "eslint --fix src", | ||
"start:prod": "NODE_ENV=production node dist/main.js", | ||
"start:tmdb": "tsx watch src/test/mockTMDBServer.ts", | ||
"test": "dotenv -e ../../.env.test vitest", | ||
"test:coverage": "dotenv -e ../../.env.test vitest run -- --coverage", | ||
"codegen": "DOTENV_CONFIG_PATH='../../.env' graphql-codegen-esm -r dotenv/config", | ||
"codegen:watch": "pnpm codegen -- --watch", | ||
"codegen:db": "tsx bin/kyselyCodegen.ts && eslint --fix src/generated/db.ts", | ||
"migration": "./bin/createMigration.sh", | ||
"migrate": "tsx src/bin/migrate.ts && pnpm codegen:db", | ||
"migrate:test": "dotenv -e ../../.env.test tsx src/bin/migrate.ts", | ||
"migrate:prod": "dotenv -e ../../.env node dist/bin/migrate.js", | ||
"clear-test-db": "dotenv -e ../../.env.test tsx bin/clearDatabase.ts" | ||
"tsc": "tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
"@bull-board/api": "^5.6.0", | ||
|
@@ -45,14 +41,15 @@ | |
"@sentry/node": "^7.56.0", | ||
"@sentry/tracing": "^7.56.0", | ||
"@serieslist/logger": "workspace:*", | ||
"@serieslist/tmdb": "workspace:*", | ||
"bcryptjs": "^2.4.3", | ||
"bullmq": "^4.1.0", | ||
"dataloader": "^2.2.2", | ||
"date-fns": "^2.30.0", | ||
"dotenv": "^16.0.3", | ||
"dotenv-cli": "^7.1.0", | ||
"dotenv-expand": "^10.0.0", | ||
"fastify": "^4.17.0", | ||
"fastify": "^4.18.0", | ||
"fishery": "^2.2.2", | ||
"graphql": "^16.8.1", | ||
"graphql-scalars": "^1.22.0", | ||
|
@@ -83,24 +80,13 @@ | |
"@types/node": "^18.15.3", | ||
"@types/pg": "^8.6.6", | ||
"@vitest/coverage-c8": "^0.29.3", | ||
"eslint": "^8.36.0", | ||
"kysely-codegen": "^0.10.0", | ||
"madge": "^6.0.0", | ||
"nock": "^13.3.1", | ||
"prettier": "^2.8.4", | ||
"resolve-tspaths": "^0.8.8", | ||
"resolve-tspaths": "^0.8.13", | ||
"rimraf": "^4.4.0", | ||
"tsx": "^3.14.0", | ||
"typescript": "^4.9.5", | ||
"vitest": "^0.29.3" | ||
}, | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/JoosepAlviste/serieslist.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/JoosepAlviste/serieslist/issues" | ||
}, | ||
"homepage": "https://github.com/JoosepAlviste/serieslist#readme" | ||
"vitest": "^0.34.6" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
{ | ||
"name": "serieslist", | ||
"author": "Joosep Alviste", | ||
"license": "MIT", | ||
"private": true, | ||
"version": "1.0.0", | ||
"description": "Always know which episode to watch next. Keep track of your series and seen episodes.", | ||
"version": "1.0.0", | ||
"private": true, | ||
"license": "MIT", | ||
"author": "Joosep Alviste <[email protected]> (https://joosep.xyz/)", | ||
"repository": "JoosepAlviste/serieslist.git", | ||
"homepage": "https://github.com/JoosepAlviste/serieslist#readme", | ||
"bugs": "https://github.com/JoosepAlviste/serieslist/issues", | ||
"engines": { | ||
"node": ">=16", | ||
"pnpm": ">=8" | ||
}, | ||
"scripts": { | ||
"postinstall": "cp -n .env.example .env || exit 0", | ||
"start": "nx run-many -t start,start:jobs", | ||
"lint": "nx affected -t lint", | ||
"tsc": "nx affected -t tsc", | ||
"test:coverage": "dotenv -e .env.test -- nx affected -t test:coverage --verbose", | ||
"build": "nx affected -t build", | ||
"generate:package": "nx generate @serieslist/nx-plugin:package", | ||
"lint": "nx affected -t lint", | ||
"migrate": "pnpm -F api migrate", | ||
"migrate:test": "dotenv -e .env.test -- pnpm -F api migrate:test", | ||
"postinstall": "cp -n .env.example .env || exit 0", | ||
"start": "nx run-many -t start,start:jobs", | ||
"test:coverage": "dotenv -e .env.test -- nx affected -t test:coverage --verbose", | ||
"test:e2e": "dotenv -e .env.e2e -- nx test:e2e @serieslist/e2e", | ||
"generate:package": "nx generate @serieslist/nx-plugin:package" | ||
"tsc": "nx affected -t tsc" | ||
}, | ||
"devDependencies": { | ||
"@nx/devkit": "17.2.8", | ||
"@nx/plugin": "^17.2.8", | ||
"dotenv-cli": "^7.1.0", | ||
"nx": "17.2.8" | ||
"nx": "17.2.8", | ||
"syncpack": "^12.3.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/nx-plugin/src/generators/package/files/src/index.ts.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const variable = "<%= name %>"; | ||
export const variable = '<%= name %>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.