Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ supportedArchitectures:
- darwin

npmMinimalAgeGate: '7d'

# @types/apollo-upload-client declares @apollo/client as a regular dependency,
# causing Yarn to nest a duplicate copy even when versions match. TypeScript
# then sees two distinct type identities and fails on assignment. Adding it as
# a peerDependency forces Yarn to use the hoisted copy instead.
packageExtensions:
'@types/apollo-upload-client@*':
peerDependencies:
'@apollo/client': '*'

npmPreapprovedPackages:
- '@axinom/*'

Expand Down
2 changes: 1 addition & 1 deletion libs/media-messages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"rimraf": "^6.1.3",
"ts-node": "^10.9.1",
"tsc-watch": "^4.6.2",
"typescript": "^4.9.4"
"typescript": "^5.8.0"
}
}
19 changes: 9 additions & 10 deletions libs/media-messages/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,23 @@
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"esModuleInterop": true, // Needed to be able to import 'postgraphile-plugin-connection-filter'
"allowSyntheticDefaultImports": true, // Needed to be able to import 'ajv' together with esModuleInterop
"outDir": "./dist",
"resolveJsonModule": true,
"target": "es2017",
"target": "es2022",
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"skipLibCheck": true,
"baseUrl": "./",
"preserveWatchOutput": true
},
"exclude": ["node_modules", "dist", "scripts", "*/tests", "**/*spec.ts"],
"watchOptions": {
"watchFile": "dynamicPriorityPolling",
"watchDirectory": "dynamicPriorityPolling",
}
"exclude": [
"node_modules",
"dist",
"scripts",
"*/tests",
"**/*spec.ts"
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"semver": "^7.5.4",
"ts-node": "^10.9.1",
"tslib": "2.5.0",
"typescript": "^4.9.4",
"typescript": "^5.8.0",
"url-join": "^4.0.1",
"wsrun": "^5.2.4",
"yargs": "^16.2.0"
Expand Down
2 changes: 1 addition & 1 deletion services/catalog/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"tsc-watch": "^4.6.2",
"typescript": "^4.9.4",
"typescript": "^5.8.0",
"uuid": "^8.3.2"
}
}
3 changes: 2 additions & 1 deletion services/catalog/service/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false
"noEmit": false,
"removeComments": true
},
"exclude": [
"node_modules",
Expand Down
21 changes: 6 additions & 15 deletions services/catalog/service/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,20 @@
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"esModuleInterop": true, // Needed to be able to import 'postgraphile-plugin-connection-filter'
"allowSyntheticDefaultImports": true, // Needed to be able to import 'ajv' together with esModuleInterop
"outDir": "./dist",
"resolveJsonModule": true,
"noEmit": true,
"target": "es2017",
"target": "es2022",
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"skipLibCheck": true,
"baseUrl": "./",
"preserveWatchOutput": true
},
"exclude": ["node_modules", "dist"],
// Typescript 4.9 has changed the way file watch works by default. See here
// for more info: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-9.html#file-watching-now-uses-file-system-events
// This has broken the file watch for Windows 10/11 + VSCode. There are no
// consistent reproduction steps for the issue, but it causes services to
// restart during watch when no actual file changes were made, sometimes
// restarts happen multiple times in a row. This reverts the watch mode to
// pre-4.9 state.
"watchOptions": { "watchFile": "fixedPollingInterval" }
"exclude": [
"node_modules",
"dist"
]
}
2 changes: 1 addition & 1 deletion services/channel/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"tsc-watch": "^4.6.2",
"typescript": "^4.9.4"
"typescript": "^5.8.0"
}
}
3 changes: 2 additions & 1 deletion services/channel/service/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false
"noEmit": false,
"removeComments": true
},
"exclude": [
"node_modules",
Expand Down
20 changes: 5 additions & 15 deletions services/channel/service/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,18 @@
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"esModuleInterop": true, // Needed to be able to import 'postgraphile-plugin-connection-filter'
"allowSyntheticDefaultImports": true, // Needed to be able to import 'ajv' together with esModuleInterop
"outDir": "./dist",
"resolveJsonModule": true,
"noEmit": true,
"target": "es2017",
"target": "es2022",
"module": "commonjs",
"declaration": true,
"removeComments": true,
"skipLibCheck": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"baseUrl": "./",
"preserveWatchOutput": true
},
"exclude": ["node_modules", "dist"],
// Typescript 4.9 has changed the way file watch works by default. See here
// for more info: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-9.html#file-watching-now-uses-file-system-events
// This has broken the file watch for Windows 10/11 + VSCode. There are no
// consistent reproduction steps for the issue, but it causes services to
// restart during watch when no actual file changes were made, sometimes
// restarts happen multiple times in a row. This reverts the watch mode to
// pre-4.9 state.
"watchOptions": { "watchFile": "fixedPollingInterval" }
"exclude": [
"node_modules",
"dist"
]
}
4 changes: 2 additions & 2 deletions services/channel/workflows/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"autoprefixer": "^10.3.1",
"dotenv-webpack": "^7.1.1",
"env-cmd": "^10.1.0",
"fork-ts-checker-webpack-plugin": "^6.5.2",
"fork-ts-checker-webpack-plugin": "^9.0.0",
"piral-cli": "^1.5.2",
"piral-cli-webpack5": "^1.5.2",
"postcss": "^8.4.19",
Expand All @@ -73,7 +73,7 @@
"rimraf": "^6.1.3",
"sass": "^1.69.5",
"tslib": "^1.14.1",
"typescript": "^4.9.4",
"typescript": "^5.8.0",
"typescript-plugin-css-modules": "^5.0.2"
},
"peerDependencies": {
Expand Down
20 changes: 12 additions & 8 deletions services/channel/workflows/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,26 @@
"declaration": true,
"noImplicitAny": false,
"removeComments": false,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"sourceMap": true,
"outDir": "./dist",
"skipLibCheck": true,
"lib": ["dom", "es2018"],
"moduleResolution": "node",
"lib": [
"dom",
"es2018"
],
"moduleResolution": "bundler",
"module": "esnext",
"jsx": "react",
"importHelpers": true,
"strict": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"resolveJsonModule": true
},
"include": ["./src"],
"exclude": ["node_modules"]
"include": [
"./src"
],
"exclude": [
"node_modules"
]
}
2 changes: 1 addition & 1 deletion services/entitlement/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"postgraphile-plugin-atomic-mutations": "^1.0.4",
"postgraphile-plugin-connection-filter": "^2.3.0",
"tar-stream": "^3.1.7",
"typescript": "^4.9.4",
"typescript": "^5.8.0",
"url-join": "^4.0.1",
"uuid": "^8.3.2",
"yup": "^0.32.11",
Expand Down
3 changes: 2 additions & 1 deletion services/entitlement/service/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false
"noEmit": false,
"removeComments": true
},
"exclude": [
"node_modules",
Expand Down
21 changes: 6 additions & 15 deletions services/entitlement/service/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,20 @@
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"esModuleInterop": true, // Needed to be able to import 'postgraphile-plugin-connection-filter'
"allowSyntheticDefaultImports": true, // Needed to be able to import 'ajv' together with esModuleInterop
"outDir": "./dist",
"resolveJsonModule": true,
"noEmit": true,
"target": "es2017",
"target": "es2022",
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"skipLibCheck": true,
"baseUrl": "./",
"preserveWatchOutput": true
},
"exclude": ["node_modules", "dist"],
// Typescript 4.9 has changed the way file watch works by default. See here
// for more info: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-9.html#file-watching-now-uses-file-system-events
// This has broken the file watch for Windows 10/11 + VSCode. There are no
// consistent reproduction steps for the issue, but it causes services to
// restart during watch when no actual file changes were made, sometimes
// restarts happen multiple times in a row. This reverts the watch mode to
// pre-4.9 state.
"watchOptions": { "watchFile": "fixedPollingInterval" }
"exclude": [
"node_modules",
"dist"
]
}
2 changes: 1 addition & 1 deletion services/media/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"postgraphile-plugin-atomic-mutations": "^1.0.4",
"postgraphile-plugin-connection-filter": "^2.3.0",
"rascal": "^14.4.5",
"typescript": "^4.9.4",
"typescript": "^5.8.0",
"url-join": "^4.0.1",
"uuid": "^8.3.2",
"yup": "^0.32.11",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import * as ingestSchema from '../schemas/ingest-validation-schema.json';
import { customIngestValidation } from '../utils';

