This commit is contained in:
parent
5a3c7574aa
commit
95c90f2877
@ -34,7 +34,6 @@ const packages = {
|
|||||||
'@types/jasmine'
|
'@types/jasmine'
|
||||||
],
|
],
|
||||||
test_ts: [
|
test_ts: [
|
||||||
'jasmine-ts',
|
|
||||||
'ts-node'
|
'ts-node'
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -66,7 +65,7 @@ async function init_package (
|
|||||||
);
|
);
|
||||||
|
|
||||||
await modify_json ((obj: Record<string, unknown>) => {
|
await modify_json ((obj: Record<string, unknown>) => {
|
||||||
const scripts
|
const scripts: Record<string, string>
|
||||||
= {
|
= {
|
||||||
lint: standard_scripts.lint,
|
lint: standard_scripts.lint,
|
||||||
test: standard_scripts.test.common,
|
test: standard_scripts.test.common,
|
||||||
@ -76,7 +75,9 @@ async function init_package (
|
|||||||
|
|
||||||
if (use_ts) {
|
if (use_ts) {
|
||||||
scripts.compile = standard_scripts.compile.ts;
|
scripts.compile = standard_scripts.compile.ts;
|
||||||
|
scripts.pretest = standard_scripts.test.ts_pre;
|
||||||
scripts.test = standard_scripts.test.ts;
|
scripts.test = standard_scripts.test.ts;
|
||||||
|
scripts.posttest = standard_scripts.test.ts_post;
|
||||||
files.push ('/dist/');
|
files.push ('/dist/');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
"typescript": "^4.0.2"
|
"typescript": "^4.0.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sapphirecode/standard": "^1.0.1",
|
"@sapphirecode/standard": "^1.5.4",
|
||||||
"enquirer": "^2.3.5",
|
"enquirer": "^2.3.5",
|
||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
"license": "^1.0.3"
|
"license": "^1.0.3"
|
||||||
|
@ -98,10 +98,10 @@
|
|||||||
eslint-plugin-node "^11.1.0"
|
eslint-plugin-node "^11.1.0"
|
||||||
eslint-plugin-sort-requires-by-path "^1.0.2"
|
eslint-plugin-sort-requires-by-path "^1.0.2"
|
||||||
|
|
||||||
"@sapphirecode/standard@^1.0.1":
|
"@sapphirecode/standard@^1.5.4":
|
||||||
version "1.5.3"
|
version "1.5.4"
|
||||||
resolved "https://registry.yarnpkg.com/@sapphirecode/standard/-/standard-1.5.3.tgz#d6b8a1f40be6e64bbcfa283db27babe8d641e105"
|
resolved "https://registry.yarnpkg.com/@sapphirecode/standard/-/standard-1.5.4.tgz#623688db930635f30fe165e829ce91b61bb0f609"
|
||||||
integrity sha512-iSVtXOShhPBz9lSx3vo+Mh7ph6nV9xcJEgmoA0j08QYpao6WWj2k55j517p/skMbH9m/3SLIZN1Rhy0QTUFZFQ==
|
integrity sha512-fv7Cm5xdTe1SGJoqk9fT6NJbpvp6vVyFw2JYFNiCy486xTZ14QdARWd3lSKUwRyOrGM+p4qKg4rFioSSjxbqdA==
|
||||||
|
|
||||||
"@types/fs-extra@^9.0.0":
|
"@types/fs-extra@^9.0.0":
|
||||||
version "9.0.13"
|
version "9.0.13"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user