-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fanwei
committed
Nov 9, 2021
1 parent
7c72fd5
commit 947e54c
Showing
3 changed files
with
21 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{ | ||
"name": "vue2-helpers", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "A util package to use Vue 2 with Composition API easily", | ||
"author": "Ambit Tsai <[email protected]>", | ||
"author": { | ||
"name": "Ambit Tsai", | ||
"email": "[email protected]" | ||
}, | ||
"license": "Apache-2.0", | ||
"main": "index.js", | ||
"scripts": { | ||
|
@@ -21,6 +24,11 @@ | |
"vue-router": "^3", | ||
"vuex": "^3" | ||
}, | ||
"peerDependenciesMeta": { | ||
"vuex": { | ||
"optional": true | ||
} | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-typescript": "^8.2.3", | ||
"@vue/composition-api": "^1.0.4", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
const fs = require('fs') | ||
const path = require('path') | ||
|
||
|
||
const filePath = path.resolve(__dirname, '../package.json') | ||
const fileText = fs.readFileSync(filePath, 'utf8') | ||
const config = JSON.parse(fileText) | ||
|
||
const pkg = require('../package.json'); | ||
|
||
module.exports = ` | ||
/** | ||
* ${config.name}@${config.version} | ||
* ${config.description} | ||
* @author ${config.author} | ||
* @license ${config.license} | ||
* @see {@link ${config.homepage}} | ||
*/` | ||
* ${pkg.name}@${pkg.version} | ||
* ${pkg.description} | ||
* @author ${pkg.author.name} <${pkg.author.email}> | ||
* @license ${pkg.license} | ||
* @see {@link ${pkg.homepage}} | ||
*/` |