diff --git a/package.json b/package.json index 5ffd81e..d218430 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,21 @@ { "name": "assemblyai", - "version": "3.1.2", + "version": "3.1.3", "description": "The AssemblyAI Node.js SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, as well as the latest LeMUR models.", - "main": "dist/index.js", - "module": "dist/index.esm.js", - "types": "dist/index.d.ts", - "typings": "dist/index.d.ts", "exports": { - "require": "./dist/index.js", - "import": "./dist/index.esm.js", - "node": "./dist/index.js", - "default": "./dist/index.js" + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/index.cjs", + "default": "./dist/index.cjs" + }, + "./package.json": "./package.json" }, + "type": "commonjs", + "main": "dist/index.cjs", + "module": "dist/index.mjs", + "types": "dist/index.d.ts", + "typings": "dist/index.d.ts", "repository": { "type": "git", "url": "git+https://github.com/AssemblyAI/assemblyai-node-sdk.git" @@ -24,7 +28,7 @@ "scripts": { "build": "pnpm clean && pnpm rollup -c", "clean": "rimraf dist", - "lint": "eslint -c .eslintrc.json '{src,tests}/**/*.{js,ts}'", + "lint": "eslint -c .eslintrc.json '{src,tests}/**/*.{js,ts}' && publint", "test": "pnpm lint && pnpm test:unit", "test:unit": "jest --config jest.config.rollup.ts", "format": "prettier '**/*' --write", @@ -64,6 +68,7 @@ "npm": "^9.7.1", "openapi-typescript": "^6.6.1", "prettier": "^2.8.8", + "publint": "^0.2.5", "rimraf": "^5.0.1", "rollup": "^3.25.1", "rollup-plugin-typescript2": "^0.34.1",