mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
refactor: update package.json recommendations
This commit is contained in:
@@ -796,7 +796,7 @@ export function getRules(configuration: Configuration): Rules {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (configuration.forPackaging) {
|
if (configuration.forPackaging) {
|
||||||
scripts.prepublishOnly = 'npm ci && npm run build';
|
scripts.prepublishOnly = 'npm ci && npm run build && npm run test';
|
||||||
|
|
||||||
files.push(path.join('templates', '.npmignore'));
|
files.push(path.join('templates', '.npmignore'));
|
||||||
} else {
|
} else {
|
||||||
@@ -805,7 +805,7 @@ export function getRules(configuration: Configuration): Rules {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (configuration.serverSide) {
|
if (configuration.serverSide) {
|
||||||
dependencies.push('@types/node:^10.0.0');
|
devDependencies.push('@types/node:^14.0.0');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (configuration.standardBuild || configuration.hasCli) {
|
if (configuration.standardBuild || configuration.hasCli) {
|
||||||
@@ -820,9 +820,9 @@ export function getRules(configuration: Configuration): Rules {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (configuration.standardDocumentation) {
|
if (configuration.standardDocumentation) {
|
||||||
devDependencies.push('typedoc');
|
devDependencies.push('typedoc:0.22.x');
|
||||||
scripts.documentation =
|
scripts.documentation =
|
||||||
'typedoc --includeDeclarations --mode modules --out docs --readme README.md --listInvalidSymbolLinks --entryPointStrategy expand src';
|
'typedoc --out docs --readme README.md --listInvalidSymbolLinks --entryPointStrategy expand src';
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const ignoreScript of configuration.ignoreScripts) {
|
for (const ignoreScript of configuration.ignoreScripts) {
|
||||||
|
|||||||
Reference in New Issue
Block a user