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