diff --git a/source/rules/index.ts b/source/rules/index.ts index f1e19918c..93bcc1e35 100644 --- a/source/rules/index.ts +++ b/source/rules/index.ts @@ -17,7 +17,7 @@ import CCOptique from './conventions-collectives/optique.yaml' import CCSpectacleVivant from './conventions-collectives/spectacle-vivant.yaml' import CCSport from './conventions-collectives/sport.yaml' import dirigeant from './dirigeant.yaml' -import jsonRules from './dottednames.json' +import jsonRules from '../types/dottednames.json' import déclarationIndépendant from './déclaration-revenu-indépendant.yaml' import entrepriseEtablissement from './entreprise-établissement.yaml' import impot from './impôt.yaml' diff --git a/source/scripts/dottednames.js b/source/scripts/dottednames.js index 7938f9561..9f936a08e 100644 --- a/source/scripts/dottednames.js +++ b/source/scripts/dottednames.js @@ -11,7 +11,8 @@ const path = require('path') const { readRules } = require('./rules') const sourceDirPath = path.resolve(__dirname, '../rules') -const outPath = path.resolve(__dirname, '../rules/dottednames.json') +// Note: we can't put the output file in the fs.watched directory +const outPath = path.resolve(__dirname, '../types/dottednames.json') function persistJsonFileFromYaml() { const rules = readRules() diff --git a/source/rules/.gitignore b/source/types/.gitignore similarity index 100% rename from source/rules/.gitignore rename to source/types/.gitignore