Socket
Socket
Sign inDemoInstall

@covector/assemble

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@covector/assemble - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

covector-assemble-0.8.0.tgz

7

CHANGELOG.md
# Changelog
## \[0.8.0]
- Allow one to specify the `releaseTag` that determines the Github Release tag used. This also let's you specify `false` to explicitly skip creating a Github Release for the package. resolves #203, resolves #204.
- [6742580](https://www.github.com/jbolda/covector/commit/674258044048a259b5dce1bc02b241dd0f17e978) feat: publish existing draft GitHub Release ([#211](https://www.github.com/jbolda/covector/pull/211)) on 2021-06-18
- Extract out types into separate package to remove issues with circular dependencies.
- [519da36](https://www.github.com/jbolda/covector/commit/519da362eff5628901a1f640120d39dd8234fdda) chore: set paths / references for TS and add types package ([#213](https://www.github.com/jbolda/covector/pull/213)) on 2021-06-26
## \[0.7.0]

@@ -4,0 +11,0 @@

44

dist/index.d.ts

@@ -1,43 +0,2 @@

import { VFile, PackageFile, ConfigFile } from "@covector/files";
export declare type CommonBumps = "major" | "minor" | "patch" | "prerelease" | "noop";
declare type Change = {
releases: {
[k: string]: CommonBumps;
};
meta?: {
filename?: string;
};
};
export declare type PkgVersion = {
pkg: string;
path?: string;
packageFileName?: string;
type?: string;
parents?: string[];
precommand?: (string | any)[] | null;
command?: (string | any)[] | null;
postcommand?: (string | any)[] | null;
manager?: string;
dependencies?: string[];
errorOnVersionRange?: string;
};
export declare type PkgPublish = {
pkg: string;
path?: string;
packageFileName?: string;
changelog?: string;
tag?: string;
precommand?: (string | any)[] | null;
command?: (string | any)[] | null;
postcommand?: (string | any)[] | null;
manager: string;
dependencies?: string[];
getPublishedVersion?: string;
assets?: {
name: string;
path: string;
}[];
pkgFile?: PackageFile;
errorOnVersionRange?: string;
};
import type { VFile, ConfigFile, CommonBumps, Change, PkgVersion, PkgPublish } from "@covector/types";
export declare const compareBumps: (bumpOne: CommonBumps, bumpTwo: CommonBumps) => CommonBumps;

@@ -94,3 +53,2 @@ export declare const assemble: ({ cwd, vfiles, config, preMode, }: {

}, any>;
export {};
//# sourceMappingURL=index.d.ts.map

@@ -256,2 +256,3 @@ "use strict";

// and pipe in data to template function
var _a;
const pkgCommands = Object.keys(config.packages).reduce((pkged, pkg) => {

@@ -279,3 +280,3 @@ var _a, _b;

? {}
: { assets: publishElements.assets })), { manager: config.packages[pkg].manager || "", dependencies: config.packages[pkg].dependencies, errorOnVersionRange: mergeCommand(Object.assign(Object.assign({}, commandItems), { command: `errorOnVersionRange` })) });
: { assets: publishElements.assets })), { manager: config.packages[pkg].manager || "", dependencies: config.packages[pkg].dependencies, errorOnVersionRange: mergeCommand(Object.assign(Object.assign({}, commandItems), { command: `errorOnVersionRange` })), releaseTag: mergeCommand(Object.assign(Object.assign({}, commandItems), { command: `releaseTag` })) });
}

@@ -329,3 +330,7 @@ return pkged;

"dryRunCommand",
]), postcommand: templateCommands(pkgCommands[pkg].postcommand, pipeToTemplate, ["command", "dryRunCommand", "runFromRoot"]), errorOnVersionRange: pkgCommands[pkg].errorOnVersionRange });
]), postcommand: templateCommands(pkgCommands[pkg].postcommand, pipeToTemplate, ["command", "dryRunCommand", "runFromRoot"]), errorOnVersionRange: pkgCommands[pkg].errorOnVersionRange, releaseTag: pkgCommands[pkg].releaseTag === false
? false
: templateCommands([
(_a = pkgCommands[pkg].releaseTag) !== null && _a !== void 0 ? _a : "${ pkgFile.pkg.name }-v${ pkgFile.version }",
], pipeToTemplate, ["releaseTag"])[0] });
commands = [...commands, merged];

@@ -341,16 +346,7 @@ }

const mergeCommand = ({ pkg, pkgManager, command, config, }) => {
const managerCommand = !!pkgManager &&
!!config.pkgManagers &&
!!config.pkgManagers[pkgManager] &&
//@ts-ignore
!!config.pkgManagers[pkgManager][command]
? //@ts-ignore
config.pkgManagers[pkgManager][command]
: null;
const mergedCommand =
var _a, _b, _c, _d, _e, _f;
//@ts-ignore
!config.packages[pkg][command] && config.packages[pkg][command] !== false
? managerCommand
: //@ts-ignore
config.packages[pkg][command];
const managerCommand = (_c = (_b = (_a = config.pkgManagers) === null || _a === void 0 ? void 0 : _a[pkgManager]) === null || _b === void 0 ? void 0 : _b[command]) !== null && _c !== void 0 ? _c : null;
//@ts-ignore
const mergedCommand = (_f = (_e = (_d = config.packages) === null || _d === void 0 ? void 0 : _d[pkg]) === null || _e === void 0 ? void 0 : _e[command]) !== null && _f !== void 0 ? _f : managerCommand;
return mergedCommand;

@@ -357,0 +353,0 @@ };

{
"name": "@covector/assemble",
"version": "0.7.0",
"version": "0.8.0",
"license": "Apache-2.0",

@@ -19,4 +19,4 @@ "homepage": "https://github.com/jbolda/covector#readme",

"dependencies": {
"@covector/command": "0.4.0",
"@covector/files": "0.4.0",
"@covector/command": "0.5.0",
"@covector/files": "0.5.0",
"js-yaml": "^4.0.0",

@@ -30,2 +30,3 @@ "lodash": "^4.17.21",

"devDependencies": {
"@covector/types": "^0.0.0",
"@types/js-yaml": "^4.0.0",

@@ -32,0 +33,0 @@ "@types/lodash": "^4.14.168",

{
"extends": "../../tsconfig.base.json",
"references": [
{ "path": "../files" },
{ "path": "../command" },
{ "path": "../types" }
],
"compilerOptions": {
"outDir": "dist"
"baseUrl": ".",
"outDir": "dist",
"rootDir": "src"
},
"include": ["index.ts"]
"include": ["src/**/*.ts"]
}

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