Skip to content

Commit

Permalink
improve config and update version
Browse files Browse the repository at this point in the history
  • Loading branch information
cici090 committed Aug 11, 2024
1 parent 0609523 commit 0b17d09
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 27 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# - name: Publish package
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: npm publish
- name: Publish package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@townsquarelabs/ui-vue",
"private": false,
"version": "1.0.2",
"version": "2.0.7",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"build": "npx vue-demi-switch 3 && vite build",
"build:lib": "yarn build:lib:3 && yarn build:lib:2.7",
"postinstall": "node ./scripts/postinstall.mjs",
"build:lib:2.7": "npx vue-demi-switch 2 && yarn build",
Expand Down Expand Up @@ -63,7 +63,7 @@
}
},
"dependencies": {
"@tonconnect/ui": "^2.0.3",
"@tonconnect/ui": "2.0.7",
"@vitejs/plugin-vue": "^5.0.5",
"@vue/composition-api": "^1.7.2",
"axios": "^0.27.2",
Expand Down
2 changes: 1 addition & 1 deletion scripts/postinstall.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import { version } from "vue-demi";
import { switchVersion } from "./utils.mjs";

console.log("current version = ", version);
switchVersion(version);
// switchVersion(version);
6 changes: 3 additions & 3 deletions src/components/TonConnectButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ export default defineComponent({
},
className: {
type: String,
required: true,
required: false,
},
styles: {
type: Object,
required: true,
required: false,
},
},
setup(
props: { className: string; styles?: any; buttonRootId?: string },
props: { className?: string; styles?: any; buttonRootId?: string },
{ slots }
) {
const [_, setOptions] = useTonConnectUI();
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useTonConnectUI.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { inject, Ref } from 'vue-demi';
import { inject } from 'vue-demi';
import { TonConnectUI, TonConnectUiOptions } from '@tonconnect/ui';
import { checkProvider } from '../utils/errors';
import { isServerSide } from '../utils/web';
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default defineConfig({
},
build: {
target: "es2018",
outDir: isVue2 ? "lib/vue2" : "lib/vue3",
outDir: 'lib',
emptyOutDir: true,
minify: false,
sourcemap: false,
Expand Down
23 changes: 9 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1465,21 +1465,21 @@
tweetnacl "^1.0.3"
tweetnacl-util "^0.15.1"

"@tonconnect/sdk@3.0.3":
version "3.0.3"
resolved "https://registry.npmjs.org/@tonconnect/sdk/-/sdk-3.0.3.tgz"
integrity sha512-ElVre1DPixzQLgLtQIa8Wu5xS8nozlgblZTJhFFPrk82M2rZ+sawyF+LAVwt9wZRN7+htWnJrNz0+bBr4b3geA==
"@tonconnect/sdk@3.0.4":
version "3.0.4"
resolved "https://registry.npmmirror.com/@tonconnect/sdk/-/sdk-3.0.4.tgz#93ec09b454a9514361271d140a4e1c2e1ae02eee"
integrity sha512-+87DHYhs2goR0j9rLNavrtvMQNFX5BB5csoY6qAt524hTaNjSRkgogAK2HsiZnZArMb4xzsbVySxGCdpeH4Y3A==
dependencies:
"@tonconnect/isomorphic-eventsource" "^0.0.2"
"@tonconnect/isomorphic-fetch" "^0.0.3"
"@tonconnect/protocol" "^2.2.6"

"@tonconnect/ui@^2.0.3":
version "2.0.3"
resolved "https://registry.npmjs.org/@tonconnect/ui/-/ui-2.0.3.tgz"
integrity sha512-P2i+kZXJULlIIBBfHs8b3ONHEaDFgJ4jpP7eAtqubikjoYyk43qb8XyzKC67hEdS+pHzd+JCB2U+47LTJcdRzA==
"@tonconnect/ui@2.0.7":
version "2.0.7"
resolved "https://registry.npmmirror.com/@tonconnect/ui/-/ui-2.0.7.tgz#0a1c590f2a1d85e695255b1f658a470382609afe"
integrity sha512-u0YmciMF462gNlm/DFHVMVXtrX3n563VIDQ92hmCzQT4XU92xpr1E1dfbtOVOHf9t9DcDqLkhjRt3w/nuTuy3Q==
dependencies:
"@tonconnect/sdk" "3.0.3"
"@tonconnect/sdk" "3.0.4"
classnames "^2.3.2"
deepmerge "^4.2.2"
ua-parser-js "^1.0.35"
Expand Down Expand Up @@ -4112,11 +4112,6 @@ vite@^5.0.11:
optionalDependencies:
fsevents "~2.3.3"

vue-demi@^0.14.8:
version "0.14.8"
resolved "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.8.tgz#00335e9317b45e4a68d3528aaf58e0cec3d5640a"
integrity sha512-Uuqnk9YE9SsWeReYqK2alDI5YzciATE0r2SkA6iMAtuXvNTMNACJLJEXNXaEy94ECuBe4Sk6RzRU80kjdbIo1Q==

vue-demi@^0.14.8:
version "0.14.8"
resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.14.8.tgz#00335e9317b45e4a68d3528aaf58e0cec3d5640a"
Expand Down

0 comments on commit 0b17d09

Please sign in to comment.