@blockfrost/openapi
Advanced tools
Comparing version 0.1.44-beta.7 to 0.1.44-beta.8
@@ -10,3 +10,3 @@ "use strict"; | ||
const yaml_1 = __importDefault(require("yaml")); | ||
const file = fs_1.default.readFileSync(path_1.default.resolve('openapi.yaml'), 'utf8'); | ||
const file = fs_1.default.readFileSync(path_1.default.resolve(__dirname, '../openapi.yaml'), 'utf8'); | ||
const spec = yaml_1.default.parse(file); | ||
@@ -13,0 +13,0 @@ const getSchemaForEndpoint = (endpointName) => { |
{ | ||
"name": "@blockfrost/openapi", | ||
"version": "0.1.44-beta.7", | ||
"version": "0.1.44-beta.8", | ||
"description": "OpenAPI specifications for blockfrost.io", | ||
@@ -10,3 +10,4 @@ "repository": "git@github.com:blockfrost/openapi.git", | ||
"files": [ | ||
"lib/**/*" | ||
"lib/**/*", | ||
"openapi.yaml" | ||
], | ||
@@ -18,3 +19,3 @@ "scripts": { | ||
"generate-types": "openapi-typescript ./openapi.yaml --output ./src/generated-types.ts", | ||
"build": "rimraf lib && yarn bundle && yarn generate-types && yarn generate-docs && yarn tsc && cp ./openapi.yaml lib/openapi.yaml", | ||
"build": "rimraf lib && yarn bundle && yarn generate-types && yarn generate-docs && yarn tsc", | ||
"test": "vitest" | ||
@@ -21,0 +22,0 @@ }, |
504655