File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 23
23
24
24
- uses : actions/checkout@v3
25
25
with :
26
+ fetch-depth : 0
26
27
token : ${{ secrets.TINKOFF_BOT_PAT }}
27
28
28
29
- uses : actions/setup-node@v3
36
37
- name : Build
37
38
run : npm run build
38
39
40
+ - name : Copy declaration files
41
+ run : npm run copy-declaration-files
42
+
39
43
- name : Release
40
44
run : npm run release
41
45
env :
Original file line number Diff line number Diff line change 10
10
"prebenchmark" : " npm install --no-save ts-node lodash ramda lazy.js underscore" ,
11
11
"docs" : " node ./generate/docs/index.js" ,
12
12
"test" : " jest --coverage" ,
13
- "test:ci" : " npm run test -- --maxWorkers=50%"
13
+ "test:ci" : " npm run test -- --maxWorkers=50%" ,
14
+ "copy-declaration-files" : " node tools/copy-declaration-files.js"
14
15
},
15
16
"description" : " Fast, small and purely functional utility library" ,
16
17
"repository" : " https://github.com/Tinkoff/utils.js" ,
23
24
" curry" ,
24
25
" performance"
25
26
],
27
+ "files" : [
28
+ " build" ,
29
+ " .npmignore" ,
30
+ " CHANGELOG.md"
31
+ ],
26
32
"sideEffects" : false ,
27
33
"license" : " Apache-2.0" ,
28
34
"devDependencies" : {
Original file line number Diff line number Diff line change
1
+ const path = require ( 'path' ) ;
2
+ const fsExtra = require ( 'fs-extra' ) ;
3
+ const recursiveReadSync = require ( 'recursive-readdir-sync' ) ;
4
+
5
+ Promise . all (
6
+ recursiveReadSync ( path . join ( __dirname , '..' , 'ts_temp' ) )
7
+ . filter ( fileName => fileName . endsWith ( '.d.ts' ) )
8
+ . map ( fileName =>
9
+ fsExtra . copy (
10
+ fileName ,
11
+ fileName . replace ( 'ts_temp' , 'build' )
12
+ )
13
+ )
14
+ ) ;
You can’t perform that action at this time.
0 commit comments