Skip to content

Commit b49a121

Browse files
fix: build
1 parent ca5ecab commit b49a121

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ node_modules
33
/dist
44
.DS_Store
55
/web
6-
/examples
6+
/examples
7+
/packages/dist

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ esbuild.js
1414
.eslintrc.json
1515
.prettierignore
1616
.prettierrc.json
17-
1817
/packages

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"url": "git+https://github.com/Intosoft/qrcode.git"
1212
},
1313
"scripts": {
14-
"build": "rimraf ./dist && tsup && cd ./native && npm run build",
14+
"build": "rimraf ./dist && tsup && cd ./packages/react-native && yarn && yarn build",
1515
"unused-exports": "ts-unused-exports ./tsconfig.json --excludePathsFromReport='index.ts;/dist;/examples;src/generateContent.ts;src/config.ts;tsup.config.ts'",
1616
"tsc": "tsc --noEmit",
1717
"lint": "yarn format && yarn eslint && yarn unused-exports",

packages/react-native/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"name": "@intosoft/qrcode",
33
"version": "0.1.2",
44
"description": "The best tool for QR Code generation in JavaScript (React, React Native, Node.js, VueJS, Angular, JQuery, VanillaJS)",
5-
"main": "../dist/native/index.js",
6-
"types": "../dist/native/index.d.ts",
5+
"main": "./index.js",
6+
"types": "./index.d.ts",
77
"homepage": "https://github.com/Intosoft/qrcode",
88
"repository": {
99
"type": "git",
1010
"url": "git+https://github.com/Intosoft/qrcode.git"
1111
},
1212
"scripts": {
13-
"build": "tsc"
13+
"build": "tsc && rm -rf ../../dist/native && mkdir ../../dist/native && cp ./package.json ../../dist/native/package.json && cp -r ../dist/packages/react-native ../../dist/native"
1414
},
1515
"author": {
1616
"name": "Sakul Budhathoki",

packages/react-native/yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4836,11 +4836,6 @@ terser@^5.15.0:
48364836
commander "^2.20.0"
48374837
source-map-support "~0.5.20"
48384838

4839-
text-encoding@^0.7.0:
4840-
version "0.7.0"
4841-
resolved "https://registry.yarnpkg.com/text-encoding/-/text-encoding-0.7.0.tgz#f895e836e45990624086601798ea98e8f36ee643"
4842-
integrity sha512-oJQ3f1hrOnbRLOcwKz0Liq2IcrvDeZRHXhd9RgLrsT+DjWY/nty1Hi7v3dtkaEYbPYe0mUoOfzRrMwfXXwgPUA==
4843-
48444839
text-table@^0.2.0:
48454840
version "0.2.0"
48464841
resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"

0 commit comments

Comments
 (0)