function streamToString(stream: Stream): Promise<string> {
const chunks: Buffer[] = [];
const chunks: Uint8Array[] = [];
return new Promise((resolve, reject) => {
stream.on('data', (chunk) => chunks.push(chunk));
stream.on('error', reject);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
PublishEntityCommand,
UnpublishEntityCommand,
} from 'media-messages';
import { gql as gqlExtended, makeExtendSchemaPlugin } from 'postgraphile';
import { gql as gqlExtended, makeExtendSchemaPlugin } from 'graphile-utils';
import { CommonErrors, getLongLivedToken } from '../../common';
import { getValidatedExtendedContext } from '../../graphql';
import { getSnapshotPgField } from '../utils';
Expand Down
3 changes: 2 additions & 1 deletion services/media/service/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false
"noEmit": false,
"removeComments": true
},
"exclude": [
"node_modules",
Expand Down
20 changes: 5 additions & 15 deletions services/media/service/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,18 @@
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"esModuleInterop": true, // Needed to be able to import 'postgraphile-plugin-connection-filter'
"allowSyntheticDefaultImports": true, // Needed to be able to import 'ajv' together with esModuleInterop
"outDir": "./dist",
"resolveJsonModule": true,
"noEmit": true,
"target": "es2017",
"target": "es2022",
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"skipLibCheck": true,
"baseUrl": "./",
"preserveWatchOutput": true
},
"exclude": ["node_modules", "dist"],
// Typescript 4.9 has changed the way file watch works by default. See here
// for more info: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-9.html#file-watching-now-uses-file-system-events
// This has broken the file watch for Windows 10/11 + VSCode. There are no
// consistent reproduction steps for the issue, but it causes services to
// restart during watch when no actual file changes were made, sometimes
// restarts happen multiple times in a row. This reverts the watch mode to
// pre-4.9 state.
"watchOptions": { "watchFile": "fixedPollingInterval" }
"exclude": [
"node_modules",
"dist"
]
}
5 changes: 3 additions & 2 deletions services/media/workflows/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"@graphql-codegen/typescript": "^2.7.3",
"@graphql-codegen/typescript-operations": "^2.5.3",
"@graphql-codegen/typescript-react-apollo": "^3.3.7",
"@types/apollo-upload-client": "^14.1.0",
"@types/node": "^18.11.19",
"@types/react": "^17.0.50",
"@types/react-dom": "^17.0.17",
Expand All @@ -61,7 +62,7 @@
"cross-env": "^7.0.3",
"dotenv-webpack": "^7.1.1",
"env-cmd": "^10.1.0",
"fork-ts-checker-webpack-plugin": "^6.5.2",
"fork-ts-checker-webpack-plugin": "^9.0.0",
"piral-cli": "^1.5.2",
"piral-cli-webpack5": "^1.5.2",
"postcss-modules": "^4.1.3",
Expand All @@ -72,7 +73,7 @@
"rimraf": "^6.1.3",
"sass": "^1.69.5",
"tslib": "^1.14.1",
"typescript": "^4.9.4",
"typescript": "^5.8.0",
"typescript-plugin-css-modules": "^5.0.2"
},
"peerDependencies": {
Expand Down
Loading
Loading