graphql-tools-bchen
v0.11.1
Published
A set of useful tools for GraphQL
Downloads
2
Maintainers
Readme
publish a npm package
login to npm via npm adduser
if username exists, login; otherwise signup
$ npm adduser --registry=https://registry.npmjs.org
Username: bochen2014
Password: Op*\*do\*0*
Email: (this IS public) [email protected]
Logged in as bochen2014 on https://registry.npmjs.org/.
make sure you have prepublish
defined
package.json
{
"prepublish": "tsc",
"main": "dist/index.js", // only this file ,along with its referenced file**S**, are uploaded
}
tsconfig.json
{
"rootDir": "./src",
"outDir": "./dist",
}
run npm publish --registry=https://registry.npmjs.org
$ npm publish --registry=https://registry.npmjs.org
> [email protected] prepublish D:\graphql-tools
> npm run compile
> [email protected] compile D:\graphql-tools
> tsc
+ [email protected]