Skip to content

Commit

Permalink
fix: migrate to file references strategy for tracking versions of p…
Browse files Browse the repository at this point in the history
…ackages

Closes #235
  • Loading branch information
tinesoft committed Aug 9, 2024
1 parent 1cfe99f commit 31bc93b
Show file tree
Hide file tree
Showing 27 changed files with 19 additions and 84 deletions.
9 changes: 7 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"version": {
"preVersionCommand": "pnpm dlx nx run-many -t build",
"generatorOptions": {
"packageRoot": "dist/packages/{projectName}",
"currentVersionResolver": "git-tag",
"specifierSource": "conventional-commits",
"updateDependents": "auto"
"specifierSource": "conventional-commits"
}
}
},
Expand All @@ -40,6 +40,11 @@
},
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"nx-release-publish": {
"options": {
"packageRoot": "dist/packages/{projectName}"
}
},
"@nx/js:tsc": {
"cache": true,
"dependsOn": ["^build"],
Expand Down
5 changes: 0 additions & 5 deletions packages/common-cli/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
"assets": ["packages/common-cli/*.md"]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/common-jvm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"nx-ktor"
],
"dependencies": {
"@nxrocks/common": "workspace:*",
"@nxrocks/common": "file:../common",
"@nx/workspace": ">=18.0.0",
"@nx/devkit": ">=18.0.0",
"tslib": "^2.6.1",
Expand Down
5 changes: 0 additions & 5 deletions packages/common-jvm/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
"assets": ["packages/common-jvm/*.md"]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
Expand Down
5 changes: 0 additions & 5 deletions packages/common/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
"assets": ["packages/common/*.md"]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-nx-flutter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"access": "public"
},
"dependencies": {
"@nxrocks/common-cli": "workspace:*",
"@nxrocks/common-cli": "file:../common-cli",
"tslib": "^2.6.1"
},
"type": "commonjs",
Expand Down
5 changes: 0 additions & 5 deletions packages/create-nx-flutter/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
"assets": ["packages/create-nx-flutter/*.md"]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-nx-ktor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"access": "public"
},
"dependencies": {
"@nxrocks/common-cli": "workspace:*",
"@nxrocks/common-cli": "file:../common-cli",
"tslib": "^2.6.1"
},
"type": "commonjs",
Expand Down
5 changes: 0 additions & 5 deletions packages/create-nx-ktor/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
"assets": ["packages/create-nx-ktor/*.md"]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-nx-micronaut/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"access": "public"
},
"dependencies": {
"@nxrocks/common-cli": "workspace:*",
"@nxrocks/common-cli": "file:../common-cli",
"tslib": "^2.6.1"
},
"type": "commonjs",
Expand Down
5 changes: 0 additions & 5 deletions packages/create-nx-micronaut/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
"assets": ["packages/create-nx-micronaut/*.md"]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-nx-quarkus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"access": "public"
},
"dependencies": {
"@nxrocks/common-cli": "workspace:*",
"@nxrocks/common-cli": "file:../common-cli",
"tslib": "^2.6.1"
},
"type": "commonjs",
Expand Down
5 changes: 0 additions & 5 deletions packages/create-nx-quarkus/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
"assets": ["packages/create-nx-quarkus/*.md"]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-nx-spring-boot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"access": "public"
},
"dependencies": {
"@nxrocks/common-cli": "workspace:*",
"@nxrocks/common-cli": "file:../common-cli",
"tslib": "^2.6.1"
},
"type": "commonjs",
Expand Down
5 changes: 0 additions & 5 deletions packages/create-nx-spring-boot/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
"assets": ["packages/create-nx-spring-boot/*.md"]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-flutter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"js-yaml": "^4.1.0",
"tslib": "^2.6.1",
"@nx/workspace": ">=18.0.0",
"@nxrocks/common": "workspace:*"
"@nxrocks/common": "file:../common"
},
"typings": "./src/index.d.ts",
"peerDependencies": {
Expand Down
5 changes: 0 additions & 5 deletions packages/nx-flutter/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@
]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-ktor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"kotlin"
],
"dependencies": {
"@nxrocks/common-jvm": "workspace:*",
"@nxrocks/common-jvm": "file:../common-jvm",
"node-fetch": "^2.6.12",
"enquirer": "^2.4.1",
"tslib": "^2.6.1"
Expand Down
5 changes: 0 additions & 5 deletions packages/nx-ktor/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@
]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-melos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"tslib": "^2.6.1",
"@nx/workspace": ">=18.0.0",
"@nxrocks/common": "workspace:*"
"@nxrocks/common": "file:../common"
},
"typings": "./src/index.d.ts",
"peerDependencies": {
Expand Down
5 changes: 0 additions & 5 deletions packages/nx-melos/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@
]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-micronaut/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"native"
],
"dependencies": {
"@nxrocks/common-jvm": "workspace:*",
"@nxrocks/common-jvm": "file:../common-jvm",
"node-fetch": "^2.6.12",
"enquirer": "^2.4.1",
"tslib": "^2.6.1"
Expand Down
5 changes: 0 additions & 5 deletions packages/nx-micronaut/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@
]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-quarkus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"native"
],
"dependencies": {
"@nxrocks/common-jvm": "workspace:*",
"@nxrocks/common-jvm": "file:../common-jvm",
"node-fetch": "^2.6.12",
"enquirer": "^2.4.1",
"tslib": "^2.6.1"
Expand Down
5 changes: 0 additions & 5 deletions packages/nx-quarkus/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@
]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-spring-boot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"java"
],
"dependencies": {
"@nxrocks/common-jvm": "workspace:*",
"@nxrocks/common-jvm": "file:../common-jvm",
"node-fetch": "^2.6.12",
"enquirer": "^2.4.1",
"tslib": "^2.6.1"
Expand Down
5 changes: 0 additions & 5 deletions packages/nx-spring-boot/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@
]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectRoot}"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
Expand Down

0 comments on commit 31bc93b

Please sign in to comment.