Skip to content

Commit 23ac2d1

Browse files
committed
Commit wallet-adapter dist + fix typo
1 parent f6c84e2 commit 23ac2d1

File tree

4 files changed

+57201
-4
lines changed

4 files changed

+57201
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules
22
neardev
3-
dist
3+
/dist
44
.DS_Store
55
*.pem
66
.nyc_output

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ router.get('/web4/login', withNear, withContractId, async ctx => {
124124
});
125125
});
126126

127-
router.get('/web4/login.js', async ctx => {
127+
router.get('/web4/wallet-adapter.js', async ctx => {
128128
ctx.type = 'text/javascript';
129-
ctx.body = await fs.readFile(`${__dirname}/dist/wallet-adapter.js`);
129+
ctx.body = await fs.readFile(`${__dirname}/wallet-adapter/dist/wallet-adapter.js`);
130130
});
131131

132132
router.get('/web4/login/complete', async ctx => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"scripts": {
2626
"build": "npm run build:contract",
2727
"build:website": "mkdir -p dist && marked -i README.md -o dist/_index.html && cp -R public/* dist/ && cat templates/header.html dist/_index.html > dist/index.html",
28-
"build:wallet-adapter": "npx browserify wallet-adapter/wallet-adapter.js -p esmify > dist/wallet-adapter.js",
28+
"build:wallet-adapter": "npx browserify wallet-adapter/wallet-adapter.js -p esmify > wallet-adapter/dist/wallet-adapter.js",
2929
"build:contract": "cd contract && npm run build:release",
3030
"build:contract:debug": "cd contract && npm run build:debug",
3131
"dev:deploy:contract": "near dev-deploy --wasmFile contract/build/debug/greeter.wasm",

0 commit comments

Comments
 (0)