diff --git a/.npmignore b/.npmignore index a5c57244..507e2b0e 100644 --- a/.npmignore +++ b/.npmignore @@ -1,2 +1,10 @@ -src/ -gulpfile.js +# ignore everything +* + +# include these: +!/lib/**/* +!LICENSE.md +!README.md + +# exclude hidden files from the includes: +.* diff --git a/package.json b/package.json index 4b1d90d7..96603163 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { - "build": "tsc && chmod +x lib/cli.js", + "clean": "rm -rf lib/", + "build": "yarn clean && tsc && chmod +x lib/cli.js", "test": "jest", "test:watch": "jest --watch", "test:ci": "jest --coverage",