Skip to content

Commit

Permalink
fix: bump target platform, and remove baseUrl as it is not supported (#…
Browse files Browse the repository at this point in the history
…282)

* fix: bump target platform, and remove baseUrl as it is not supported

* refactor: lint
  • Loading branch information
phanshiyu committed May 7, 2024
1 parent da0e5c8 commit b7422f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/shared/@types/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "../../3.0/types";
import { Literal, Static, String } from "runtypes";
import { ethers } from "ethers";
import { V4Document, V4SignedWrappedDocument, V4WrappedDocument } from "src/4.0/types";
import { V4Document, V4SignedWrappedDocument, V4WrappedDocument } from "../../4.0/types";

export type OpenAttestationDocument = OpenAttestationDocumentV2 | OpenAttestationDocumentV3 | V4Document;
export type WrappedDocument<T extends OpenAttestationDocument> = T extends OpenAttestationDocumentV2
Expand Down
16 changes: 11 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,23 @@
"files": true
},
"compilerOptions": {
"lib": ["es2019"],
"target": "es5",
"strict": true,
// affects emission
"module": "commonjs",
"moduleResolution": "node",
"strict": true,
"baseUrl": ".",
// affects emission
// 98% browser support (https://caniuse.com/?search=es6)
// Node >12 already supports ES2019 (https://node.green/#ES2019)
"target": "ES6",
// 96% browser support (https://caniuse.com/array-flat)
"lib": ["ES2019.Array"],
"typeRoots": ["./src/@types", "./node_modules/@types"],
"skipLibCheck": true,
"resolveJsonModule": true,
// affects emission
"esModuleInterop": true,
"allowJs": true
"allowJs": true,
"outDir": "./dist"
},
"include": ["./src/**/*"]
}

0 comments on commit b7422f2

Please sign in to comment.