@docupace/pipeline 1.0.39-newrelease.17 → 1.0.39-newrelease.19

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.39-newrelease.17",
3
+ "version": "1.0.39-newrelease.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,10 +1,20 @@
1
1
  import { setGitInfo } from '../next/util.js';
2
2
  import { $ } from 'zx';
3
- import fs from 'fs';
3
+ import fs, {readFileSync} from 'fs';
4
4
  import { updateComponentVersion } from '../next/jira.js';
5
5
  import { findJiraTicketId } from './util.js';
6
6
  import { revertBaseBranch, updateBaseBranch } from './changeset-config.js';
7
7
  import semver from 'semver';
8
+ import {dirname, join} from "path";
9
+ import {fileURLToPath} from "url";
10
+
11
+
12
+ const getPackageVersion = () => {
13
+ const __dirname = dirname(fileURLToPath(import.meta.url));
14
+ const packageJsonPath = join(__dirname, '../../package.json');
15
+ const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
16
+ return packageJson.version;
17
+ }
8
18
 
9
19
  const changeSetPackage = `{
10
20
  "name": "changeset-package",
@@ -19,7 +29,7 @@ const changeSetPackage = `{
19
29
  "dependencies": {},
20
30
  "devDependencies": {
21
31
  "@changesets/cli": "^2.27.10",
22
- "@docupace/pipeline": "1.0.39-newrelease.13"
32
+ "@docupace/pipeline": "${getPackageVersion()}"
23
33
  }
24
34
  }
25
35
  `;