Skip to content

Commit 46842ba

Browse files
build: add scripts
1 parent 09cfd03 commit 46842ba

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ pnpm-debug.log*
2525
*.sln
2626
*.sw?
2727

28-
coverage
28+
coverage
29+
30+
exampleDist

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module.exports = {
22
presets: [
33
'@vue/cli-plugin-babel/preset',
44
],
5-
};
5+
}

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
{
22
"name": "vue-hooks-form",
33
"version": "0.1.0",
4-
"private": true,
4+
"source": "src/index.ts",
5+
"main": "dist/vueHooksLib.umd.min.js",
56
"scripts": {
67
"start": "vue-cli-service serve example/main.ts",
7-
"build": "vue-cli-service build",
8+
"build": "vue-cli-service build --target lib --name vueHooksLib src/index.ts",
9+
"dev": "microbundle watch",
10+
"build:example": "vue-cli-service build example/main.ts --dest exampleDist",
811
"test": "jest --coverage"
912
},
1013
"dependencies": {
1114
"async-validator": "^3.4.0",
12-
"core-js": "^3.6.5",
1315
"lodash.get": "^4.4.2",
1416
"lodash.merge": "^4.6.2",
1517
"lodash.set": "^4.3.2",

src/useForm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
reactive, computed, ref, Ref, watch,
33
} from 'vue'
44
import { RuleItem } from 'async-validator'
5-
import DeepValidator from './DeepValidator'
5+
import DeepValidator from './deepValidator'
66
import {
77
isAllUnmounted, get, set, toPathString,
88
} from './utils'

tests/unit/deepValidator.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { RuleItem, Rules } from 'async-validator'
2-
import DeepValidator from '../../src/DeepValidator'
2+
import DeepValidator from '../../src/deepValidator'
33

44
describe('DeepValidator', () => {
55
const rules: Rules = {

0 commit comments

Comments
 (0)