mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
Make npm test harder to pass (includes jsdoc now)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -18,8 +18,12 @@ function parseDocs(json) {
|
|||||||
console.log('compressing');
|
console.log('compressing');
|
||||||
output = zlib.deflateSync(output).toString('utf8');
|
output = zlib.deflateSync(output).toString('utf8');
|
||||||
}
|
}
|
||||||
console.log('writing to docs.json');
|
if (!process.argv.slice(2).includes('silent')) {
|
||||||
fs.writeFileSync('./docs/docs.json', output);
|
console.log('writing to docs.json');
|
||||||
|
fs.writeFileSync('./docs/docs.json', output);
|
||||||
|
}
|
||||||
|
console.log('done!');
|
||||||
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`using format version ${GEN_VERSION}`);
|
console.log(`using format version ${GEN_VERSION}`);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"description": "A powerful library for interacting with the Discord API",
|
"description": "A powerful library for interacting with the Discord API",
|
||||||
"main": "./src/index",
|
"main": "./src/index",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "eslint src/",
|
"test": "eslint src/ && node docs/generator/generator.js silent",
|
||||||
"docs": "node docs/generator/generator.js"
|
"docs": "node docs/generator/generator.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user