@dbx-tools/projen 0.6.91 → 0.6.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@clack/prompts": "^1.7.0",
29
- "@dbx-tools/core": "0.6.91",
30
- "@dbx-tools/path": "0.6.91",
31
- "@dbx-tools/shared-core": "0.6.91",
29
+ "@dbx-tools/core": "0.6.93",
30
+ "@dbx-tools/path": "0.6.93",
31
+ "@dbx-tools/shared-core": "0.6.93",
32
32
  "commander": "^15.0.0",
33
33
  "concurrently": "^10.0.3",
34
34
  "constructs": "^10.6.0",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "main": "index.ts",
49
49
  "license": "Apache-2.0",
50
- "version": "0.6.91",
50
+ "version": "0.6.93",
51
51
  "types": "index.ts",
52
52
  "type": "module",
53
53
  "exports": {
@@ -61,10 +61,11 @@ export function stampPythonProjects(
61
61
 
62
62
  try {
63
63
  for (const project of projects) {
64
- let stamped = project.source.replace(/^version = "[^"]+"$/m, `version = "${version}"`);
65
- if (stamped === project.source) {
64
+ const versionPattern = /^version = "[^"]+"$/m;
65
+ if (!versionPattern.test(project.source)) {
66
66
  throw new Error(`Expected one project version in ${project.path}`);
67
67
  }
68
+ let stamped = project.source.replace(versionPattern, `version = "${version}"`);
68
69
  if (options.rewriteDependencies ?? true) {
69
70
  for (const sibling of projects) {
70
71
  stamped = stamped.replace(