From 93f4592d16f454bd503c7338d6eebedf3ce059f5 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Sun, 19 Jul 2020 20:10:17 +0200 Subject: [PATCH] adapt to new package ci standards, fix test modules getting installed on non test projects --- lib/snippets/copyright/index.ts | 2 +- lib/snippets/node/index.ts | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/snippets/copyright/index.ts b/lib/snippets/copyright/index.ts index 68f122b..92740be 100644 --- a/lib/snippets/copyright/index.ts +++ b/lib/snippets/copyright/index.ts @@ -41,7 +41,7 @@ export default class Copyright implements Snippet { ); await modify_json ((json) => { - json.author = `${options.author} <${options.email}>`; + json.author = { name: options.author, email: options.email }; json.license = options.has_license ? options.license : 'UNLICENSED'; return json; }); diff --git a/lib/snippets/node/index.ts b/lib/snippets/node/index.ts index 67e9fb1..f0ac493 100644 --- a/lib/snippets/node/index.ts +++ b/lib/snippets/node/index.ts @@ -96,7 +96,7 @@ export default class Node implements Snippet { run_command ( `yarn add --dev @sapphirecode/eslint-config${use_ts ? '-ts typescript @ava/typescript' - : ''} eslint nyc ava`, + : ''} eslint${use_tests ? ' nyc ava' : ''}`, folder ); diff --git a/package.json b/package.json index fe6436f..0c17ff8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sapphirecode/snippeteer", - "version": "1.4.3", + "version": "1.4.4", "description": "macros for setting up projects or project parts", "main": "index.js", "bin": {