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

@dataform-co/build.js

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dataform-co/build.js - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

17

build.ts

@@ -79,3 +79,6 @@ import * as fs from "fs";

if (ruleHash == buildCacheJson.hashes[rule.fullName] || !rule.build) {
if (
rule.cache &&
(ruleHash == buildCacheJson.hashes[rule.fullName] || !rule.build)
) {
if (rule.build) print.targetCached(rule.fullName);

@@ -92,6 +95,10 @@ finishedRuleNames.push(rule.fullName);

new Promise((resolve, reject) => {
var cp = child_process.spawn("/bin/bash", ["-c", buildCommand], {
stdio: "inherit",
cwd: path.dirname(rule.filePath)
});
var cp = child_process.spawn(
"/bin/bash",
["-c", buildCommand],
{
stdio: "inherit",
cwd: path.dirname(rule.filePath)
}
);
cp.on("exit", function(code) {

@@ -98,0 +105,0 @@ if (code != 0) {

@@ -52,3 +52,4 @@ "use strict";

ruleHash = utils.hashString(ruleHash + "|" + JSON.stringify(rule));
if (ruleHash == buildCacheJson.hashes[rule.fullName] || !rule.build) {
if (rule.cache &&
(ruleHash == buildCacheJson.hashes[rule.fullName] || !rule.build)) {
if (rule.build)

@@ -55,0 +56,0 @@ print.targetCached(rule.fullName);

@@ -61,3 +61,3 @@ "use strict";

: [];
var ruleCtx = config.target == rule.fullName ? ctx : index_1.Context.create();
var ruleCtx = utils.matchRule(rule.fullName, config.target) ? ctx : index_1.Context.create();
rule.build = rule.build && ruleCtx.apply(rule.build);

@@ -64,0 +64,0 @@ });

@@ -75,3 +75,3 @@ import { promisify } from "util";

// Resolve contextable parameters.
var ruleCtx = config.target == rule.fullName ? ctx : Context.create();
var ruleCtx = utils.matchRule(rule.fullName, config.target) ? ctx : Context.create();
rule.build = rule.build && ruleCtx.apply(rule.build);

@@ -78,0 +78,0 @@ });

{
"name": "@dataform-co/build.js",
"version": "0.0.5",
"version": "0.0.6",
"description": "Simple, un-opinionated JavaScript build scripting.",

@@ -5,0 +5,0 @@ "main": "build/index.js",

Sorry, the diff of this file is not supported yet

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