14 files changed +1322
-6243
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,15 @@ extends:
8
8
- " @jsdevtools"
9
9
- " prettier"
10
10
11
+ parserOptions :
12
+ project :
13
+ - " tsconfig.json"
14
+
15
+ overrides :
16
+ - files : ["**/*.mjs"]
17
+ parserOptions :
18
+ ecmaVersion : " latest"
19
+ sourceType : " module"
20
+
11
21
env :
12
22
node : true
Original file line number Diff line number Diff line change 26
26
os :
27
27
- ubuntu-latest
28
28
- macos-latest
29
- # TODO(mc, 2023-04-07): investigate and fix coverage-related failures on Windows
30
- # - windows-latest
29
+ - windows-latest
31
30
node :
32
31
- 16
33
32
- 18
54
53
run : npm run coverage
55
54
56
55
- name : Send code coverage results to Coveralls
57
- uses : coverallsapp/github-action@v1.1.0
56
+ uses : coverallsapp/github-action@67662d24394fd74bffcf7b462d1b432814159afd
58
57
with :
59
- github-token : ${{ secrets.GITHUB_TOKEN }}
60
58
parallel : true
61
59
62
60
coverage :
66
64
needs : test
67
65
steps :
68
66
- name : Let Coveralls know that all tests have finished
69
- uses : coverallsapp/github-action@v1.1.0
67
+ uses : coverallsapp/github-action@67662d24394fd74bffcf7b462d1b432814159afd
70
68
with :
71
- github-token : ${{ secrets.GITHUB_TOKEN }}
72
69
parallel-finished : true
73
70
74
71
deploy :
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ nbproject
27
27
.lock-wscript
28
28
29
29
# Logs
30
- / logs
30
+ logs
31
31
* .log
32
32
33
33
# Runtime data
36
36
* .seed
37
37
38
38
# Dependencies
39
- / node_modules
39
+ node_modules
40
40
41
41
# Build output
42
- / lib
42
+ lib
43
43
44
44
# Test output
45
- / .nyc_output
46
- / coverage
45
+ .nyc_output
46
+ coverage
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ extension:
5
5
- .js
6
6
- .ts
7
7
8
+ exclude :
9
+ - test
10
+
8
11
reporter :
9
12
- text
10
13
- lcov
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ npm install @jsdevtools/npm-publish
109
109
You can then import it and use it in your code like this :
110
110
111
111
` ` ` javascript
112
- const npmPublish = require("@jsdevtools/npm-publish");
112
+ const { npmPublish } = require("@jsdevtools/npm-publish");
113
113
114
114
// Run npm-publish with all defaults
115
115
await npmPublish();
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
"use strict" ;
3
- const { main } = require ( "../lib/cli" ) ;
4
- main ( process . argv . slice ( 2 ) ) ;
3
+ const { version } = require ( "../package.json" ) ;
4
+ const { main } = require ( "../lib/cli/index.js" ) ;
5
+
6
+ main ( process . argv . slice ( 2 ) , version ) ;
Original file line number Diff line number Diff line change
1
+ import * as esbuild from "esbuild" ;
2
+
3
+ await esbuild . build ( {
4
+ entryPoints : [ "src/action/index.ts" ] ,
5
+ platform : "node" ,
6
+ target : "node16" ,
7
+ bundle : true ,
8
+ sourcemap : true ,
9
+ outdir : "dist" ,
10
+ } ) ;
0 commit comments