From 8aa487225a9d46d24a94eca873bfb7e582e27125 Mon Sep 17 00:00:00 2001 From: Junxiao Shi Date: Sat, 18 Jul 2020 08:57:08 -0400 Subject: [PATCH] chore: add types and remove references to unused files --- index.d.ts | 1 + package-lock.json | 9 ++++++++- package.json | 11 ++++------- 3 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..05add9f --- /dev/null +++ b/index.d.ts @@ -0,0 +1 @@ +export * from "@root/asn1"; diff --git a/package-lock.json b/package-lock.json index 47c34d8..0d80956 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,8 @@ "version": "1.0.1", "license": "MPL-2.0", "dependencies": { - "@root/encoding": "^1.0.1" + "@root/encoding": "^1.0.1", + "@types/root__asn1": "^1.0.0" }, "devDependencies": { "@root/pem": "^1.0.4" @@ -27,6 +28,12 @@ "integrity": "sha512-rEUDiUsHtild8GfIjFE9wXtcVxeS+ehCJQBwbQQ3IVfORKHK93CFnRtkr69R75lZFjcmKYVc+AXDB+AeRFOULA==", "dev": true, "license": "MPL-2.0" + }, + "node_modules/@types/root__asn1": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/root__asn1/-/root__asn1-1.0.5.tgz", + "integrity": "sha512-halz3HrALf1N4pUJrtQrH6mdWPczXwshoWjuxmx49riKMJv2MZGKXnauk0RjlnRzM0rlwiAJRlMT9FtSjnF2kw==", + "license": "MIT" } } } diff --git a/package.json b/package.json index 5f19859..6b7da19 100644 --- a/package.json +++ b/package.json @@ -3,13 +3,9 @@ "version": "1.0.1", "description": "VanillaJS, Lightweight, Zero-Dependency, ASN.1 encoder and decoder.", "main": "index.js", - "browser": { - "./node/native.js": "./browser/native.js" - }, "files": [ "*.js", - "node", - "browser", + "*.d.ts", "dist" ], "scripts": { @@ -22,7 +18,7 @@ }, "repository": { "type": "git", - "url": "https://git.rootprojects.org/root/asn1.js.git" + "url": "https://github.com/therootcompany/asn1.js.git" }, "keywords": [ "ASN.1", @@ -36,6 +32,7 @@ "@root/pem": "^1.0.4" }, "dependencies": { - "@root/encoding": "^1.0.1" + "@root/encoding": "^1.0.1", + "@types/root__asn1": "^1.0.0" } }