diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 477aa643..1a9369c7 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 579b6a6d..dbe61121 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.5.3] - 2021-06-22 + +### Fixed + +- build + ## [0.5.2] - 2021-06-21 ### Fixed diff --git a/package.json b/package.json index 1ebf4fc6..cd0240b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@blockfrost/blockfrost-js", - "version": "0.5.2", + "version": "0.5.3", "description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API", "files": [ "lib/**/*.js", @@ -13,7 +13,7 @@ ], "license": "Apache-2.0", "author": "blockfrost.io", - "main": "lib/src/index.js", + "main": "lib/index.js", "scripts": { "build": "yarn clean && tsc", "prepublishOnly": "yarn build", diff --git a/src/index.ts b/src/index.ts index 0f91861c..20925383 100644 --- a/src/index.ts +++ b/src/index.ts @@ -96,7 +96,8 @@ import { import { Options } from './types'; import join from 'url-join'; import { validateOptions } from './utils'; -import * as packageJson from '../package.json'; +// eslint-disable-next-line @typescript-eslint/no-var-requires +const packageJson = require('../package.json'); class BlockFrostAPI { apiUrl: string; diff --git a/test/tests/utils.ts b/test/tests/utils.ts index ee1f00f4..d95eb54d 100644 --- a/test/tests/utils.ts +++ b/test/tests/utils.ts @@ -1,6 +1,7 @@ import { BlockFrostAPI } from '../../src/index'; import * as utils from '../../src/utils'; -import * as packageJson from '../../package.json'; +// eslint-disable-next-line @typescript-eslint/no-var-requires +const packageJson = require('../../package.json'); describe('utils', () => { test('no options', () => { diff --git a/tsconfig.json b/tsconfig.json index 913bf52a..3c5b9905 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,10 +19,8 @@ "noFallthroughCasesInSwitch": true, "esModuleInterop": true, "skipLibCheck": true, - "resolveJsonModule": true, "forceConsistentCasingInFileNames": true }, "include": ["src/**/*"], "exclude": ["./src/types/OpenApi.ts"], - "outDir": "lib" }