Skip to content

Commit

Permalink
Fix files accidentally included in final package (#233)
Browse files Browse the repository at this point in the history
The example-repos directory contained a number .gitignore files that were
explicitly including files that we don't want to include, so we now clear all
example repos before publish.

Also, the implementation of `files` in package.json was including `dist`
directories in `integrations` advertently, so we now do the equivalent thing
in .npmignore with some fixes.
  • Loading branch information
alangpierce authored Jun 4, 2018
1 parent 99ac443 commit 67cde54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!bin/**
!dist/**
!register/**
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@
"bin": {
"sucrase": "./bin/sucrase"
},
"files": [
"bin",
"dist",
"register"
],
"scripts": {
"build": "script/build",
"clean": "rm -rf ./build ./dist",
"clean": "rm -rf ./build ./dist ./example-runner/example-repos",
"generate": "ts-node ./generator/generate.ts",
"self-build": "script/self-build",
"self-test": "mocha test/**/*.ts --opts test/mocha-self-test.opts",
Expand All @@ -26,7 +21,7 @@
"lint": "eslint './src/**/*.ts' './test/**/*.ts' './sucrase-babylon/**/*.ts' './integrations/gulp-plugin/src/**/*.ts'",
"profile": "node --inspect-brk ./build/benchmark/profile.js",
"profile-react": "node --inspect-brk ./build/benchmark/profile-react.js",
"prepublish": "yarn run build",
"prepublish": "yarn clean && yarn build",
"run-examples": "ts-node ./example-runner/example-runner.ts",
"test": "yarn lint && tsc --noEmit && tsc --project ./integrations/gulp-plugin --noEmit && mocha test",
"test-dist": "./node_modules/.bin/mocha build/test --opts test/mocha-self-test.opts"
Expand Down

0 comments on commit 67cde54

Please # to comment.