Skip to content

Commit b9bee75

Browse files
committed
991206 improvment nuxt file & add the files in package.json
1 parent 6e2dbb0 commit b9bee75

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ pnpm-debug.log*
2020
*.sln
2121
*.sw?
2222

23-
// Cypress additional files
23+
# Cypress additional files
2424
cypress/videos
2525
cypress/screenshots

nuxt.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import { join, resolve } from 'path'
1+
import { join } from 'path'
22

33
export default function (option) {
4-
if (option['PersianDate'])
5-
this.addPlugin({
6-
src: resolve(__dirname, '../persian-date/lib/plugin.js'),
7-
fileName: 'PersianDate.js'
8-
})
4+
if (option['PersianDate']) {
5+
this.addModule('@alireza-ab/persian-date/lib/nuxt')
6+
}
97
this.nuxt.hook('components:dirs', (dirs) => {
108
dirs.push({
119
path: join(__dirname, 'src/components'),

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
"vue persian datepicker",
3737
"vue persian range datepicker"
3838
],
39+
"files": [
40+
"src",
41+
"dist",
42+
"nuxt.js"
43+
],
3944
"author": "Alireza Alibeiki <alibeikialireza@gmail.com>",
4045
"license": "MIT",
4146
"dependencies": {

0 commit comments

Comments
 (0)