🐛 Corrige un bug avec notre utilisation de fs.watch
parent
b6dbc339eb
commit
380bdd905f
|
@ -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'
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue