Skip to content

Commit

Permalink
Fix: Use correct dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Miaonster committed Jun 5, 2019
1 parent e3f75cd commit 33a039e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 23 deletions.
9 changes: 0 additions & 9 deletions jsconfig.json

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "taro-code",
"version": "1.0.1",
"version": "1.1.0",
"description": "Taro.js barcode & qrcode",
"scripts": {
"build": "taro build --ui",
"build": "export TARO_BUILD_TYPE=ui && taro build --ui",
"build:weapp": "taro build --type weapp",
"build:swan": "taro build --type swan",
"build:alipay": "taro build --type alipay",
Expand All @@ -17,7 +17,7 @@
"dev:h5": "npm run build:h5 -- --watch",
"dev:rn": "npm run build:rn -- --watch"
},
"files": ["dist"],
"files": ["dist", "src/components", ""],
"author": "Miaonster <[email protected]>",
"license": "MIT",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Barcode/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types'
import Taro, { Component } from '@tarojs/taro'
import { Canvas, View } from '@tarojs/components'
import utils from '@/utils'
import utils from '../../utils'
import './style.css'

class Barcode extends Component {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Qrcode/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types'
import Taro, { Component } from '@tarojs/taro'
import { Canvas, View } from '@tarojs/components'
import utils from '@/utils'
import utils from '../../utils'
import './style.css'

class QRCode extends Component {
Expand Down
9 changes: 2 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
import Barcode from '@/components/Barcode';
import QRCode from '@/components/QRCode';

export default {
Barcode,
QRCode,
}
export { default as Barcode } from './components/Barcode'
export { default as QRCode } from './components/QRCode'
4 changes: 2 additions & 2 deletions src/pages/index/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Taro, { Component } from '@tarojs/taro'
import { View } from '@tarojs/components'
import Barcode from '@/components/Barcode';
import QRCode from '@/components/QRCode';
import Barcode from '../../components/Barcode';
import QRCode from '../../components/QRCode';
import './index.css'

export default class Index extends Component {
Expand Down

0 comments on commit 33a039e

Please sign in to comment.