@certik/serverless-api 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +23 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.1.0
2
+
3
+ - added exports field to package.json mapping subpaths to dist/ counterparts
4
+
1
5
  # 2.0.0
2
6
 
3
7
  - Migrate the whole repo to typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@certik/serverless-api",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "A library that supports quick development and deployment for AWS lambda based serverless APIs",
5
5
  "license": "MIT",
6
6
  "author": "CertiK Engineering",
@@ -14,6 +14,28 @@
14
14
  "type": "module",
15
15
  "main": "dist/index.js",
16
16
  "types": "dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js"
21
+ },
22
+ "./dev": {
23
+ "types": "./dist/dev.d.ts",
24
+ "import": "./dist/dev.js"
25
+ },
26
+ "./entrypoint": {
27
+ "types": "./dist/entrypoint.d.ts",
28
+ "import": "./dist/entrypoint.js"
29
+ },
30
+ "./handler": {
31
+ "types": "./dist/handler.d.ts",
32
+ "import": "./dist/handler.js"
33
+ },
34
+ "./deploy": {
35
+ "types": "./dist/deploy.d.ts",
36
+ "import": "./dist/deploy.js"
37
+ }
38
+ },
17
39
  "scripts": {
18
40
  "build": "tsc",
19
41
  "start": "doppler run -- bun --watch start-dev.ts",