mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 00:13:12 +03:00
http-api: updating dist to be more compatible with node
This commit is contained in:
parent
25988742f2
commit
3e38e6c4f7
@ -9,8 +9,12 @@
|
|||||||
"directory": "pkg/npm/http-api"
|
"directory": "pkg/npm/http-api"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/cjs/index.js",
|
"main": "dist/cjs/index.cjs",
|
||||||
"module": "dist/esm/index.js",
|
"module": "dist/esm/index.js",
|
||||||
|
"exports": {
|
||||||
|
"require": "./dist/cjs/index.cjs",
|
||||||
|
"import": "./dist/esm/index.js"
|
||||||
|
},
|
||||||
"jsdelivr": "dist/urbit-http-api.min.js",
|
"jsdelivr": "dist/urbit-http-api.min.js",
|
||||||
"unpkg": "dist/urbit-http-api.min.js",
|
"unpkg": "dist/urbit-http-api.min.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
@ -56,13 +56,13 @@ export default [
|
|||||||
],
|
],
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
dir: 'dist/esm',
|
file: 'dist/esm/index.js',
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
exports: 'named',
|
exports: 'named',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dir: 'dist/cjs',
|
file: 'dist/cjs/index.cjs',
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
exports: 'named',
|
exports: 'named',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user