File tree Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,26 @@ jobs:
44
44
- name : build types
45
45
run : npm run build-types
46
46
47
+ # Pack the lib into a tarball so that when we install the lib later in the
48
+ # test-published-types directory, it's only install `dependencies` of the
49
+ # lib.
50
+ - name : pack the lib
51
+ run : npm run pack --pack-destination /tmp/
52
+
53
+ - name : find the packed lib
54
+ run : echo "ESLINT_PLUGIN_REACT_PATH=$(ls /tmp/eslint-plugin-react*.tgz | tail -n 1)" >> $GITHUB_ENV
55
+
56
+ - name : show the path to the packed lib
57
+ run : echo "$ESLINT_PLUGIN_REACT_PATH"
58
+
47
59
- name : npm install working directory
48
60
run : npm install
49
61
working-directory : test-published-types
50
62
63
+ - name : install packed lib
64
+ run : npm install --no-save "$ESLINT_PLUGIN_REACT_PATH"
65
+ working-directory : test-published-types
66
+
51
67
- name : install typescript version ${{ matrix.ts_version }}
52
68
run : npm install --no-save typescript@${{ matrix.ts_version }}
53
69
working-directory : test-published-types
Original file line number Diff line number Diff line change 3
3
const react = require ( 'eslint-plugin-react' ) ;
4
4
5
5
/** @type {import('eslint').Linter.Config[] } */
6
- module . exports = [
6
+ const config = [
7
7
{
8
8
plugins : {
9
9
react,
10
10
} ,
11
11
} ,
12
12
] ;
13
+
14
+ module . exports = config ;
Original file line number Diff line number Diff line change 3
3
"private" : true ,
4
4
"version" : " 0.0.0" ,
5
5
"dependencies" : {
6
- "eslint" : " ^9.11.1" ,
7
- "eslint-plugin-react" : " file:.."
6
+ "eslint" : " ^9.11.1"
8
7
}
9
8
}
Original file line number Diff line number Diff line change 7
7
8
8
"compilerOptions" : {
9
9
"lib" : [" esnext" ],
10
- "types" : [" node" ]
10
+ "types" : [" node" ],
11
+ "skipLibCheck" : true
11
12
}
12
13
}
You can’t perform that action at this time.
0 commit comments