layer5io / layer5io/sistent

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

Open
#105 4 comments 0 reactions 1 assignee View on GitHub

@nebula-aac is already working on this.

Since Sep 28, 2023.

kind/enhancement
Dominant language
TypeScript
Stars
137
Forks
239
Avg merge
4d 14h
Merged PRs (30d)
5

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.