Skip to content

Commit

Permalink
fix(packages): reordering package json
Browse files Browse the repository at this point in the history
  • Loading branch information
bassrock committed Jan 3, 2025
1 parent bebe361 commit c3d7783
Show file tree
Hide file tree
Showing 21 changed files with 25 additions and 24 deletions.
2 changes: 1 addition & 1 deletion infrastructure/otel-collector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "otel-collector-cdk",
"version": "1.0.0",
"private": true,
"type": "module",
"main": "dist/main.js",
"types": "src/main.ts",
"type":"module",
"scripts": {
"build": "rm -rf dist && tsc",
"compile": "tsc --pretty",
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/parser-graphql-wrapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"private": true,
"license": "MPL-2.0",
"type": "module",
"main": "dist/main.js",
"types": "src/main.ts",
"type": "module",
"scripts": {
"build": "rm -rf dist && tsc",
"compile": "tsc --pretty",
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/pocket-event-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"private": true,
"license": "MPL-2.0",
"type": "module",
"main": "dist/main.js",
"types": "dist/main.ts",
"type": "module",
"scripts": {
"build": "rm -rf dist && tsc",
"compile": "tsc --pretty",
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/push-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "push-server-cdk",
"version": "1.0.0",
"private": true,
"type": "module",
"main": "dist/main.js",
"types": "src/main.ts",
"type": "module",
"scripts": {
"build": "rm -rf dist && tsc",
"compile": "tsc --pretty",
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/sendgrid-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"private": true,
"license": "MPL-2.0",
"type": "module",
"main": "dist/main.js",
"types": "src/main.ts",
"type": "module",
"scripts": {
"build": "rm -rf dist && tsc",
"compile": "tsc --pretty",
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/shareable-lists-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"private": true,
"license": "MPL-2.0",
"type": "module",
"main": "dist/main.js",
"types": "dist/main.ts",
"type": "module",
"scripts": {
"build": "rm -rf dist && tsc",
"compile": "tsc --pretty",
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/shared-snowplow-consumer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"private": true,
"license": "MPL-2.0",
"type": "module",
"main": "dist/main.js",
"types": "dist/main.ts",
"type": "module",
"scripts": {
"build": "rm -rf dist && tsc",
"compile": "tsc --pretty",
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/shares-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"private": true,
"license": "MPL-2.0",
"type": "module",
"main": "dist/main.js",
"types": "dist/main.ts",
"type": "module",
"scripts": {
"build": "rm -rf dist && tsc",
"compile": "tsc --pretty",
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/transactional-emails/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"private": true,
"license": "MPL-2.0",
"type": "module",
"main": "dist/main.js",
"types": "dist/main.ts",
"type": "module",
"scripts": {
"build": "rm -rf dist && tsc",
"compile": "tsc --pretty",
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/user-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "user-api-cdk",
"version": "1.0.0",
"private": true,
"type": "module",
"main": "dist/src/main.js",
"types": "src/main.ts",
"type": "module",
"scripts": {
"build": "rm -rf dist && tsc",
"compile": "tsc --pretty",
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/v3-proxy-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"private": true,
"license": "MPL-2.0",
"type": "module",
"main": "dist/main.js",
"types": "dist/main.ts",
"type": "module",
"scripts": {
"build": "rm -rf dist && tsc",
"compile": "tsc --pretty",
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default tseslint.config(
'prisma/**/*',
'jest.config.ts',
'jest.setup.ts',
'**/__generated__/**/*',
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/event-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
"package.json"
],
"scripts": {
"prebuild": "pnpm ts-json-schema-generator --additional-properties --validation-keywords removeEmptyObject --path './src/events/types/index.ts' > ./src/events/generated/schema.json",
"build": "tsup src/index.ts --format cjs,esm --dts",
"dev": "pnpm run build --watch",
"format": "eslint --fix",
"lint": "eslint --fix-dry-run",
"prebuild": "pnpm ts-json-schema-generator --additional-properties --validation-keywords removeEmptyObject --path './src/events/types/index.ts' > ./src/events/generated/schema.json",
"presemantic-release": "pnpm run build",
"semantic-release": "semantic-release",
"test": "jest",
Expand Down
2 changes: 1 addition & 1 deletion servers/annotations-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"package.json"
],
"scripts": {
"prebuild": "graphql-codegen",
"build": "rm -rf dist && tsc && npm run build-schema",
"build-schema": "node dist/server/apollo/buildSchema.js",
"dev": "npm run build && npm run watch",
"format": "eslint --fix",
"lint": "eslint --fix-dry-run",
"prebuild": "graphql-codegen",
"start": "node dist/main.js",
"test": "jest \"\\.spec\\.ts\"",
"test-integrations": "jest \"\\.integration\\.ts\" --runInBand",
Expand Down
2 changes: 1 addition & 1 deletion servers/braze-content-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"version": "1.0.0",
"main": "dist/main.js",
"scripts": {
"prebuild": "graphql-codegen",
"build": "rm -rf dist && tsc",
"dev": "pnpm run build && pnpm run watch",
"format": "eslint --fix",
"lint": "eslint --fix-dry-run",
"prebuild": "graphql-codegen",
"start": "node dist/main.js",
"test": "jest \"\\.spec\\.ts\"",
"test-integrations": "jest \"\\.integration\\.ts\" --runInBand",
Expand Down
6 changes: 3 additions & 3 deletions servers/notes-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"prisma"
],
"scripts": {
"prebuild": "graphql-codegen && pnpm run prisma:generate",
"build": "rm -rf dist && tsc && pnpm run build-schema",
"build-schema": "node dist/apollo/schema/buildSchema.js",
"db:generate": "prisma generate",
Expand All @@ -24,13 +25,12 @@
"migrate:deploy": "prisma migrate deploy",
"migrate:dev": "dotenv -e .env.ci -- prisma migrate dev && pnpm run kysely:generate",
"migrate:reset": "dotenv -e .env.ci -- prisma migrate reset",
"prebuild": "graphql-codegen && pnpm run prisma:generate",
"pretest": "pnpm run prisma:generate",
"pretest-integrations": "dotenv -e .env.ci -- prisma migrate reset --skip-seed --force",
"prisma:generate": "dotenv -e .env.ci -- prisma generate && pnpm run kysely:generate",
"prisma:pull": "dotenv -e .env.ci -- prisma db pull",
"start": "pnpm run migrate:deploy && node dist/main.js",
"pretest": "pnpm run prisma:generate",
"test": "jest \"\\.spec\\.ts\"",
"pretest-integrations": "dotenv -e .env.ci -- prisma migrate reset --skip-seed --force",
"test-integrations": "jest \"\\.integration\\.ts\" --runInBand",
"test:watch": "pnpm test -- --watchAll",
"watch": "concurrently --names \"CodeGen,TS,Nodemon\" -c \"bgYellow,bgBlue,bgMagenta\" \"graphql-codegen --watch 'src/**/*.ts'\" \"tsc -w --preserveWatchOutput\" \"nodemon --config ../../nodemon.json ./dist/main.js\""
Expand Down
2 changes: 1 addition & 1 deletion servers/parser-graphql-wrapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"author": "",
"main": "dist/main.js",
"scripts": {
"prebuild": "graphql-codegen",
"build": "rm -rf dist && tsc",
"dev": "npm run build && npm run watch",
"format": "eslint --fix",
"generate:database:types:readitlab": "DATABASE_URL=mysql://root@localhost:3306/readitla_b kysely-codegen --include-pattern=\"readitla_b.items_resolver\" --out-file=src/__generated__/readitlab.d.ts",
"generate:database:types:shares": "DATABASE_URL=mysql://root@localhost:3306/readitla_shares kysely-codegen --include-pattern=\"readitla_shares.share_urls\" --out-file=src/__generated__/readitlaShares.d.ts",
"lint": "eslint --fix-dry-run",
"prebuild": "graphql-codegen",
"start": "node dist/main.js",
"test": "jest \"\\.spec\\.ts\" --runInBand",
"test-integrations": "jest \"\\.integration\\.ts\" --runInBand --force-exit",
Expand Down
6 changes: 3 additions & 3 deletions servers/shareable-lists-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"prisma"
],
"scripts": {
"prebuild": "dotenv -e .env.ci -- prisma generate",
"build": "rm -rf dist && tsc && npm run build-schema-admin && npm run build-schema-public",
"build-schema-admin": "node dist/admin/buildSchema.js",
"build-schema-public": "node dist/public/buildSchema.js",
Expand All @@ -23,11 +24,10 @@
"migrate:deploy": "prisma migrate deploy",
"migrate:dev": "npm run export-env && prisma migrate dev",
"migrate:reset": "prisma migrate reset",
"prebuild": "dotenv -e .env.ci -- prisma generate",
"pretest": "dotenv -e .env.ci -- prisma generate",
"pretest-integrations": "dotenv -e .env.ci -- prisma migrate reset --skip-seed --force",
"start": "npm run migrate:deploy && node dist/main.js",
"pretest": "dotenv -e .env.ci -- prisma generate",
"test": "jest \"\\.spec\\.ts\"",
"pretest-integrations": "dotenv -e .env.ci -- prisma migrate reset --skip-seed --force",
"test-integrations": "jest \"\\.integration\\.ts\" --runInBand",
"test:watch": "npm test -- --watchAll",
"watch": "tsc -w & nodemon"
Expand Down
2 changes: 1 addition & 1 deletion servers/shares-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"package.json"
],
"scripts": {
"prebuild": "graphql-codegen",
"build": "rm -rf dist && tsc && npm run build-schema",
"build-schema": "node dist/apollo/buildSchema.js",
"dev": "npm run build && npm run watch",
"format": "eslint --fix",
"lint": "eslint --fix-dry-run",
"prebuild": "graphql-codegen",
"start": "node dist/main.js",
"test": "jest \"\\.spec\\.ts\"",
"test-integrations": "jest \"\\.integration\\.ts\" --runInBand",
Expand Down
2 changes: 1 addition & 1 deletion servers/user-list-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"description": "",
"main": "dist/main.js",
"scripts": {
"prebuild": "graphql-codegen",
"build": "rm -rf dist && tsc && npm run build-schema",
"build-schema": "node dist/server/buildSchema.js",
"build:js": "npm run build",
"dev": "NODE_ENV=development npm run build && NODE_ENV=development npm run watch",
"format": "eslint --fix",
"lint": "eslint --fix-dry-run",
"prebuild": "graphql-codegen",
"snowplow:generate": "snowtype generate",
"start": "node dist/main.js",
"task:es-create-index": "node dist/tasks/createESIndex.js",
Expand Down
2 changes: 1 addition & 1 deletion servers/v3-proxy-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"description": "",
"main": "dist/main.js",
"scripts": {
"prebuild": "graphql-codegen",
"build": "rm -rf dist && tsc",
"dev": "npm run build && npm run watch",
"format": "eslint --fix",
"lint": "eslint --fix-dry-run",
"prebuild": "graphql-codegen",
"start": "node dist/main.js",
"test": "jest \"\\.spec\\.ts\" --runInBand",
"test-integrations": "jest \"\\.integration\\.ts\" --runInBand --force-exit",
Expand Down

0 comments on commit c3d7783

Please sign in to comment.