Skip to content

Commit

Permalink
chore: v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
long-woo committed Sep 6, 2024
1 parent fd8e57b commit a1ae8ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[![JSR](https://jsr.io/badges/@loongwoo/stc)](https://jsr.io/@loongwoo/stc)

STC (Swagger Transform Code) is a tool for converting Swagger(OpenApi) documents into code files.
STC (Swagger Transform Code) is a tool for converting OpenApi/Swagger/Apifox into code.

![Publish to release](https://github.com/long-woo/stc/actions/workflows/deno-build.yml/badge.svg)
[![Publish Package to npmjs](https://github.com/long-woo/stc/actions/workflows/npm.yml/badge.svg)](https://github.com/long-woo/stc/actions/workflows/npm.yml)
Expand Down Expand Up @@ -149,7 +149,7 @@ Create a `myPlugin.ts` file:

```ts
// 引用模块
import { start } from 'https://deno.land/x/stc@2.0.0/mod.ts'
import { start } from 'https://deno.land/x/stc@2.1.0/mod.ts'

// Defining plugins
const myPlugin: IPlugin = {
Expand Down
4 changes: 2 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@loongwoo/stc",
"version": "2.0.0",
"version": "2.1.0",
"exports": "./mod.ts",
"tasks": {
"pack": "deno run -A src/pack.ts",
"dev": "deno task pack && deno run -A --watch=src src/main.ts --url 'https://petstore3.swagger.io/api/v3/openapi.json'",
"serve": "deno run -A --watch=src src/service.ts",
"version": "echo '2.0.0' > release/version",
"version": "echo '2.1.0' > release/version",
"build:npm": "deno run -A src/npm/build.ts",
"build:mac": "deno compile -A --target x86_64-apple-darwin --output release/stc src/main.ts",
"build:mac-m": "deno compile -A --target aarch64-apple-darwin --output release/stc-m src/main.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/npm/pkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@loongwoo/stc",
"version": "2.0.0",
"description": "OpenApi/Swagger/Apifox document conversion tool.\nOpenAPI(Swagger)、Apifox 文档转换为接口文件。",
"version": "2.1.0",
"description": "A tool for converting OpenApi/Swagger/Apifox into code.",
"type": "module",
"module": "esm/mod.js",
"types": "esm/mod.d.ts",
Expand Down

0 comments on commit a1ae8ab

Please sign in to comment.