@ardrive/turbo-sdk 1.0.0-alpha.17 → 1.0.0-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/package.json +1 -0
- package/package.json +4 -4
- package/lib/esm/package.json +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"type": "commonjs"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ardrive/turbo-sdk",
|
3
|
-
"version": "1.0.0-alpha.
|
3
|
+
"version": "1.0.0-alpha.19",
|
4
4
|
"main": "./lib/cjs/node/index.js",
|
5
5
|
"types": "./lib/types/node/index.d.ts",
|
6
6
|
"module": "./lib/esm/node/index.js",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"scripts": {
|
46
46
|
"build:web": "node bundle.cjs",
|
47
47
|
"build:esm": "yarn tsc -p tsconfig.json",
|
48
|
-
"build:cjs": "yarn tsc -p tsconfig.cjs.json",
|
48
|
+
"build:cjs": "yarn tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > lib/cjs/package.json",
|
49
49
|
"build:types": "yarn tsc -p tsconfig.types.json",
|
50
50
|
"build": "yarn clean && yarn build:web && yarn build:esm && yarn build:cjs && yarn build:types",
|
51
51
|
"clean": "rimraf [ lib coverage bundles ]",
|
@@ -57,8 +57,8 @@
|
|
57
57
|
"test:web": "c8 mocha --config .mocharc --exclude tests/**/*.node.test.ts --exit",
|
58
58
|
"test:node": "c8 mocha --config .mocharc --exclude tests/**/*.web.test.ts --exit",
|
59
59
|
"prepare": "husky install",
|
60
|
-
"example:mjs": "
|
61
|
-
"example:cjs": "
|
60
|
+
"example:mjs": "cd examples/mjs && yarn && node index.mjs",
|
61
|
+
"example:cjs": "cd examples/cjs && yarn && node index.cjs",
|
62
62
|
"example:web": "yarn build:web && cp -r bundles/* examples/web && http-server --port 8080 --host -o examples/web"
|
63
63
|
},
|
64
64
|
"dependencies": {
|
package/lib/esm/package.json
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"type": "module"}
|