Skip to content

Commit

Permalink
Fix script for cli workspace tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Oct 23, 2023
1 parent e726829 commit a91d883
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
12 changes: 11 additions & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"template-oss-apply": "template-oss-apply --force",
"lintfix": "npm run lint -- --fix",
"snap": "tap",
"test": "jest",
"test": "tap",
"posttest": "npm run lint",
"format": "prettier --write ."
},
Expand Down Expand Up @@ -41,5 +41,15 @@
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.19.0",
"content": "./scripts/template-oss"
},
"files": [
"bin/",
"lib/"
],
"tap": {
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
}
}
3 changes: 1 addition & 2 deletions cli/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ const navPath = resolve(
__dirname,
'..',
'..',
'src',
'theme',
'content',
'nav.yml'
)

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"postlint": "template-oss-check",
"template-oss-apply": "template-oss-apply --force",
"lintfix": "npm run lint -- --fix",
"snap": "tap",
"test": "jest",
"posttest": "npm run lint",
"test-all": "npm run test -ws -iwr --if-present",
Expand Down
6 changes: 0 additions & 6 deletions scripts/template-oss/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ module.exports = {
'.github/settings.yml': false,
},
},
workspaceModule: {
add: {
'package.json': {file: 'pkg.json', overwrite: false},
'.eslintrc.js': false,
},
},
ciVersions: 'latest',
latestCiVersion: 18,
macCI: false,
Expand Down
1 change: 1 addition & 0 deletions scripts/template-oss/pkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"scripts": {
"test": "jest",
"snap": {{{ del }}},
"format": "prettier --write ."
},
"files": {{{ del }}},
Expand Down

0 comments on commit a91d883

Please sign in to comment.