Skip to content

Commit

Permalink
🔧 Replace .npmignore by "files" field in package.json (#550)
Browse files Browse the repository at this point in the history
Related to #547
  • Loading branch information
dubzzz committed Feb 10, 2020
1 parent a9b5864 commit 9c797cb
Show file tree
Hide file tree
Showing 10 changed files with 1,876 additions and 745 deletions.
15 changes: 0 additions & 15 deletions .npmignore

This file was deleted.

6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -48,9 +48,13 @@ jobs:
yarn link "fast-check" ;
yarn test ;
cd ..
- cd test/type ;
yarn --ignore-engines ;
yarn link "fast-check" ;
yarn test ;
cd ../..
- yarn test:rollup-esm
- yarn test:rollup-iife
- yarn test:type
- nvm install 0.12 ;
node --version ;
node test/legacy/main.js
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -12,6 +12,7 @@
]
}
},
"files": ["lib"],
"sideEffects": false,
"scripts": {
"perf": "node perf/benchmark.js",
Expand All @@ -31,7 +32,6 @@
"e2e:watch": "jest --config jest.e2e.config.js --watch",
"test:rollup-esm": "rollup --config test/rollup/esm/rollup.config.js && node test/rollup/esm/dist/main.js",
"test:rollup-iife": "rollup --config test/rollup/iife/rollup.config.js && node test/rollup/iife/dist/main.js",
"test:type": "tsd",
"coverage": "cat ./coverage/lcov.info | coveralls",
"docs": "mkdir -p docs/2-API && docsify-init --editDir documentation && cp -R documentation/* docs/ && api-extractor run --local && generate-ts-docs markdown -i docs/2-API -o docs/2-API && cat README.md | sed 's/https:\\/\\/github.com\\/dubzzz\\/fast-check\\/blob\\/master\\/documentation//g' > docs/README.md && markdownbars -i docs/_sidebar.md -o docs/_sidebar.md",
"format": "prettier --write \"**/*.{js,ts}\"",
Expand Down Expand Up @@ -78,7 +78,6 @@
"source-map-support": "^0.5.13",
"ts-jest": "^24.2.0",
"ts-node": "^8.4.1",
"tsd": "^0.10.0",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.6.4",
"uglifyjs": "^2.4.11"
Expand Down
Empty file added test/type/index.d.ts
Empty file.
2 changes: 1 addition & 1 deletion test/type/main.ts → test/type/index.test-d.ts
@@ -1,5 +1,5 @@
import { expectType, expectError } from 'tsd';
import * as fc from '../../src/fast-check';
import * as fc from 'fast-check';

// assert
expectType<void>(fc.assert(fc.property(fc.nat(), () => {})));
Expand Down
17 changes: 17 additions & 0 deletions test/type/package.json
@@ -0,0 +1,17 @@
{
"name": "fast-check-test-type",
"version": "1.0.0",
"description": "Test types bundled with fast-check",
"scripts": {
"test": "tsd"
},
"dependencies": {
},
"devDependencies": {
"fast-check": "*",
"tsd": "^0.10.0"
},
"author": "Nicolas DUBIEN <github@dubien.org>",
"license": "MIT",
"private": true
}

0 comments on commit 9c797cb

Please sign in to comment.