Skip to content

Commit 7a20852

Browse files
committed
$'syncing commit from monorepo. PR: 338, Title: check sync in pre commit'
1 parent 0f0db81 commit 7a20852

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

scripts/check-sync.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const fs = require('fs');
2+
const package = JSON.parse(fs.readFileSync('./package.json'));
3+
const project = JSON.parse(fs.readFileSync('./projects/angular-formio/package.json'));
4+
if (project.version !== package.version) {
5+
process.exit(1);
6+
}
7+
process.exit(0);

scripts/sync.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const fs = require('fs');
2+
const package = JSON.parse(fs.readFileSync('./package.json'));
3+
const project = JSON.parse(fs.readFileSync('./projects/angular-formio/package.json'));
4+
project.version = package.version;
5+
fs.writeFileSync('./projects/angular-formio/package.json', JSON.stringify(project, null, 2));

turbo.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"extends": [
3+
"//"
4+
],
5+
"tasks": {
6+
"build": {
7+
"dependsOn": [
8+
"^build"
9+
],
10+
"inputs": [
11+
"projects/**",
12+
"angular.json",
13+
"package.json",
14+
"turbo.json"
15+
],
16+
"outputs": [
17+
".angular/cache/**",
18+
"dist/**"
19+
]
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)