From 2ad443847f5098cfa56403e7c14a15ad0670e2af Mon Sep 17 00:00:00 2001 From: Graham McGregor Date: Wed, 17 Feb 2021 16:34:14 -0500 Subject: [PATCH] Move src files into folder This will make the published package smaller --- package.json | 7 +++++-- errorformat.js => src/errorformat.js | 0 index.js => src/index.js | 0 json-helper.js => src/json-helper.js | 0 test.sh | 2 +- 5 files changed, 6 insertions(+), 3 deletions(-) rename errorformat.js => src/errorformat.js (100%) rename index.js => src/index.js (100%) rename json-helper.js => src/json-helper.js (100%) diff --git a/package.json b/package.json index 8b77eb1..3ea7b92 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,16 @@ "name": "cfn-lint-to-codeframe", "version": "1.0.4", "description": "", - "main": "index.js", "scripts": { "lint:format": "prettier --check \"**/*.{js,jsx,ts,tsx,html,vue,css,less,scss,graphql,yaml,yml,json,md,mdx}\"", "fix:format": "prettier --write \"**/*.{js,jsx,ts,tsx,html,vue,css,less,scss,graphql,yaml,yml,json,md,mdx}\"", "test": "echo \"Error: no test specified\" && exit 1" }, - "bin": "index.js", + "main": "src/index.js", + "bin": "src/index.js", + "files": [ + "src/" + ], "keywords": [ "AWS", "CloudFormation", diff --git a/errorformat.js b/src/errorformat.js similarity index 100% rename from errorformat.js rename to src/errorformat.js diff --git a/index.js b/src/index.js similarity index 100% rename from index.js rename to src/index.js diff --git a/json-helper.js b/src/json-helper.js similarity index 100% rename from json-helper.js rename to src/json-helper.js diff --git a/test.sh b/test.sh index e7d8c76..a5b4322 100755 --- a/test.sh +++ b/test.sh @@ -10,7 +10,7 @@ template="$1" input=$(cfn-lint -t "${template}" -f parseable) -echo "$input" | ./index.js >/dev/null +echo "$input" | ./src/index.js >/dev/null if [ $? -ne 0 ]; then echo "Error with $template" fi