diff --git a/.npmignore b/.npmignore deleted file mode 100644 index efaf804319..0000000000 --- a/.npmignore +++ /dev/null @@ -1,21 +0,0 @@ -.* -*.swp -*~ -*.iml -.*.haste_cache.* -.DS_Store -.idea -npm-debug.log -yarn.lock -package-lock.json - -codecov.yml -CONTRIBUTING.md -node_modules -coverage -resources -src -docs -dist -__tests__ -npm diff --git a/package.json b/package.json index 358c118da4..d72058101b 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,6 @@ "changelog": "node resources/gen-changelog.js", "preversion": ". ./resources/checkgit.sh", "version": "node resources/gen-version.js && npm test && git add src/version.js", - "prepublishOnly": ". ./resources/prepublish.sh", "gitpublish": ". ./resources/gitpublish.sh" }, "dependencies": { diff --git a/resources/prepublish.sh b/resources/prepublish.sh deleted file mode 100644 index a13cb877aa..0000000000 --- a/resources/prepublish.sh +++ /dev/null @@ -1,18 +0,0 @@ -# Exit immediately if any subcommand terminated -trap "exit 1" ERR - -# Publishing to NPM is currently supported by Travis CI, which ensures that all -# tests pass first and the deployed module contains the correct file structure. -# In order to prevent inadvertently circumventing this, we ensure that a CI -# environment exists before continuing. -if [ "$CI" != true ]; then - echo "\n\n\n \033[101;30m Only Travis CI can publish to NPM. \033[0m" 1>&2; - echo " Ensure git is left is a good state by backing out any commits and deleting any tags." 1>&2; - echo " Then read CONTRIBUTING.md to learn how to publish to NPM.\n\n\n" 1>&2; - exit 1; -fi; - -# When Travis CI publishes to NPM, the published files are available in the root -# directory, which allows for a clean include or require of sub-modules. -npm run build -cp -r ./dist/* ./