Adding index.ts for bundling request and type
All checks were successful
the build was successful

This commit is contained in:
Fabian Stamm 2018-05-19 16:59:44 +02:00
parent 23c27c3c4f
commit e8dcf31461
5 changed files with 17 additions and 3 deletions

4
lib/index.d.ts vendored Normal file
View File

@ -0,0 +1,4 @@
import * as Types from "./types";
import * as Request from "./request";
declare const _default: typeof Types & typeof Request;
export = _default;

5
lib/index.js Normal file
View File

@ -0,0 +1,5 @@
"use strict";
const Types = require("./types");
const Request = require("./request");
module.exports = Object.assign({}, Types, Request);
//# sourceMappingURL=index.js.map

1
lib/index.js.map Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,iCAAiC;AACjC,qCAAoC;AAEpC,iBAAU,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC"}

View File

@ -1,8 +1,8 @@
{
"name": "nodename-core",
"version": "0.1.10",
"main": "lib/listener.js",
"types": "lib/listener.d.ts",
"version": "0.1.12",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"author": "Fabian Stamm <dev@fabianstamm.de>",
"license": "MIT",
"scripts": {

4
src/index.ts Normal file
View File

@ -0,0 +1,4 @@
import * as Types from "./types";
import * as Request from "./request"
export = Object.assign({}, Types, Request);