Fix script for cli workspace tests
Luke Karrys committed
Oct 16, 2023 at 09:25 UTC
a91d883944ed859527fdf85a0f6f68075e4e7682
5 files changed
+13
-10
cli/package.json
+11
-1
@@ -13,7 +13,7 @@
13
"template-oss-apply": "template-oss-apply --force",
14
"lintfix": "npm run lint -- --fix",
15
"snap": "tap",
16
- "test": "jest",
16
+ "test": "tap",
17
"posttest": "npm run lint",
18
"format": "prettier --write ."
19
},
@@ -41,5 +41,15 @@
41
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
42
"version": "4.19.0",
43
"content": "./scripts/template-oss"
44
+ },
45
+ "files": [
46
+ "bin/",
47
+ "lib/"
48
+ ],
49
+ "tap": {
50
+ "nyc-arg": [
51
+ "--exclude",
52
+ "tap-snapshots/**"
53
+ ]
54
}
55
}
cli/test/index.js
+1
-2
@@ -9,8 +9,7 @@ const navPath = resolve(
9
__dirname,
10
'..',
11
'..',
12
- 'src',
13
- 'theme',
12
+ 'content',
13
'nav.yml'
14
)
15
package.json
-1
@@ -16,7 +16,6 @@
16
"postlint": "template-oss-check",
17
"template-oss-apply": "template-oss-apply --force",
18
"lintfix": "npm run lint -- --fix",
19
- "snap": "tap",
19
"test": "jest",
20
"posttest": "npm run lint",
21
"test-all": "npm run test -ws -iwr --if-present",
scripts/template-oss/index.js
-6
@@ -22,12 +22,6 @@ module.exports = {
22
'.github/settings.yml': false,
23
},
24
},
25
- workspaceModule: {
26
- add: {
27
- 'package.json': {file: 'pkg.json', overwrite: false},
28
- '.eslintrc.js': false,
29
- },
30
- },
25
ciVersions: 'latest',
26
latestCiVersion: 18,
27
macCI: false,
scripts/template-oss/pkg.json
+1
@@ -1,6 +1,7 @@
1
{
2
"scripts": {
3
"test": "jest",
4
+ "snap": {{{ del }}},
5
"format": "prettier --write ."
6
},
7
"files": {{{ del }}},