File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 1.3.0" ,
4
4
"description" : " Check where the code is running in the browser or node.js" ,
5
5
"main" : " ./lib/index.js" ,
6
+ "types" : " ./lib/index.d.ts" ,
6
7
"scripts" : {
7
8
"clean" : " rimraf lib" ,
8
9
"test" : " npm run cover" ,
11
12
"test:examples" : " node examples/" ,
12
13
"cover" : " cross-env BABEL_ENV=commonjs istanbul cover node_modules/mocha/bin/_mocha -- --require babel-core/register --recursive" ,
13
14
"lint" : " eslint src" ,
14
- "build" : " cross-env BABEL_ENV=commonjs babel src --out-dir lib" ,
15
+ "build" : " cross-env BABEL_ENV=commonjs babel src --out-dir lib --copy-files " ,
15
16
"prepublish" : " npm run clean && npm run lint && npm run test && npm run build"
16
17
},
17
18
"files" : [
Original file line number Diff line number Diff line change
1
+ export declare const isBrowser : boolean ;
2
+ export declare const isWebWorker : boolean ;
3
+ export declare const isNode : boolean ;
You can’t perform that action at this time.
0 commit comments