🐛 Corrige un bug avec notre utilisation de fs.watch

pull/1017/head
Maxime Quandalle 2020-05-04 17:07:21 +02:00
parent b6dbc339eb
commit 380bdd905f
3 changed files with 3 additions and 2 deletions

View File

@ -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'

View File

@ -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()