Merge pull request #18167 from overleaf/em-simpler-typescript-backend

Simpler Typescript setup in the backend

GitOrigin-RevId: 3a90f26a5ac8029d14203faa98008375ce933e7d
This commit is contained in:
Eric Mc Sween
2024-05-07 08:04:00 +00:00
committed by Copybot
parent 5da8662fa8
commit e87df4a791
43 changed files with 63 additions and 155 deletions
+1 -4
View File
@@ -48,10 +48,7 @@ lint:
lint_fix:
$(RUN_LINTING) lint:fix
build_types:
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
typecheck: build_types
typecheck:
$(RUN_LINTING) types:check
test: format lint typecheck test_unit test_acceptance
+1 -4
View File
@@ -48,10 +48,7 @@ lint:
lint_fix:
$(RUN_LINTING) lint:fix
build_types:
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
typecheck: build_types
typecheck:
$(RUN_LINTING) types:check
test: format lint typecheck test_unit test_acceptance
+1 -4
View File
@@ -48,10 +48,7 @@ lint:
lint_fix:
$(RUN_LINTING) lint:fix
build_types:
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
typecheck: build_types
typecheck:
$(RUN_LINTING) types:check
test: format lint typecheck test_unit test_acceptance
+1 -4
View File
@@ -48,10 +48,7 @@ lint:
lint_fix:
$(RUN_LINTING) lint:fix
build_types:
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
typecheck: build_types
typecheck:
$(RUN_LINTING) types:check
test: format lint typecheck test_unit test_acceptance
+1 -4
View File
@@ -48,10 +48,7 @@ lint:
lint_fix:
$(RUN_LINTING) lint:fix
build_types:
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
typecheck: build_types
typecheck:
$(RUN_LINTING) types:check
test: format lint typecheck test_unit test_acceptance
+1 -1
View File
@@ -1,4 +1,4 @@
import { TrackingPropsRawData } from 'overleaf-editor-core/types/lib/types'
import { TrackingPropsRawData } from 'overleaf-editor-core/lib/types'
/**
* An update coming from the editor
+1 -4
View File
@@ -48,10 +48,7 @@ lint:
lint_fix:
$(RUN_LINTING) lint:fix
build_types:
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
typecheck: build_types
typecheck:
$(RUN_LINTING) types:check
test: format lint typecheck test_unit test_acceptance
+1 -4
View File
@@ -48,10 +48,7 @@ lint:
lint_fix:
$(RUN_LINTING) lint:fix
build_types:
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
typecheck: build_types
typecheck:
$(RUN_LINTING) types:check
test: format lint typecheck test_unit test_acceptance
@@ -1,7 +1,7 @@
// @ts-check
'use strict'
/** @typedef {import('overleaf-editor-core/types').Snapshot} Snapshot */
/** @typedef {import('overleaf-editor-core').Snapshot} Snapshot */
const Archive = require('archiver')
const BPromise = require('bluebird')
+1 -4
View File
@@ -48,10 +48,7 @@ lint:
lint_fix:
$(RUN_LINTING) lint:fix
build_types:
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
typecheck: build_types
typecheck:
$(RUN_LINTING) types:check
test: format lint typecheck test_unit test_acceptance
+1 -4
View File
@@ -48,10 +48,7 @@ lint:
lint_fix:
$(RUN_LINTING) lint:fix
build_types:
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
typecheck: build_types
typecheck:
$(RUN_LINTING) types:check
test: format lint typecheck test_unit test_acceptance
+1 -4
View File
@@ -48,10 +48,7 @@ lint:
lint_fix:
$(RUN_LINTING) lint:fix
build_types:
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
typecheck: build_types
typecheck:
$(RUN_LINTING) types:check
test: format lint typecheck test_unit test_acceptance
+1 -4
View File
@@ -48,10 +48,7 @@ lint:
lint_fix:
$(RUN_LINTING) lint:fix
build_types:
$(RUN_LINTING_MONOREPO) --workspaces --if-present types:build
typecheck: build_types
typecheck:
$(RUN_LINTING) types:check
test: format lint typecheck test_unit test_acceptance
+1 -3
View File
@@ -35,9 +35,7 @@ FROM deps-prod as deps
ENV CYPRESS_INSTALL_BINARY=0
COPY tsconfig.backend.json /overleaf/
RUN cd /overleaf \
&& npm install \
&& npm run --workspaces --if-present types:build
RUN cd /overleaf && npm install
# the web image with only production dependencies but no webpack production build, for development
FROM deps-prod as app-only
+3 -1
View File
@@ -12,7 +12,9 @@
"skipLibCheck": true /* Skip type checking of declaration files. */,
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
"paths": {
"@/*": ["./frontend/js/*"]
"@/*": ["./frontend/js/*"],
"@overleaf/o-error": ["../../libraries/o-error"],
"@overleaf/ranges-tracker": ["../../libraries/ranges-tracker"]
},
"types": ["cypress", "@testing-library/cypress"]
},