-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55b0b38
commit 0736979
Showing
9 changed files
with
122 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.DS_Store | ||
node_modules/ | ||
lib/ | ||
build/ | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
{ | ||
"name": "@kilnfi/sdk", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"autor": "Kiln <[email protected]> (https://kiln.fi)", | ||
"license": "BUSL-1.1", | ||
"description": "JavaScript sdk for Kiln API", | ||
"type": "module", | ||
"main": "./build/cjs/index.js", | ||
"module": "./build/esm/index.js", | ||
"types": "./build/types/index.d.ts", | ||
"typings": "./build/types/index.d.ts", | ||
"exports": { | ||
".": { | ||
"default": "./lib/kiln.js", | ||
"types": "./lib/kiln.d.ts", | ||
"import": "./lib/kiln.js" | ||
"default": "./build/cjs/kiln.js", | ||
"types": "./build/types/kiln.d.ts", | ||
"import": "./build/esm/kiln.js" | ||
} | ||
}, | ||
"scripts": { | ||
"lint": "biome check ./src", | ||
"format": "biome check ./src --write --unsafe", | ||
"build": "tsc" | ||
"build": "bun run build:esm && bun run build:cjs && bun run build:types", | ||
"build:esm": "tsc --project ./tsconfig.build.json --module es2020 --outDir ./build/esm", | ||
"build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./build/cjs --removeComments --verbatimModuleSyntax false", | ||
"build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./build/types --emitDeclarationOnly --declaration --declarationMap" | ||
}, | ||
"keywords": [ | ||
"sdk", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
// This tsconfig file contains the shared config for the build (tsconfig.build.json) and type checking (tsconfig.json) config. | ||
"include": [], | ||
"compilerOptions": { | ||
// Type checking | ||
"strict": true, | ||
"useDefineForClassFields": true, // Not enabled by default in `strict` mode unless we bump `target` to ES2022. | ||
"noFallthroughCasesInSwitch": true, // Not enabled by default in `strict` mode. | ||
"noImplicitReturns": true, // Not enabled by default in `strict` mode. | ||
"noImplicitOverride": true, // Not enabled by default in `strict` mode. | ||
"noUnusedLocals": true, // Not enabled by default in `strict` mode. | ||
"noUnusedParameters": true, // Not enabled by default in `strict` mode. | ||
"exactOptionalPropertyTypes": true, | ||
"noUncheckedIndexedAccess": true, | ||
|
||
// JavaScript support | ||
"allowJs": false, | ||
"checkJs": false, | ||
|
||
// Interop constraints | ||
"esModuleInterop": false, | ||
"allowSyntheticDefaultImports": false, | ||
"forceConsistentCasingInFileNames": true, | ||
"verbatimModuleSyntax": true, | ||
|
||
// Language and environment | ||
"moduleResolution": "NodeNext", | ||
"module": "NodeNext", | ||
"target": "ES2021", | ||
"lib": ["ES2022", "DOM"], | ||
|
||
// Skip type checking for node modules | ||
"skipLibCheck": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
// This file is used to compile the for cjs and esm (see package.json build scripts). It should exclude all test files. | ||
"extends": "./tsconfig.base.json", | ||
"include": ["src"], | ||
"compilerOptions": { | ||
"moduleResolution": "node", | ||
"sourceMap": true, | ||
"rootDir": "./src" | ||
} | ||
} |
Oops, something went wrong.