Skip to content

Commit

Permalink
update build to ES module (#120)
Browse files Browse the repository at this point in the history
* update build to ES module

* bump version
  • Loading branch information
nooxx authored Sep 12, 2024
1 parent f11283f commit 11ddfa0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
{
"name": "@kilnfi/sdk",
"version": "2.22.1",
"version": "2.23.0",
"autor": "Kiln <[email protected]> (https://kiln.fi)",
"license": "BUSL-1.1",
"description": "JavaScript sdk for Kiln API",
"main": "lib/kiln.js",
"types": "lib/kiln.d.ts",
"type": "module",
"exports": {
".": {
"default": "./lib/kiln.js",
"types": "./lib/kiln.d.ts",
"import": "./lib/kiln.js"
}
},
"scripts": {
"lint": "eslint index.ts src/**/*.ts",
"lint:fix": "eslint index.ts src/**/*.ts --fix",
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc"
},
"keywords": [
Expand Down
13 changes: 9 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"module": "ES2020",
"target": "ES2021",
"declaration": true,
"outDir": "./lib",
"strict": true,
"esModuleInterop": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"verbatimModuleSyntax": false,
"moduleResolution": "node",
"skipLibCheck": true
"skipLibCheck": true,
"sourceMap": true,
"rootDir": "src"
},
"include": ["src"],
"exclude": ["node_modules", "**/__tests__/*", "examples"]
Expand Down

0 comments on commit 11ddfa0

Please sign in to comment.