typedoc-markdown-theme icon indicating copy to clipboard operation
typedoc-markdown-theme copied to clipboard

how should I build the theme?

Open danbars opened this issue 8 years ago • 1 comments

When I run npm install it fails on bundle.d.ts not found. Here's the full log:

npm WARN prepublish-on-install As of npm@5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.

> [email protected] prepublish /Users/****/dev/playground/typedoc/typedoc-markdown-theme
> npm test && mv ./src/theme.js ./bin


> [email protected] test /Users/****/dev/playground/typedoc/typedoc-markdown-theme
> tsc && nodeunit ./test

error TS6053: File 'typings/bundle.d.ts' not found.
npm ERR! Test failed.  See above for more details.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prepublish: `npm test && mv ./src/theme.js ./bin`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/****/.npm/_logs/2017-11-13T13_10_29_639Z-debug.log

What am I doing wrong? I'm new to typescript, so sorry if I miss something obvious.

danbars avatar Nov 13 '17 13:11 danbars

OK, I figured that I have to run dtsm before npm install. But typedoc module still cannot be found after that.

$ npm i
npm WARN prepublish-on-install As of npm@5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.

> [email protected] prepublish /Users/****/dev/playground/typedoc/typedoc-markdown-theme
> npm test && mv ./src/theme.js ./bin


> [email protected] test /Users/****/dev/playground/typedoc/typedoc-markdown-theme
> tsc && nodeunit ./test

src/theme.ts(1,21): error TS2307: Cannot find module 'typedoc'.
src/theme.ts(49,39): error TS7006: Parameter 'urlMapping' implicitly has an 'any' type.
test/theme_test.ts(3,21): error TS2307: Cannot find module 'typedoc'.
test/theme_test.ts(86,9): error TS7018: Object literal's property 'parent' implicitly has an 'any' type.
test/theme_test.ts(95,13): error TS7018: Object literal's property 'parent' implicitly has an 'any' type.
test/theme_test.ts(103,17): error TS7018: Object literal's property 'parent' implicitly has an 'any' type.
test/theme_test.ts(104,17): error TS7018: Object literal's property 'children' implicitly has an 'any[]' type.
npm ERR! Test failed.  See above for more details.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prepublish: `npm test && mv ./src/theme.js ./bin`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/****/.npm/_logs/2017-11-13T13_52_01_751Z-debug.log

danbars avatar Nov 13 '17 13:11 danbars