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 33 "version" : " 1.3.0" ,
44 "description" : " Check where the code is running in the browser or node.js" ,
55 "main" : " ./lib/index.js" ,
6+ "types" : " ./lib/index.d.ts" ,
67 "scripts" : {
78 "clean" : " rimraf lib" ,
89 "test" : " npm run cover" ,
1112 "test:examples" : " node examples/" ,
1213 "cover" : " cross-env BABEL_ENV=commonjs istanbul cover node_modules/mocha/bin/_mocha -- --require babel-core/register --recursive" ,
1314 "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 " ,
1516 "prepublish" : " npm run clean && npm run lint && npm run test && npm run build"
1617 },
1718 "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