af-react-grid
Advanced tools
Comparing version 1.0.11 to 1.0.12
{ | ||
"name": "af-react-grid", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"sideEffects": [ | ||
@@ -13,3 +13,3 @@ "*.css" | ||
"post-commit": "node scripts/commit.js post", | ||
"pre-push": "yarn test" | ||
"pre-push": "npm run test" | ||
} | ||
@@ -39,5 +39,3 @@ }, | ||
"build:examples": "webpack --progress --mode=production --config webpack.config.js", | ||
"build": "npm-run-all -s build:library build:examples", | ||
"git:add:build": "git add dist/ example_dist/", | ||
"git:amend": "git commit --amend -C HEAD --no-verify" | ||
"build": "npm-run-all -s build:library build:examples" | ||
}, | ||
@@ -68,3 +66,3 @@ "dependencies": { | ||
"clean-webpack-plugin": "^0.1.19", | ||
"css-loader": "^1.0.0", | ||
"css-loader": "^1.0.1", | ||
"fs": "^0.0.1-security", | ||
@@ -71,0 +69,0 @@ "html-webpack-plugin": "^3.2.0", |
@@ -7,3 +7,3 @@ const fs = require( "fs" ); | ||
const POST_CMDS = [ | ||
"yarn build", | ||
"npm run build", | ||
"git add dist/ example_dist/", | ||
@@ -13,23 +13,25 @@ "git commit --amend -C HEAD --no-verify" | ||
const STDIO_ARR = [ 0, 1, 2 ]; | ||
switch( process.argv[ 2 ] ){ | ||
case "pre": | ||
execSync( "yarn test", { stdio: [ 0, 1, 2 ] } ); | ||
execSync( "yarn test", { stdio: STDIO_ARR } ); | ||
fs.closeSync( fs.openSync( EMPTY_FILE_NAME, "w" ) ); | ||
break; | ||
case "post": | ||
if( fs.existsSync( EMPTY_FILE_NAME ) ){ | ||
fs.unlinkSync( EMPTY_FILE_NAME ); | ||
POST_CMDS.forEach( cmd => { | ||
try{ | ||
console.log( `Running: ${cmd}` ); | ||
execSync( cmd, { stdio: [ 0, 1, 2 ] } ); | ||
} | ||
catch( e ){ | ||
console.error( e ) | ||
} | ||
}) | ||
console.log( `Running: ${cmd}` ); | ||
execSync( cmd, { stdio: STDIO_ARR } ); | ||
}); | ||
} | ||
break; | ||
default: | ||
throw new Error( "Wrong commit.js usage" ); | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
202703
1379