From 73b33efe7f3d98218c3aeb4a3488166d55db39b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Petruni=C4=87?= Date: Fri, 7 Feb 2020 14:38:40 +0100 Subject: [PATCH] Release 1.0.0-rc2 --- .github/workflows/npm-publish.yml | 2 ++ package.json | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 3073580..b385926 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -14,6 +14,8 @@ jobs: uses: actions/setup-node@master with: node-version: 12.4.0 + - name: Build library + run: yarn install --frozen-lockfile && yarn run build - name: Publish if version has been updated uses: pascalgn/npm-publish-action@51fdb4531e99aac1873764ef7271af448dc42ab4 with: # All of theses inputs are optional diff --git a/package.json b/package.json index 8cfbc44..df3e0a8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "name": "libp2p-noise", - "version": "1.0.0-rc1", + "version": "1.0.0-rc2", "main": "dist/index.js", + "types": "dist/index.d.ts", "module": "lib/index.js", "files": [ "dist", @@ -18,9 +19,10 @@ ], "scripts": { "prebuild": "rm -rf lib && rm -rf dist", - "build": "yarn run build:node && yarn run build:web", + "build": "yarn run build:node && yarn run build:web && yarn run build:types", "build:node": "babel --config-file ./babel.config.json src -x .ts -d dist --source-maps", "build:web": "babel --config-file ./babel.web.config.json src -x .ts -d lib --source-maps", + "build:types": "tsc --declaration --outDir dist --emitDeclarationOnly", "check-types": "tsc --incremental --noEmit", "lint": "eslint --ext .ts src/", "pretest": "yarn check-types",