Skip to content

[rtk-query-codegen] Update package.json with the scripts in order to generate the api.js file #105

Open
@nebula-aac

Description

@nebula-aac

In the current package.json file

{
  "name": "@layer5/rtk-query-codegen",
  "version": "0.0.1",
  "description": "Codegen to create rtk-query api from openapi schema",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "bin": {
    "rtk-query-codegen": "./app.js"
  },
  "author": "",
  "dependencies": {
    "@reduxjs/toolkit": "^1.9.6",
    "@rtk-query/codegen-openapi": "^1.0.0",
    "commander": "^11.0.0",
    "prettier-plugin-organize-imports": "^3.2.3",
    "ts-node": "^10.9.1"
  }
}

There is no scripts in place to build the generated file. The README.md instructions state to install Typescript globally, and this is not needed as this is already installed locally within yarn workspace by using yarn install at the root level.


Contributor Guide

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions