Skip to content

Commit

Permalink
refactor: test on new snapshot version (20240705090030)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShookLyngs committed Jul 5, 2024
1 parent 6cb180d commit 789c114
Show file tree
Hide file tree
Showing 22 changed files with 118 additions and 49 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
test:
make test-cjs
make test-esm

test-cjs:
node cjs/service.cjs
node cjs/btc.cjs
node cjs/ckb.cjs

test-esm:
node esm/service.mjs
node esm/btc.mjs
node esm/ckb.mjs
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tsconfig.json → build/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lib": ["ESNext", "DOM"]
},
"exclude": [
"node_modules",
"../node_modules",
"*/dist"
]
}
2 changes: 1 addition & 1 deletion test-build/tsup.config.ts → build/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export default defineConfig({
sourcemap: true,
format: ['esm', 'cjs'],
entry: ['src/index.ts'],
tsconfig: '../tsconfig.json',
tsconfig: './tsconfig.json',
});
File renamed without changes.
4 changes: 4 additions & 0 deletions cjs/ckb.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const { remove0x } = require('rgbpp/ckb');

const x = remove0x('0x0001');
console.log(x);
4 changes: 4 additions & 0 deletions cjs/service.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const { BtcAssetsApi } = require('rgbpp/service');

const service = BtcAssetsApi.fromToken('', '', '');
console.log(service);
File renamed without changes.
3 changes: 3 additions & 0 deletions esm/build.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { printVersion } from '../build/dist/index.mjs';

printVersion();
4 changes: 4 additions & 0 deletions esm/ckb.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { remove0x } from 'rgbpp/ckb';

const x = remove0x('0x0001');
console.log(x);
File renamed without changes.
118 changes: 86 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@joyid/ckb": "^1.0.0",
"lodash": "^4.17.21",
"rgbpp": "0.0.0-snap-20240702110120"
"rgbpp": "0.0.0-snap-20240705090030"
},
"devDependencies": {
"tsup": "^8.1.0",
Expand Down
3 changes: 0 additions & 3 deletions test-import/build.mjs

This file was deleted.

11 changes: 0 additions & 11 deletions test-import/ckb.mjs

This file was deleted.

0 comments on commit 789c114

Please sign in to comment.