diff --git a/scripts/check-sync.js b/scripts/check-sync.js new file mode 100644 index 00000000..8d505afe --- /dev/null +++ b/scripts/check-sync.js @@ -0,0 +1,7 @@ +const fs = require('fs'); +const package = JSON.parse(fs.readFileSync('./package.json')); +const project = JSON.parse(fs.readFileSync('./projects/angular-formio/package.json')); +if (project.version !== package.version) { + process.exit(1); +} +process.exit(0); diff --git a/scripts/sync.js b/scripts/sync.js new file mode 100644 index 00000000..308ace0e --- /dev/null +++ b/scripts/sync.js @@ -0,0 +1,5 @@ +const fs = require('fs'); +const package = JSON.parse(fs.readFileSync('./package.json')); +const project = JSON.parse(fs.readFileSync('./projects/angular-formio/package.json')); +project.version = package.version; +fs.writeFileSync('./projects/angular-formio/package.json', JSON.stringify(project, null, 2)); diff --git a/turbo.json b/turbo.json new file mode 100644 index 00000000..625e396f --- /dev/null +++ b/turbo.json @@ -0,0 +1,22 @@ +{ + "extends": [ + "//" + ], + "tasks": { + "build": { + "dependsOn": [ + "^build" + ], + "inputs": [ + "projects/**", + "angular.json", + "package.json", + "turbo.json" + ], + "outputs": [ + ".angular/cache/**", + "dist/**" + ] + } + } +}