Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@edifice.io/cli

Package Overview
Dependencies
Maintainers
0
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edifice.io/cli - npm Package Compare versions

Comparing version 1.6.0-develop-b2school.10 to 1.6.0-develop-b2school.11

0

bin/index.js

@@ -0,0 +0,0 @@ #!/usr/bin/env node

2

package.json
{
"name": "@edifice.io/cli",
"version": "1.6.0-develop-b2school.10",
"version": "1.6.0-develop-b2school.11",
"description": "Edifice Frontend CLI",

@@ -5,0 +5,0 @@ "keywords": [

@@ -0,0 +0,0 @@ export type Commit = {

@@ -41,3 +41,2 @@ // @ts-check

// TODO: Keep this code for now, but it's not used
const filteredTags = allTags

@@ -61,28 +60,4 @@ // Ensure tag is valid

/* const filteredTags = allTags
// Ensure tag is valid
.filter((t) => semver.valid(t))
// Filter tags based on whether the branch is a release or pre-release
.filter((t) => {
const isPrereleaseTag = semver.prerelease(t) !== null;
return branchConfig.prerelease ? isPrereleaseTag : !isPrereleaseTag;
})
// sort by latest
// @ts-ignore
.sort(semver.compare); */
// Get the latest tag
let latestTag = filteredTags.at(-1);
// TODO: Keep this code for now, but it's not used
/* if (branchConfig.prerelease) {
const mainTags = execSync("git tag --merged main").toString().split("\n");
const validMainTags = mainTags
.filter((t) => semver.valid(t))
.sort((a, b) => semver.compare(a, b));
latestTag = validMainTags.at(-1) || latestTag; // Use the latest tag from main if available
} */
// console.log({ filteredTags: filteredTags.reverse() });
let rangeFrom = latestTag;

@@ -142,6 +117,6 @@

/**
* Get the commits since the latest tag
* @type {import('./index.js').Commit[]}
*/
// /**
// * Get the commits since the latest tag
// * @type {import('./index.js').Commit[]}
// */
const commitsSinceLatestTag = await Promise.all(

@@ -198,2 +173,9 @@ rawCommitsLog.map(async (c) => {

// If there is a breaking change and no manual tag is set, do not release
/* if (recommendedReleaseLevel === 2 && !tag) {
throw new Error(
'Major versions releases must be tagged and released manually.'
);
} */
// If no release is semantically necessary and no manual tag is set, do not release

@@ -423,12 +405,7 @@ if (recommendedReleaseLevel === -1 && !tag) {

console.info();
console.info("Resetting changes...");
/* execSync(
console.info("Committing changes...");
execSync(
`git add -A && git reset -- ${changedPackages
.map((pkg) => path.resolve(rootDir, pkg.packageDir, "package.json"))
.join(" ")}`,
); */
execSync(
`git reset -- ${changedPackages
.map((pkg) => path.resolve(rootDir, pkg.packageDir, "package.json"))
.join(" ")}`,
);

@@ -440,13 +417,10 @@ execSync(

);
// execSync(`git commit -m "${releaseCommitMsg(version)}" --allow-empty -n`);
console.info(" Reset changes.");
execSync(`git commit -m "${releaseCommitMsg(version)}" --allow-empty -n`);
console.info(" Committed Changes.");
/* console.info();
console.info();
console.info("Pushing changes...");
execSync(`git push origin ${currentGitBranch()}`);
console.info(" Changes pushed."); */
console.info(" Changes pushed.");
/**
* We tag the latest commit as we want to keep the history clean without any release commits
*/
console.info();

@@ -453,0 +427,0 @@ console.info(`Creating new git tag v${version}`);

@@ -0,0 +0,0 @@ // @ts-check

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc