Skip to content

Commit

Permalink
Major: Upgrade to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
driaug committed May 19, 2024
1 parent 0953d2e commit 0f3657a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2,079 deletions.
26 changes: 0 additions & 26 deletions __tests__/connection.ts

This file was deleted.

4 changes: 0 additions & 4 deletions jest.config.js

This file was deleted.

15 changes: 5 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "@plunk/node",
"version": "3.0.0",
"description": "Official Node.js library for useplunk.com",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"author": "driaug <dries@useplunk.com>",
"license": "MIT",
"private": false,
"scripts": {
"test": "eslint . --fix&&jest",
"prepublishOnly": "npm run test&&npm run build",
"prepublishOnly": "npm run build",
"deploy": "npm publish --access public",
"build": "tsc"
},
Expand All @@ -19,18 +19,13 @@
"README.md"
],
"dependencies": {
"native-fetch": "^4.0.2",
"tslib": "^2.4.0",
"undici": "^5.22.1"
"tslib": "^2.4.0"
},
"devDependencies": {
"@types/jest": "^28.1.4",
"@typescript-eslint/eslint-plugin": "^5.30.3",
"@typescript-eslint/parser": "^5.30.3",
"eslint": "^8.19.0",
"jest": "^28.1.2",
"prettier": "^2.7.1",
"ts-jest": "^28.0.5",
"typescript": "^4.7.4"
},
"publishConfig": {
Expand Down
1 change: 0 additions & 1 deletion src/lib/Plunk.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { fetch } from "native-fetch";
import { PublishParams } from "../types/events";
import { SendParams } from "../types/emails";
import { NotFoundError } from "../errors/NotFound";
Expand Down
Loading

0 comments on commit 0f3657a

Please sign in to comment.