Skip to content

Commit f57f2b8

Browse files
committed
chore: use unbuild
1 parent 7f83aa5 commit f57f2b8

8 files changed

+1048
-33
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

index.ts

-3
This file was deleted.

package.json

+12-8
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "@classmethod/athena-query",
33
"version": "1.0.1",
44
"description": "Athena-Query makes it easier to execute SQL queries on Amazon Athena by consolidating & abstracting several methods in the AWS SDK",
5-
"main": "./dist/index.cjs.js",
6-
"module": "./dist/index.esm.mjs",
5+
"main": "./dist/index.cjs",
6+
"module": "./dist/index.mjs",
77
"types": "./dist/index.d.ts",
88
"author": "Classmethod, Inc.",
99
"license": "MIT",
@@ -28,24 +28,28 @@
2828
"dist",
2929
"lib"
3030
],
31+
"exports": {
32+
".": {
33+
"types": "./dist/index.d.ts",
34+
"require": "./dist/index.cjs",
35+
"import": "./dist/index.mjs"
36+
}
37+
},
3138
"scripts": {
32-
"build": "rm -rf dist && rollup -c",
33-
"format": "prettier -w .",
39+
"build": "unbuild",
40+
"format": "prettier -c .",
3441
"test": "vitest",
3542
"prepare": "husky install"
3643
},
3744
"devDependencies": {
3845
"@aws-sdk/client-athena": "^3.218.0",
39-
"@rollup/plugin-commonjs": "^24.0.0",
40-
"@rollup/plugin-typescript": "^11.0.0",
4146
"@types/node": "^18.11.9",
4247
"aws-sdk-client-mock": "^2.0.1",
4348
"concurrently": "^7.6.0",
4449
"husky": "^8.0.3",
4550
"prettier": "^2.8.0",
46-
"rollup": "^3.5.0",
47-
"tslib": "^2.4.1",
4851
"typescript": "^4.9.3",
52+
"unbuild": "^1.1.1",
4953
"vitest": "^0.28.1"
5054
},
5155
"peerDependencies": {

0 commit comments

Comments
 (0)