diff --git a/packages/drops/package.json b/packages/drops/package.json index efd5a26..6e8f4f2 100644 --- a/packages/drops/package.json +++ b/packages/drops/package.json @@ -1,6 +1,6 @@ { "name": "@poap-xyz/drops", - "version": "0.2.8", + "version": "0.3.0", "description": "Drops module for the poap.js library", "main": "dist/cjs/index.cjs", "module": "dist/esm/index.mjs", @@ -29,7 +29,7 @@ "node": ">=18" }, "dependencies": { - "@poap-xyz/providers": "0.2.8", - "@poap-xyz/utils": "0.2.8" + "@poap-xyz/providers": "0.3.0", + "@poap-xyz/utils": "0.3.0" } } diff --git a/packages/moments/package.json b/packages/moments/package.json index f207b98..8962b55 100644 --- a/packages/moments/package.json +++ b/packages/moments/package.json @@ -1,6 +1,6 @@ { "name": "@poap-xyz/moments", - "version": "0.2.8", + "version": "0.3.0", "description": "Moments module for the poap.js library", "main": "dist/cjs/index.cjs", "module": "dist/esm/index.mjs", @@ -26,8 +26,8 @@ "build": "rollup -c --bundleConfigAsCjs" }, "dependencies": { - "@poap-xyz/providers": "0.2.8", - "@poap-xyz/utils": "0.2.8", + "@poap-xyz/providers": "0.3.0", + "@poap-xyz/utils": "0.3.0", "uuid": "^9.0.0" }, "engines": { diff --git a/packages/poaps/package.json b/packages/poaps/package.json index 64c1416..8df7375 100644 --- a/packages/poaps/package.json +++ b/packages/poaps/package.json @@ -1,6 +1,6 @@ { "name": "@poap-xyz/poaps", - "version": "0.2.8", + "version": "0.3.0", "description": "Poaps module for the poap.js library", "main": "dist/cjs/index.cjs", "module": "dist/esm/index.mjs", @@ -26,8 +26,8 @@ "build": "rollup -c --bundleConfigAsCjs" }, "dependencies": { - "@poap-xyz/providers": "0.2.8", - "@poap-xyz/utils": "0.2.8" + "@poap-xyz/providers": "0.3.0", + "@poap-xyz/utils": "0.3.0" }, "engines": { "node": ">=18" diff --git a/packages/providers/package.json b/packages/providers/package.json index 7670e1c..83d7f73 100644 --- a/packages/providers/package.json +++ b/packages/providers/package.json @@ -1,6 +1,6 @@ { "name": "@poap-xyz/providers", - "version": "0.2.8", + "version": "0.3.0", "description": "Providers module for the poap.js library", "main": "dist/cjs/index.cjs", "module": "dist/esm/index.mjs", @@ -26,7 +26,7 @@ "build": "rollup -c --bundleConfigAsCjs" }, "dependencies": { - "@poap-xyz/utils": "0.2.8", + "@poap-xyz/utils": "0.3.0", "axios": "^1.6.8", "lodash.chunk": "^4.2.0" }, diff --git a/packages/utils/package.json b/packages/utils/package.json index 7a9ec1f..307759c 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@poap-xyz/utils", - "version": "0.2.8", + "version": "0.3.0", "description": "Utils module for the poap.js library", "main": "dist/cjs/index.cjs", "module": "dist/esm/index.mjs", diff --git a/rollup.base.config.js b/rollup.base.config.js index cca4994..ab16013 100644 --- a/rollup.base.config.js +++ b/rollup.base.config.js @@ -7,6 +7,12 @@ import nodePolyfills from 'rollup-plugin-node-polyfills'; const pkg = require(path.resolve(process.cwd(), 'package.json')); +const replaceExtension = (filePath, newExtension) => { + const currentExtension = path.extname(filePath); + const fileNameWithoutExtension = filePath.slice(0, -currentExtension.length); + return `${fileNameWithoutExtension}.${newExtension}`; +}; + const configs = [ { context: 'window', @@ -45,6 +51,18 @@ const configs = [ sourcemap: true, exports: 'named', }, + { + file: replaceExtension(pkg.typings, 'cts'), + format: 'cjs', + sourcemap: false, + exports: 'named', + }, + { + file: replaceExtension(pkg.module, 'd.mts'), + format: 'esm', + sourcemap: false, + exports: 'named', + }, ], external: ['axios'], plugins: [ diff --git a/yarn.lock b/yarn.lock index 9661ad5..0808d89 100644 --- a/yarn.lock +++ b/yarn.lock @@ -884,8 +884,8 @@ __metadata: version: 0.0.0-use.local resolution: "@poap-xyz/drops@workspace:packages/drops" dependencies: - "@poap-xyz/providers": 0.2.8 - "@poap-xyz/utils": 0.2.8 + "@poap-xyz/providers": 0.3.0 + "@poap-xyz/utils": 0.3.0 languageName: unknown linkType: soft @@ -901,8 +901,8 @@ __metadata: version: 0.0.0-use.local resolution: "@poap-xyz/moments@workspace:packages/moments" dependencies: - "@poap-xyz/providers": 0.2.8 - "@poap-xyz/utils": 0.2.8 + "@poap-xyz/providers": 0.3.0 + "@poap-xyz/utils": 0.3.0 "@types/uuid": ^9.0.2 uuid: ^9.0.0 languageName: unknown @@ -912,16 +912,16 @@ __metadata: version: 0.0.0-use.local resolution: "@poap-xyz/poaps@workspace:packages/poaps" dependencies: - "@poap-xyz/providers": 0.2.8 - "@poap-xyz/utils": 0.2.8 + "@poap-xyz/providers": 0.3.0 + "@poap-xyz/utils": 0.3.0 languageName: unknown linkType: soft -"@poap-xyz/providers@*, @poap-xyz/providers@0.2.8, @poap-xyz/providers@workspace:packages/providers": +"@poap-xyz/providers@*, @poap-xyz/providers@0.3.0, @poap-xyz/providers@workspace:packages/providers": version: 0.0.0-use.local resolution: "@poap-xyz/providers@workspace:packages/providers" dependencies: - "@poap-xyz/utils": 0.2.8 + "@poap-xyz/utils": 0.3.0 axios: ^1.6.8 axios-mock-adapter: ^1.21.4 jest-fetch-mock: ^3.0.3 @@ -929,7 +929,7 @@ __metadata: languageName: unknown linkType: soft -"@poap-xyz/utils@*, @poap-xyz/utils@0.2.8, @poap-xyz/utils@workspace:packages/utils": +"@poap-xyz/utils@*, @poap-xyz/utils@0.3.0, @poap-xyz/utils@workspace:packages/utils": version: 0.0.0-use.local resolution: "@poap-xyz/utils@workspace:packages/utils" languageName: unknown