api: make same dist updates as http-api

This commit is contained in:
Hunter Miller 2022-04-27 11:17:57 -05:00
parent 3e38e6c4f7
commit 243a7dd22a
3 changed files with 10 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@urbit/api",
"version": "2.1.0",
"version": "2.1.1",
"description": "A library that provides bindings and types for Urbit's various userspace desks",
"repository": {
"type": "git",
@ -8,8 +8,12 @@
"directory": "pkg/npm/api"
},
"type": "module",
"main": "dist/cjs/index.js",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.js",
"exports": {
"require": "./dist/cjs/index.cjs",
"import": "./dist/esm/index.js"
},
"jsdelivr": "dist/urbit-api.min.js",
"unpkg": "dist/urbit-api.min.js",
"types": "dist/index.d.ts",

View File

@ -60,13 +60,13 @@ export default [
],
output: [
{
dir: 'dist/esm',
file: 'dist/esm/index.js',
format: 'esm',
exports: 'named',
sourcemap: true
sourcemap: true,
},
{
dir: 'dist/cjs',
file: 'dist/cjs/index.cjs',
format: 'cjs',
exports: 'named',
sourcemap: true

View File

@ -1,6 +1,6 @@
{
"name": "@urbit/http-api",
"version": "2.1.0",
"version": "2.1.1",
"license": "MIT",
"description": "Library to interact with an Urbit ship over HTTP",
"repository": {