@gopowerteam/request-generate 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -16,8 +16,6 @@ let _apidevtools_swagger_parser = require("@apidevtools/swagger-parser");
16
16
  _apidevtools_swagger_parser = require_chunk.__toESM(_apidevtools_swagger_parser);
17
17
  let node_crypto = require("node:crypto");
18
18
  node_crypto = require_chunk.__toESM(node_crypto);
19
- let rimraf = require("rimraf");
20
- rimraf = require_chunk.__toESM(rimraf);
21
19
 
22
20
  //#region src/utils/get-services-options.ts
23
21
  /**
@@ -982,7 +980,10 @@ function writeModel(model, output) {
982
980
  function writeModels(client, options) {
983
981
  if (!options.exportModels || !client.models) return;
984
982
  const output = node_path.join(options.output, "models");
985
- if (node_fs.existsSync(output)) rimraf.default.sync(output);
983
+ if (node_fs.existsSync(output)) node_fs.rmSync(output, {
984
+ recursive: true,
985
+ force: true
986
+ });
986
987
  node_fs.mkdirSync(output, { recursive: true });
987
988
  client.models.forEach((model) => {
988
989
  const filename = `${model.name}.ts`;
@@ -1008,7 +1009,10 @@ function writeService(service, output) {
1008
1009
  function writeServices(client, options) {
1009
1010
  if (!client.services) return;
1010
1011
  const output = node_path.join(options.output, "services");
1011
- if (node_fs.existsSync(output)) rimraf.default.sync(output);
1012
+ if (node_fs.existsSync(output)) node_fs.rmSync(output, {
1013
+ recursive: true,
1014
+ force: true
1015
+ });
1012
1016
  node_fs.mkdirSync(output, { recursive: true });
1013
1017
  client.services.forEach((service) => {
1014
1018
  const filename = `${service.name}Service.ts`;
package/dist/index.mjs CHANGED
@@ -9,7 +9,6 @@ import { fileURLToPath } from "node:url";
9
9
  import Handlebars from "handlebars";
10
10
  import swaggerParse from "@apidevtools/swagger-parser";
11
11
  import crypto from "node:crypto";
12
- import rimraf from "rimraf";
13
12
 
14
13
  //#region src/utils/get-services-options.ts
15
14
  /**
@@ -980,7 +979,10 @@ function writeModel(model, output) {
980
979
  function writeModels(client, options) {
981
980
  if (!options.exportModels || !client.models) return;
982
981
  const output = path$1.join(options.output, "models");
983
- if (fs$1.existsSync(output)) rimraf.sync(output);
982
+ if (fs$1.existsSync(output)) fs$1.rmSync(output, {
983
+ recursive: true,
984
+ force: true
985
+ });
984
986
  fs$1.mkdirSync(output, { recursive: true });
985
987
  client.models.forEach((model) => {
986
988
  const filename = `${model.name}.ts`;
@@ -1006,7 +1008,10 @@ function writeService(service, output) {
1006
1008
  function writeServices(client, options) {
1007
1009
  if (!client.services) return;
1008
1010
  const output = path$1.join(options.output, "services");
1009
- if (fs$1.existsSync(output)) rimraf.sync(output);
1011
+ if (fs$1.existsSync(output)) fs$1.rmSync(output, {
1012
+ recursive: true,
1013
+ force: true
1014
+ });
1010
1015
  fs$1.mkdirSync(output, { recursive: true });
1011
1016
  client.services.forEach((service) => {
1012
1017
  const filename = `${service.name}Service.ts`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gopowerteam/request-generate",
3
3
  "type": "commonjs",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "private": false,
6
6
  "keywords": [
7
7
  "gopowerteam",
@@ -43,14 +43,12 @@
43
43
  "handlebars": "^4.7.8",
44
44
  "ora": "^9.3.0",
45
45
  "qs": "^6.15.0",
46
- "rimraf": "^6.1.3",
47
46
  "rxjs": "^7.8.2",
48
47
  "tsx": "^4.21.0"
49
48
  },
50
49
  "devDependencies": {
51
50
  "@types/node": "24",
52
51
  "@types/qs": "^6.14.0",
53
- "@types/rimraf": "^3.0.2",
54
52
  "openapi-types": "^12.1.3",
55
53
  "tsdown": "0.21.0-beta.2",
56
54
  "typescript": "^5.9.3",