This commit is contained in:
Timo Hocker 2020-04-23 17:44:14 +02:00
parent 4dcfde8316
commit fee3f55300
4 changed files with 13 additions and 5 deletions

View File

@ -22,6 +22,11 @@ fs.writeFileSync ('package.json', JSON.stringify (pkg, null, 2));
child_process.execSync ('yarn lint', { stdio: 'inherit' }); child_process.execSync ('yarn lint', { stdio: 'inherit' });
if (typeof pkg.scripts !== 'undefined' && typeof pkg.scripts.test === 'string') if (typeof pkg.scripts !== 'undefined' && typeof pkg.scripts.test === 'string')
child_process.execSync ('yarn test', { stdio: 'inherit' }); child_process.execSync ('yarn test', { stdio: 'inherit' });
if (
typeof pkg.scripts !== 'undefined'
&& typeof pkg.scripts.compile === 'string'
)
child_process.execSync ('yarn compile', { stdio: 'inherit' });
child_process.exec ('git log -1 | grep \'\\[no publish\\]\'') child_process.exec ('git log -1 | grep \'\\[no publish\\]\'')
.addListener ('exit', (code) => { .addListener ('exit', (code) => {

View File

@ -86,7 +86,10 @@ fs.writeFileSync ('package.json', JSON.stringify (pkg, null, 2));
child_process.execSync ('yarn lint', { stdio: 'inherit' }); child_process.execSync ('yarn lint', { stdio: 'inherit' });
if (typeof pkg.scripts !== 'undefined' && typeof pkg.scripts.test === 'string') if (typeof pkg.scripts !== 'undefined' && typeof pkg.scripts.test === 'string')
child_process.execSync ('yarn test', { stdio: 'inherit' }); child_process.execSync ('yarn test', { stdio: 'inherit' });
if (typeof pkg.scripts !== 'undefined' && typeof pkg.scripts.compile === 'string') if (
typeof pkg.scripts !== 'undefined'
&& typeof pkg.scripts.compile === 'string'
)
child_process.execSync ('yarn compile', { stdio: 'inherit' }); child_process.execSync ('yarn compile', { stdio: 'inherit' });
child_process.exec ('git log -1 | grep \\'\\\\[no publish\\\\]\\'') child_process.exec ('git log -1 | grep \\'\\\\[no publish\\\\]\\'')

View File

@ -23,9 +23,9 @@
"author": "Timo Hocker", "author": "Timo Hocker",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"devDependencies": { "devDependencies": {
"@scode/eslint-config-ts": "^1.0.21", "@scode/eslint-config-ts": "^1.0.22",
"@types/fs-extra": "^8.1.0", "@types/fs-extra": "^8.1.0",
"@types/node": "^13.13.0", "@types/node": "^13.13.2",
"eslint": "^6.8.0", "eslint": "^6.8.0",
"typescript": "^3.8.3" "typescript": "^3.8.3"
}, },

View File

@ -36,7 +36,7 @@
"@scode/eslint-config" "^2.0.1" "@scode/eslint-config" "^2.0.1"
eslint-plugin-import "^2.20.1" eslint-plugin-import "^2.20.1"
"@scode/eslint-config-ts@^1.0.21": "@scode/eslint-config-ts@^1.0.22":
version "1.0.22" version "1.0.22"
resolved "https://npm.scode.ovh/@scode%2feslint-config-ts/-/eslint-config-ts-1.0.22.tgz#bedb57f187f2fca7ca661292b0ce15a26530bd95" resolved "https://npm.scode.ovh/@scode%2feslint-config-ts/-/eslint-config-ts-1.0.22.tgz#bedb57f187f2fca7ca661292b0ce15a26530bd95"
integrity sha512-QwRen8tNC/b4XtdIADr5J4WNM58f5lryINcLBObTzZVQfjr8Qlz7AkwgxFN57u//iP3fCXzn4nPI89J2ift7Hw== integrity sha512-QwRen8tNC/b4XtdIADr5J4WNM58f5lryINcLBObTzZVQfjr8Qlz7AkwgxFN57u//iP3fCXzn4nPI89J2ift7Hw==
@ -76,7 +76,7 @@
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.4.tgz#38fd73ddfd9b55abb1e1b2ed578cb55bd7b7d339" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.4.tgz#38fd73ddfd9b55abb1e1b2ed578cb55bd7b7d339"
integrity sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA== integrity sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==
"@types/node@*", "@types/node@^13.13.0": "@types/node@*", "@types/node@^13.13.2":
version "13.13.2" version "13.13.2"
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.13.2.tgz#160d82623610db590a64e8ca81784e11117e5a54" resolved "https://registry.yarnpkg.com/@types/node/-/node-13.13.2.tgz#160d82623610db590a64e8ca81784e11117e5a54"
integrity sha512-LB2R1Oyhpg8gu4SON/mfforE525+Hi/M1ineICEDftqNVTyFg1aRIeGuTvXAoWHc4nbrFncWtJgMmoyRvuGh7A== integrity sha512-LB2R1Oyhpg8gu4SON/mfforE525+Hi/M1ineICEDftqNVTyFg1aRIeGuTvXAoWHc4nbrFncWtJgMmoyRvuGh7A==