arylo-init
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -1,1 +0,1 @@ | ||
{"list":[".","./.editorconfig","./.eslintrc.yml","./.gitignore","./.huskyrc.json","./.lintstagedrc","./.travis.yml","./jsconfig.json","./lib","./lib/index.ts","./LICENSE","./package.json","./README.md","./test","./test/index.spec.ts","./tsconfig.json","./tsconfig.prod.json","./tsconfig.test.json","./tslint.json"],"files":{"./.editorconfig":"00f5d63c1ceaa9bf595941fdb0d29026","./.eslintrc.yml":"059be00af87f497a3dd520e21e8928cf","./.gitignore":"6ef0766d9c5704d0cee518b9607ad7ab","./.huskyrc.json":"c324f58f210d4a580ae5c18c356e8b8a","./.lintstagedrc":"e7948e6cf81ce2506a382efbc74bcfdc","./.travis.yml":"c9ed074de048ec05e25db825a895f0f5","./jsconfig.json":"e6047ecc89ef7954338fb98ec35bf93f","./lib/index.ts":"50ab8c4cb1675b71fb50ccf0831a27a1","./LICENSE":"76ec4b7945b71c8d85f2445269bf02c8","./package.json":"ed880c9feccb431a43e900e0ab18b583","./README.md":"1b4c2286805a30c13ca53fde25ee5ed6","./test/index.spec.ts":"36031d33b92770bd9122fa2d4be69db7","./tsconfig.json":"d281f403c04b73ef6948ba99a87750e6","./tsconfig.prod.json":"a6ba3cc71b9cd2ca999bf07d21901827","./tsconfig.test.json":"c51897ce6b3c279e9689a6deca46ac1b","./tslint.json":"10748e999e8b2e70fadc831cc6b9da1e"}} | ||
{"list":[".","./.editorconfig","./.eslintignore","./.eslintrc.yml","./.gitignore","./.huskyrc.json","./.lintstagedrc","./.travis.yml","./jsconfig.json","./lib","./lib/index.ts","./LICENSE","./package.json","./README.md","./test","./test/index.spec.ts","./tsconfig.json","./tsconfig.prod.json","./tsconfig.test.json","./tslint.json"],"files":{"./.editorconfig":"00f5d63c1ceaa9bf595941fdb0d29026","./.eslintignore":"b5434d4a6bd2e5c86d1ffa4a8c07970b","./.eslintrc.yml":"059be00af87f497a3dd520e21e8928cf","./.gitignore":"6ef0766d9c5704d0cee518b9607ad7ab","./.huskyrc.json":"c324f58f210d4a580ae5c18c356e8b8a","./.lintstagedrc":"e7948e6cf81ce2506a382efbc74bcfdc","./.travis.yml":"c9ed074de048ec05e25db825a895f0f5","./jsconfig.json":"e6047ecc89ef7954338fb98ec35bf93f","./lib/index.ts":"50ab8c4cb1675b71fb50ccf0831a27a1","./LICENSE":"76ec4b7945b71c8d85f2445269bf02c8","./package.json":"ed880c9feccb431a43e900e0ab18b583","./README.md":"1b4c2286805a30c13ca53fde25ee5ed6","./test/index.spec.ts":"36031d33b92770bd9122fa2d4be69db7","./tsconfig.json":"d281f403c04b73ef6948ba99a87750e6","./tsconfig.prod.json":"a6ba3cc71b9cd2ca999bf07d21901827","./tsconfig.test.json":"c51897ce6b3c279e9689a6deca46ac1b","./tslint.json":"10748e999e8b2e70fadc831cc6b9da1e"}} |
@@ -43,3 +43,8 @@ "use strict"; | ||
updateScript(action, command) { | ||
this.object.scripts[action] = command; | ||
if (command) { | ||
this.object.scripts[action] = command; | ||
} | ||
else { | ||
delete this.object.scripts[action]; | ||
} | ||
return this; | ||
@@ -46,0 +51,0 @@ } |
import * as path from "path"; | ||
import constants = require("../constants"); | ||
import * as json from "../utils/json"; | ||
import { Pkg } from "../utils/pkg"; | ||
@@ -6,0 +5,0 @@ export const UPDATE_LIST = [".huskyrc.json"]; |
@@ -75,4 +75,8 @@ import * as fs from "fs"; | ||
public updateScript(action: string, command: string) { | ||
this.object.scripts[action] = command; | ||
public updateScript(action: string, command?: string) { | ||
if (command) { | ||
this.object.scripts[action] = command; | ||
} else { | ||
delete this.object.scripts[action]; | ||
} | ||
return this; | ||
@@ -79,0 +83,0 @@ } |
{ | ||
"name": "arylo-init", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"description": "Initial Node.js Project for Arylo Edition", | ||
@@ -21,3 +21,3 @@ "main": "./dist/index.js", | ||
"lint:typescript": "tslint lib/**/*.ts public/**/*.ts", | ||
"lint:javascript": "eslint scripts/**/*.js lib/**/*.js public/**/*.js", | ||
"lint:javascript": "eslint ./**/*.js", | ||
"pretest": "npm run clean && npm run build:test && npm run resource", | ||
@@ -24,0 +24,0 @@ "test": "ava ./dist/test/**/*.spec.*" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61588
62
1445