Skip to content

Commit

Permalink
fix: tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
luis-herasme committed May 5, 2024
1 parent b54f461 commit 080a88b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 11 deletions.
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
{
"name": "@lucrise/azul-ts",
"version": "0.0.1",
"main": "index.js",
"types": "dist/index.d.ts",
"type": "module",
"files": [
"dist"
],
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.umd.cjs"
}
},
"scripts": {
"prepare": "husky install",
"test": "npx jest --verbose",
Expand Down
4 changes: 4 additions & 0 deletions src/azul-api/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import fs from 'fs/promises';
import { request, Agent } from 'undici';
import { capitalizeKeys } from '../utils';
import { Process } from './processes';
import { fileURLToPath } from 'url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

enum AzulURL {
DEV = 'https://pruebas.azul.com.do/webservices/JSON/Default.aspx',
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import AzulPage from './azul-page';
import AzulAPI from './azul-api/api';

export { AzulPage, AzulAPI };
30 changes: 21 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
{
"compilerOptions": {
"target": "es2015",
"module": "commonjs",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./dist",
"strict": true,
"target": "ES2020",
"module": "ESNext",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,

/* Output */
"outDir": "dist",
},
"include": ["src", "test"],
"include": ["src/**/*", "test"],
"exclude": ["node_modules", "**/__tests__/*"]
}

0 comments on commit 080a88b

Please sign in to comment.