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

chore(esm): permet d'importer sans extension #1370

Merged
merged 3 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion packages/api/src/api/rest/titre-demande.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ITitreEtape } from '../../types.js'
import { titreCreate, titreGet, titresGet } from '../../database/queries/titres.js'
import { titreCreate, titreGet, titresGet } from '../../database/queries/titres'
import { titreDemarcheCreate } from '../../database/queries/titres-demarches.js'
import { titreEtapeUpsert } from '../../database/queries/titres-etapes.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/api/rest/titre-heritage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DemarcheEtape } from 'camino-common/src/demarche.js'
import { ETAPE_IS_NOT_BROUILLON } from 'camino-common/src/etape'
import { isFondamentalesStatutOk } from 'camino-common/src/static/etapesStatuts.js'
import { isFondamentalesStatutOk } from 'camino-common/src/static/etapesStatuts'
import { isEtapeTypeIdFondamentale } from 'camino-common/src/static/etapesTypes.js'
import { TitrePropTitreEtapeFindDemarche } from 'camino-common/src/titres.js'

Expand Down
10 changes: 6 additions & 4 deletions packages/api/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"ts-node": {
"swc": true
"swc": true,
"experimentalSpecifierResolution": "node"
},
"compilerOptions": {
"allowJs": false,
Expand All @@ -9,8 +10,8 @@
"esModuleInterop": true,
"inlineSources": false,
"lib": ["es2020", "dom", "ESNext.Array"],
"module": "ES2020",
"moduleResolution": "Bundler",
"module": "ESNext",
"moduleResolution": "Node",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
Expand All @@ -25,7 +26,8 @@
"noEmit": true,
"paths": {
"graphql-fields": ["./src/@types/graphql-fields"],
"html-to-text": ["./src/@types/html-to-text"]
"html-to-text": ["./src/@types/html-to-text"],
"rollup/parseAst": ["../../node_modules/rollup/dist/parseAst"]
vmaubert marked this conversation as resolved.
Show resolved Hide resolved
},
}
}
2 changes: 1 addition & 1 deletion packages/common/src/date.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { z } from 'zod'
import { isNullOrUndefined, isNullOrUndefinedOrEmpty } from './typescript-tools.js'
import { isNullOrUndefined, isNullOrUndefinedOrEmpty } from './typescript-tools'

const datesDiffInDays = (a: Date, b: Date) => {
const utc1 = Date.UTC(a.getFullYear(), a.getMonth(), a.getDate())
Expand Down
Loading