Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Sep 29, 2023
1 parent facc448 commit 9ea9c65
Show file tree
Hide file tree
Showing 7 changed files with 155 additions and 60 deletions.
7 changes: 6 additions & 1 deletion copado-function/app/npmVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
*/

import { execSync } from 'node:child_process';
import path from 'node:path';
// import just to resolve cyclical - TO DO consider if could move to file or context
import { readJsonSync } from 'fs-extra/esm';
import { fileURLToPath } from 'node:url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));

const args = process.argv.slice(2);
const versionIncreaseType = args[0];
Expand All @@ -30,7 +35,7 @@ const versionIncreaseType = args[0];
exec('git add package-lock.json');

// get the new version number
const packageJson = require('../../package.json');
const packageJson = readJsonSync(path.join(__dirname, '../../package.json'));
const newVersion = packageJson.version;

// commit changes without commit-hooks
Expand Down
6 changes: 3 additions & 3 deletions copado-function/dist/Commit.fn.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

/*
* mcdev-copado v1.3.0 (built 2023-09-28T15:27:05.266Z)
* mcdev-copado v2.0.0 (built 2023-09-29T12:01:33.973Z)
* Function: Commit.fn.js
* Dependenies: mcdev@file:../sfmc-devtools, Copado Deployer@20.1
* Dependenies: mcdev@>=6.0.0, Copado Deployer@20.1
* Homepage: https://github.com/Accenture/sfmc-devtools-copado#readme
* Support: https://github.com/Accenture/sfmc-devtools-copado/issues
* Git-Repository: https://github.com/Accenture/sfmc-devtools-copado.git
Expand Down Expand Up @@ -544,7 +544,7 @@ var Commit = class {
var Commit_default = Commit;

// Commit.fn.js
Config_default.mcdevCopadoVersion = "1.3.0";
Config_default.mcdevCopadoVersion = "2.0.0";
Config_default.credentialNameSource = process.env.credentialNameSource;
Config_default.credentialNameTarget = null;
Config_default.credentials = process.env.credentials;
Expand Down
6 changes: 3 additions & 3 deletions copado-function/dist/Deploy.fn.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

/*
* mcdev-copado v1.3.0 (built 2023-09-28T15:27:05.908Z)
* mcdev-copado v2.0.0 (built 2023-09-29T12:01:34.006Z)
* Function: Deploy.fn.js
* Dependenies: mcdev@file:../sfmc-devtools, Copado Deployer@20.1
* Dependenies: mcdev@>=6.0.0, Copado Deployer@20.1
* Homepage: https://github.com/Accenture/sfmc-devtools-copado#readme
* Support: https://github.com/Accenture/sfmc-devtools-copado/issues
* Git-Repository: https://github.com/Accenture/sfmc-devtools-copado.git
Expand Down Expand Up @@ -547,7 +547,7 @@ var Commit_default = Commit;

// Deploy.fn.js
import mcdev3 from "mcdev";
Config_default.mcdevCopadoVersion = "1.3.0";
Config_default.mcdevCopadoVersion = "2.0.0";
Config_default.credentialNameSource = process.env.credentialNameSource;
Config_default.credentialNameTarget = process.env.credentialNameTarget;
Config_default.credentials = process.env.credentials;
Expand Down
4 changes: 2 additions & 2 deletions copado-function/dist/Init.fn.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

/*
* mcdev-copado v1.3.0 (built 2023-09-28T15:27:06.431Z)
* mcdev-copado v2.0.0 (built 2023-09-29T12:01:34.076Z)
* Function: Init.fn.js
* Dependenies: mcdev@file:../sfmc-devtools, Copado Deployer@20.1
* Dependenies: mcdev@>=6.0.0, Copado Deployer@20.1
* Homepage: https://github.com/Accenture/sfmc-devtools-copado#readme
* Support: https://github.com/Accenture/sfmc-devtools-copado/issues
* Git-Repository: https://github.com/Accenture/sfmc-devtools-copado.git
Expand Down
6 changes: 3 additions & 3 deletions copado-function/dist/Retrieve.fn.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

/*
* mcdev-copado v1.3.0 (built 2023-09-28T15:27:01.118Z)
* mcdev-copado v2.0.0 (built 2023-09-29T12:01:32.664Z)
* Function: Retrieve.fn.js
* Dependenies: mcdev@file:../sfmc-devtools, Copado Deployer@20.1
* Dependenies: mcdev@>=6.0.0, Copado Deployer@20.1
* Homepage: https://github.com/Accenture/sfmc-devtools-copado#readme
* Support: https://github.com/Accenture/sfmc-devtools-copado/issues
* Git-Repository: https://github.com/Accenture/sfmc-devtools-copado.git
Expand Down Expand Up @@ -452,7 +452,7 @@ var Copado_default = Copado;
import mcdev2 from "mcdev";
import Definition from "mcdev/lib/MetadataTypeDefinitions.js";
import MetadataType from "mcdev/lib/MetadataTypeInfo.js";
Config_default.mcdevCopadoVersion = "1.3.0";
Config_default.mcdevCopadoVersion = "2.0.0";
Config_default.credentialNameSource = process.env.credentialNameSource;
Config_default.credentialNameTarget = null;
Config_default.credentials = process.env.credentials;
Expand Down
Loading

0 comments on commit 9ea9c65

Please sign in to comment.