Skip to content

Commit 81b3e98

Browse files
authored
Merge pull request #11 from bit-docs/package-json-api
package.json
2 parents a5184a2 + f941fe8 commit 81b3e98

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,27 @@
2525
"genc": "bit-docs -dc",
2626
"genf": "bit-docs -df",
2727
"gh-pages": "gh-pages -d gh-pages",
28-
"postinstall": "git submodule update --init",
28+
"preinstall": "[ -f docs/modules/bit-docs/package.json ] || git submodule update --init",
2929
"pub": "npm run gh-pages",
3030
"see": "http-server gh-pages",
3131
"test": "echo \"Error: no test specified\" && exit 1"
3232
},
3333
"devDependencies": {
34-
"bit-docs": "bit-docs/bit-docs",
34+
"bit-docs": "bit-docs/bit-docs#file-pathed-deps",
3535
"gh-pages": "^0.12.0"
3636
},
3737
"bit-docs": {
3838
"dependencies": {
39-
"bit-docs-dev": "bit-docs/bit-docs-dev",
40-
"bit-docs-generate-html": "bit-docs/bit-docs-generate-html",
41-
"bit-docs-glob-finder": "bit-docs/bit-docs-glob-finder",
42-
"bit-docs-html-toc": "bit-docs/bit-docs-html-toc",
39+
"bit-docs-dev": "file:docs/modules/bit-docs-dev",
40+
"bit-docs-generate-html": "bit-docs/bit-docs-generate-html#file-pathed-deps",
41+
"bit-docs-glob-finder": "file:docs/modules/bit-docs-glob-finder",
42+
"bit-docs-html-toc": "file:docs/modules/bit-docs-html-toc",
4343
"bit-docs-js": "bit-docs/bit-docs-js#remove-depend",
44-
"bit-docs-prettify": "bit-docs/bit-docs-prettify",
45-
"bit-docs-html-highlight-line": "bit-docs/bit-docs-html-highlight-line",
46-
"bit-docs-process-mustache": "bit-docs/bit-docs-process-mustache",
47-
"bit-docs-tag-demo": "bit-docs/bit-docs-tag-demo",
48-
"bit-docs-tag-sourceref": "bit-docs/bit-docs-tag-sourceref"
44+
"bit-docs-prettify": "file:docs/modules/bit-docs-prettify",
45+
"bit-docs-html-highlight-line": "file:docs/modules/bit-docs-html-highlight-line",
46+
"bit-docs-process-mustache": "file:docs/modules/bit-docs-process-mustache",
47+
"bit-docs-tag-demo": "file:docs/modules/bit-docs-tag-demo",
48+
"bit-docs-tag-sourceref": "file:docs/modules/bit-docs-tag-sourceref"
4949
},
5050
"glob": {
5151
"pattern": "docs/**/*.{js,md,mustache}",
@@ -57,7 +57,8 @@
5757
"**/*_test.js",
5858
"**/test_*.js",
5959
"**/test-*.md",
60-
"**/test.js"
60+
"**/test.js",
61+
"**/node_modules/**/*"
6162
]
6263
},
6364
"parent": "BitDocs",

0 commit comments

Comments
 (0)