Skip to content

Commit

Permalink
chore(tsoa-deno): Rename tsoa to tsoa-deno
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Amhild committed Mar 10, 2024
1 parent b975cb8 commit 001ade5
Show file tree
Hide file tree
Showing 143 changed files with 200 additions and 209 deletions.
2 changes: 1 addition & 1 deletion deno-example/example/example-controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Route, Body, Post, Get, Controller } from "@tsoa/runtime";
import { Route, Body, Post, Get, Controller } from "@tsoa-deno/runtime";

interface EmbeddingRequest {
input?: string
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.1.0",
"version": "6.1.0-rc.3",
"npmClient": "yarn",
"command": {
"version": {
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@tsoa/cli",
"name": "@tsoa-deno/cli",
"description": "Build swagger-compliant REST APIs using TypeScript and Node / Deno",
"version": "6.1.0-rc.3",
"main": "./dist/index.js",
Expand Down Expand Up @@ -32,7 +32,7 @@
"author": "Luke Autry <lukeautry@gmail.com> (http://www.lukeautry.com)",
"license": "MIT",
"dependencies": {
"@tsoa/runtime": "^6.1.0-rc.3",
"@tsoa-deno/runtime": "^6.1.0-rc.3",
"@types/multer": "^1.4.11",
"fs-extra": "^11.2.0",
"glob": "^10.3.10",
Expand Down Expand Up @@ -60,7 +60,7 @@
"url": "https://github.com/lukeautry/tsoa.git"
},
"bin": {
"tsoa": "dist/cli.js"
"tsoa-deno": "dist/cli.js"
},
"engines": {
"yarn": ">=1.9.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import YAML from 'yamljs';
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import { Config, RoutesConfig, SpecConfig, Tsoa } from '@tsoa/runtime';
import { Config, RoutesConfig, SpecConfig, Tsoa } from '@tsoa-deno/runtime';
import { MetadataGenerator } from './metadataGeneration/metadataGenerator';
import { generateRoutes } from './module/generate-routes';
import { generateSpec } from './module/generate-spec';
Expand All @@ -29,7 +29,7 @@ const getPackageJsonValue = async (key: string, defaultValue = ''): Promise<stri

const nameDefault = () => getPackageJsonValue('name', 'TSOA');
const versionDefault = () => getPackageJsonValue('version', '1.0.0');
const descriptionDefault = () => getPackageJsonValue('description', 'Build swagger-compliant REST APIs using TypeScript and Node');
const descriptionDefault = () => getPackageJsonValue('description', 'Build swagger-compliant REST APIs using TypeScript and Node / Deno');
const licenseDefault = () => getPackageJsonValue('license', 'MIT');
const determineNoImplicitAdditionalSetting = (noImplicitAdditionalProperties: Config['noImplicitAdditionalProperties']): Exclude<Config['noImplicitAdditionalProperties'], undefined> => {
if (noImplicitAdditionalProperties === 'silently-remove-extras' || noImplicitAdditionalProperties === 'throw-on-extras' || noImplicitAdditionalProperties === 'ignore') {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export { HapiTemplateService } from './routeGeneration/templates/hapi/hapiTempla
export { KoaTemplateService } from './routeGeneration/templates/koa/koaTemplateService';
export { AbstractRouteGenerator } from './routeGeneration/routeGenerator';
export { DefaultRouteGenerator } from './routeGeneration/defaultRouteGenerator';
export { Config } from '@tsoa/runtime';
export { Config } from '@tsoa-deno/runtime';
export * from './cli';
2 changes: 1 addition & 1 deletion packages/cli/src/metadataGeneration/controllerGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { GenerateMetadataError } from './exceptions';
import { MetadataGenerator } from './metadataGenerator';
import { MethodGenerator } from './methodGenerator';
import { TypeResolver } from './typeResolver';
import { Tsoa } from '@tsoa/runtime';
import { Tsoa } from '@tsoa-deno/runtime';
import { getHeaderType } from '../utils/headerTypeHelpers';
import { isMethodDeclaration, type ClassDeclaration, type CallExpression, type StringLiteral } from 'typescript';

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/metadataGeneration/extension.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as ts from 'typescript';
import { getInitializerValue, isNonUndefinedInitializerValue } from './initializer-value';
import { MetadataGenerator } from './metadataGenerator';
import { Tsoa } from '@tsoa/runtime';
import { Tsoa } from '@tsoa-deno/runtime';
import { safeFromJson } from '../utils/jsonUtils';

export function getExtensions(decorators: ts.Identifier[], metadataGenerator: MetadataGenerator): Tsoa.Extension[] {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/metadataGeneration/initializer-value.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as ts from 'typescript';
import { Tsoa } from '@tsoa/runtime';
import { Tsoa } from '@tsoa-deno/runtime';

const hasInitializer = (node: ts.Node): node is ts.HasInitializer => Object.prototype.hasOwnProperty.call(node, 'initializer');
const extractInitializer = (decl?: ts.Declaration) => (decl && hasInitializer(decl) && (decl.initializer as ts.Expression)) || undefined;
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/metadataGeneration/metadataGenerator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Config, Tsoa } from '@tsoa/runtime';
import { Config, Tsoa } from '@tsoa-deno/runtime';
import { minimatch } from 'minimatch';
import { createProgram, forEachChild, isClassDeclaration, type ClassDeclaration, type CompilerOptions, type Program, type TypeChecker } from 'typescript';
import { getDecorators } from '../utils/decoratorUtils';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/metadataGeneration/methodGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { GenerateMetadataError } from './exceptions';
import { MetadataGenerator } from './metadataGenerator';
import { ParameterGenerator } from './parameterGenerator';

import { Tsoa } from '@tsoa/runtime';
import { Tsoa } from '@tsoa-deno/runtime';
import { TypeResolver } from './typeResolver';
import { getHeaderType } from '../utils/headerTypeHelpers';

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/metadataGeneration/parameterGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getParameterValidators } from './../utils/validatorUtils';
import { GenerateMetadataError } from './exceptions';
import { getInitializerValue } from './initializer-value';
import { MetadataGenerator } from './metadataGenerator';
import { Tsoa } from '@tsoa/runtime';
import { Tsoa } from '@tsoa-deno/runtime';
import { TypeResolver } from './typeResolver';
import { getHeaderType } from '../utils/headerTypeHelpers';

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/metadataGeneration/typeResolver.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertNever, Tsoa } from '@tsoa/runtime';
import { assertNever, Tsoa } from '@tsoa-deno/runtime';
import * as ts from 'typescript';
import { safeFromJson } from '../utils/jsonUtils';
import { getDecorators, getNodeFirstDecoratorValue, isDecorator } from './../utils/decoratorUtils';
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/module/generate-routes.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as ts from 'typescript';
import { ExtendedRoutesConfig } from '../cli';
import { MetadataGenerator } from '../metadataGeneration/metadataGenerator';
import { Tsoa } from '@tsoa/runtime';
import { Tsoa } from '@tsoa-deno/runtime';
import { DefaultRouteGenerator } from '../routeGeneration/defaultRouteGenerator';
import { fsMkDir } from '../utils/fs';
import path = require('path');
import { Config as BaseConfig } from "@tsoa/runtime";
import { Config as BaseConfig } from "@tsoa-deno/runtime";

export async function generateRoutes<Config extends ExtendedRoutesConfig>(
routesConfig: Config,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/module/generate-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as ts from 'typescript';
import * as YAML from 'yamljs';
import { ExtendedSpecConfig } from '../cli';
import { MetadataGenerator } from '../metadataGeneration/metadataGenerator';
import { Tsoa, Swagger, Config } from '@tsoa/runtime';
import { Tsoa, Swagger, Config } from '@tsoa-deno/runtime';
import { SpecGenerator2 } from '../swagger/specGenerator2';
import { SpecGenerator3 } from '../swagger/specGenerator3';
import { fsMkDir, fsWriteFile } from '../utils/fs';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/routeGeneration/defaultRouteGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as fs from 'fs';
import * as handlebars from 'handlebars';
import * as path from 'path';
import { ExtendedRoutesConfig } from '../cli';
import { Tsoa, TsoaRoute, assertNever } from '@tsoa/runtime';
import { Tsoa, TsoaRoute, assertNever } from '@tsoa-deno/runtime';
import { fsReadFile, fsWriteFile } from '../utils/fs';
import { convertBracesPathParams } from '../utils/pathUtils';
import { AbstractRouteGenerator } from './routeGenerator';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/routeGeneration/routeGenerator.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as path from 'path';
import { ExtendedRoutesConfig } from '../cli';
import { Tsoa, TsoaRoute, assertNever } from '@tsoa/runtime';
import { Tsoa, TsoaRoute, assertNever } from '@tsoa-deno/runtime';
import { isRefType } from '../utils/internalTypeGuards';
import { convertBracesPathParams, normalisePath } from '../utils/pathUtils';
import { fsExists, fsReadFile } from '../utils/fs';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { TsoaRoute, fetchMiddlewares } from '@tsoa/runtime';
import { ExpressTemplateService } from '@tsoa/cli';
import { TsoaRoute, fetchMiddlewares } from '@tsoa-deno/runtime';
import { ExpressTemplateService } from '@tsoa-deno/cli';
{{#each controllers}}
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { {{name}} } from '{{modulePath}}';
Expand All @@ -13,7 +13,7 @@ import { expressAuthentication } from '{{authenticationModule}}';
{{/if}}
{{#if iocModule}}
import { iocContainer } from '{{iocModule}}';
import type { IocContainer, IocContainerFactory } from '@tsoa/runtime';
import type { IocContainer, IocContainerFactory } from '@tsoa-deno/runtime';
{{/if}}
import type { Request as ExRequest, Response as ExResponse, RequestHandler, Router } from 'express';
{{#if useFileUploads}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Request as ExRequest, Response as ExResponse, NextFunction as ExNext } from 'express';
import { Controller, FieldErrors, TsoaRoute, ValidateError } from '@tsoa/runtime';
import { Controller, FieldErrors, TsoaRoute, ValidateError } from '@tsoa-deno/runtime';

import { TemplateService } from '../templateService';

Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/routeGeneration/templates/hapi/hapi.hbs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { TsoaRoute, fetchMiddlewares } from '@tsoa/runtime';
import { HapiTemplateService } from '@tsoa/cli';
import { TsoaRoute, fetchMiddlewares } from '@tsoa-deno/runtime';
import { HapiTemplateService } from '@tsoa-deno/cli';
{{#each controllers}}
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { {{name}} } from '{{modulePath}}';
Expand All @@ -13,7 +13,7 @@ import { hapiAuthentication } from '{{authenticationModule}}';
{{/if}}
{{#if iocModule}}
import { iocContainer } from '{{iocModule}}';
import type { IocContainer, IocContainerFactory } from '@tsoa/runtime';
import type { IocContainer, IocContainerFactory } from '@tsoa-deno/runtime';
{{/if}}
import { boomify, isBoom, type Payload } from '@hapi/boom';
import type { Request, ResponseToolkit, RouteOptionsPreAllOptions } from '@hapi/hapi';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Request as HRequest, ResponseToolkit as HResponse } from '@hapi/hapi';
import { boomify, isBoom, type Payload } from '@hapi/boom';
import { Controller, FieldErrors, TsoaRoute, ValidateError } from '@tsoa/runtime';
import { Controller, FieldErrors, TsoaRoute, ValidateError } from '@tsoa-deno/runtime';

import { TemplateService } from '../templateService';

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/routeGeneration/templates/hono/hono.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ValidationService,
ValidateError,
isTsoaContext
} from '@tsoa/runtime';
} from '@tsoa-deno/runtime';

import { assert } from "https://deno.land/std@0.64.0/_util/assert.ts";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Readable } from 'https://deno.land/x/readable_stream@v3.6.0-deno.0.3.0/
import { encode as bufferToBase64 } from "https://deno.land/std@0.64.0/encoding/base64.ts";
import { HTTPException, Next, type Context as HonoContext } from '@hono';

import { HttpStatusCodeLiteral, File as TsoaFile, FieldErrors, ValidateError, TsoaRoute, Controller, TemplateService } from '@tsoa/runtime';
import { HttpStatusCodeLiteral, File as TsoaFile, FieldErrors, ValidateError, TsoaRoute, Controller, TemplateService } from '@tsoa-deno/runtime';

/**
* Create a Tsoa compatible Hono context type that contains any request data available for consumption synchronously.
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/routeGeneration/templates/koa/koa.hbs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { TsoaRoute, fetchMiddlewares } from '@tsoa/runtime';
import { KoaTemplateService } from '@tsoa/cli';
import { TsoaRoute, fetchMiddlewares } from '@tsoa-deno/runtime';
import { KoaTemplateService } from '@tsoa-deno/cli';
{{#each controllers}}
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { {{name}} } from '{{modulePath}}';
Expand All @@ -13,7 +13,7 @@ import { koaAuthentication } from '{{authenticationModule}}';
{{/if}}
{{#if iocModule}}
import { iocContainer } from '{{iocModule}}';
import type { IocContainer, IocContainerFactory } from '@tsoa/runtime';
import type { IocContainer, IocContainerFactory } from '@tsoa-deno/runtime';
{{/if}}
import type { Context, Next, Middleware } from 'koa';
import type * as KoaRouter from '@koa/router';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Context, Next } from 'koa';
import { Controller, FieldErrors, TsoaRoute, ValidateError } from '@tsoa/runtime';
import { Controller, FieldErrors, TsoaRoute, ValidateError } from '@tsoa-deno/runtime';

import { TemplateService } from '../templateService';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Controller, TsoaRoute, ValidationService } from "@tsoa/runtime";
import { Controller, TsoaRoute, ValidationService } from "@tsoa-deno/runtime";

export abstract class TemplateService<ApiHandlerParameters, ValidationArgsParameters, ReturnHandlerParameters> {
protected validationService: ValidationService;
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/swagger/specGenerator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ExtendedSpecConfig } from '../cli';
import { Tsoa, assertNever, Swagger } from '@tsoa/runtime';
import { Tsoa, assertNever, Swagger } from '@tsoa-deno/runtime';
import * as handlebars from 'handlebars';

export abstract class SpecGenerator {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/swagger/specGenerator2.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { merge as mergeAnything } from 'merge-anything'
import { merge as deepMerge } from 'ts-deepmerge';
import { Tsoa, assertNever, Swagger } from '@tsoa/runtime';
import { Tsoa, assertNever, Swagger } from '@tsoa-deno/runtime';

import { SpecGenerator } from './specGenerator';
import { ExtendedSpecConfig } from '../cli';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/swagger/specGenerator3.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { merge as mergeAnything } from 'merge-anything'
import { merge as deepMerge } from 'ts-deepmerge';
import { Tsoa, assertNever, Swagger } from '@tsoa/runtime';
import { Tsoa, assertNever, Swagger } from '@tsoa-deno/runtime';

import { ExtendedSpecConfig } from '../cli';
import { isVoidType } from '../utils/isVoidType';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/headerTypeHelpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Tsoa } from '@tsoa/runtime';
import { Tsoa } from '@tsoa-deno/runtime';
import { NodeArray, TypeNode } from 'typescript';
import { GenerateMetadataError } from '../metadataGeneration/exceptions';
import { MetadataGenerator } from '../metadataGeneration/metadataGenerator';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/internalTypeGuards.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is designed to contain functions that narrow the input type to a type within src\metadataGeneration\tsoa.ts
import { Tsoa, assertNever } from '@tsoa/runtime';
import { Tsoa, assertNever } from '@tsoa-deno/runtime';

/**
* This will help us do exhaustive matching against only reference types. For example, once you have narrowed the input, you don't then have to check the case where it's a `integer` because it never will be.
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/isVoidType.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Tsoa } from '@tsoa/runtime';
import { Tsoa } from '@tsoa-deno/runtime';

export const isVoidType = (type: Tsoa.Type): boolean => {
if (type.dataType === 'void' || type.dataType === 'undefined') {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/validatorUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Tsoa } from '@tsoa/runtime';
import { Tsoa } from '@tsoa-deno/runtime';
import * as ts from 'typescript';
import validator from 'validator';
import { GenerateMetadataError } from './../metadataGeneration/exceptions';
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@tsoa/runtime",
"name": "@tsoa-deno/runtime",
"description": "Build swagger-compliant REST APIs using TypeScript and Node / Deno",
"version": "6.1.0-rc.3",
"main": "./dist/index.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/tsoa/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "tsoa",
"name": "tsoa-deno",
"description": "Build swagger-compliant REST APIs using TypeScript and Node / Deno",
"version": "6.1.0-rc.3",
"main": "./dist/index.js",
Expand Down Expand Up @@ -30,8 +30,8 @@
"author": "Luke Autry <lukeautry@gmail.com> (http://www.lukeautry.com)",
"license": "MIT",
"dependencies": {
"@tsoa/cli": "^6.1.0-rc.3",
"@tsoa/runtime": "^6.1.0-rc.3"
"@tsoa-deno/cli": "^6.1.0-rc.3",
"@tsoa-deno/runtime": "^6.1.0-rc.3"
},
"devDependencies": {
"@types/node": "^18.0.0",
Expand All @@ -42,7 +42,7 @@
"url": "https://github.com/lukeautry/tsoa.git"
},
"bin": {
"tsoa": "dist/cli.js"
"tsoa-deno": "dist/cli.js"
},
"engines": {
"yarn": ">=1.9.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/tsoa/src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node
import { runCLI } from '@tsoa/cli';
import { runCLI } from '@tsoa-deno/cli';

if (require.main === module) void runCLI();
4 changes: 2 additions & 2 deletions packages/tsoa/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from '@tsoa/runtime';
export * from '@tsoa/cli';
export * from '@tsoa-deno/runtime';
export * from '@tsoa-deno/cli';
2 changes: 1 addition & 1 deletion tests/esm/fixtures/controllers/securityController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Controller, Get, Route, Security } from '@tsoa/runtime';
import { Controller, Get, Route, Security } from '@tsoa-deno/runtime';
import type { TestModel } from '../testModel.js';

@Security('tsoa_auth')
Expand Down
2 changes: 1 addition & 1 deletion tests/esm/fixtures/express/rootController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Controller, Get, Route } from '@tsoa/runtime';
import { Controller, Get, Route } from '@tsoa-deno/runtime';
import type { TestModel } from '../testModel.js';

@Route()
Expand Down
2 changes: 1 addition & 1 deletion tests/esm/fixtures/templating/dummyRouteGenerator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AbstractRouteGenerator } from '@tsoa/cli';
import { AbstractRouteGenerator } from '@tsoa-deno/cli';

export class DummyRouteGenerator extends AbstractRouteGenerator<any> {
private static CALL_COUNT = 0;
Expand Down
2 changes: 1 addition & 1 deletion tests/esm/prepare.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import chalk from 'chalk';
import { generateSpecAndRoutes, generateRoutes } from '@tsoa/cli';
import { generateSpecAndRoutes, generateRoutes } from '@tsoa-deno/cli';
import { hrtime } from 'process';

const specESM = async () => {
Expand Down
4 changes: 2 additions & 2 deletions tests/esm/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"allowSyntheticDefaultImports": true,
"strict": true,
"paths": {
"@tsoa/cli/*": ["../../packages/cli/src/*"],
"@tsoa/runtime/*": ["../../packages/runtime/src/*"]
"@tsoa-deno/cli/*": ["../../packages/cli/src/*"],
"@tsoa-deno/runtime/*": ["../../packages/runtime/src/*"]
}
},
"references": [{ "path": "../../packages/runtime" }, { "path": "../../packages/cli" }]
Expand Down
Loading

0 comments on commit 001ade5

Please sign in to comment.