Skip to content

Commit 9f62f44

Browse files
committed
Reimplementing cjs support
1 parent 8caa377 commit 9f62f44

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "@procedure-rpc/procedure.js",
3-
"version": "0.8.0-alpha.2",
3+
"version": "0.8.0-alpha.3",
44
"title": "procedure.js",
55
"description": "The simple RPC framework for Node.js.",
6-
"main": "./dist/index.mjs",
6+
"main": "./dist/index.cjs",
77
"module": "./dist/index.mjs",
88
"types": "./types/index.d.mts",
99
"author": "Tobey Blaber (https://github.com/toebeann)",
@@ -60,10 +60,10 @@
6060
"typescript": "^4.7.4"
6161
},
6262
"files": [
63-
"dist/**/*.mjs",
64-
"dist/**/*.mjs.map",
65-
"types/**/*.d.mts",
66-
"types/**/*.d.mts.map"
63+
"dist/**/*.*js",
64+
"dist/**/*.*js.map",
65+
"types/**/*.d.*ts",
66+
"types/**/*.d.*ts.map"
6767
],
6868
"keywords": [
6969
"RPC",

rollup.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ export default {
1111
sourcemap: true,
1212
format: 'esm',
1313
file: './dist/index.mjs',
14+
},
15+
{
16+
sourcemap:true,
17+
format: 'cjs',
18+
file: './dist/index.cjs'
1419
}],
1520
external: externals(),
1621
plugins: [

0 commit comments

Comments
 (0)