Skip to content

Commit 4f16b8f

Browse files
committed
chore(tests): run tests also in examples directory
1 parent da977d8 commit 4f16b8f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@
1414
"scripts": {
1515
"build": "rm -rf dist/* && microbundle -o dist/index.js -f modern,umd --external react=React --sourcemap false --jsx React.createElement --no-compress --tsconfig ./tsconfig.json",
1616
"dev": "rm -rf dist/* && microbundle watch -o dist/index.js -f modern,umd --external react=React --sourcemap false --jsx React.createElement --no-compress --tsconfig ./tsconfig.json",
17-
"lint": "eslint './src/**/*.{ts,tsx}'",
17+
"lint": "eslint './{src,examples}/**/*.{ts,tsx}'",
1818
"types": "tsc --project tsconfig.json --noEmit",
1919
"test": "npm run lint && npm run types",
2020
"prepublishOnly": "npm run test && npm run build",
2121
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
2222
"preversion": "npm run test",
2323
"version": "npm run changelog && git checkout -b chore/release-${npm_package_version} && git add .",
2424
"postversion": "git push -u origin chore/release-${npm_package_version} && git push --tags --no-verify",
25-
"start:sample-map": "cd examples && npm run clean-examples && npm i && npm run start:map",
26-
"start:map-with-markers": "cd examples && npm run clean-examples && npm i && npm run start:map-markers"
25+
"postinstall": "npm install --prefix examples",
26+
"start:sample-map": "cd examples && npm run clean-examples && npm run start:map",
27+
"start:map-with-markers": "cd examples && npm run clean-examples && npm run start:map-markers"
2728
},
2829
"keywords": [
2930
"React hooks",

0 commit comments

Comments
 (0)