Skip to content

Commit 0b930e2

Browse files
committed
fix: fix templates location and publish them
1 parent f475d27 commit 0b930e2

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ dist
55
coverage
66

77
# Plugin
8-
src/templates
8+
templates

jest.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ module.exports = {
1414
},
1515
collectCoverage: true,
1616
collectCoverageFrom: [
17-
'src/**/*.ts',
18-
'!src/templates/**'
17+
'src/**/*.ts'
1918
],
2019
coverageThreshold: {
2120
global: {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"release": "yarn test && yarn build && standard-version && git push --follow-tags && npm publish"
2626
},
2727
"files": [
28-
"dist"
28+
"dist",
29+
"templates"
2930
],
3031
"dependencies": {
3132
"deepmerge": "^4.0.0",

src/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ export default function setupBuild (this: ModuleThis, options: Options) {
3434
// Register options template
3535
this.addTemplate({
3636
fileName: `vuetify/options.${optionsPath && optionsPath.endsWith('ts') ? 'ts' : 'js'}`,
37-
src: optionsPath || path.join(__dirname, 'templates/options.js'),
37+
src: optionsPath || path.join(__dirname, '../templates', 'options.js'),
3838
options: vuetifyOptions
3939
})
4040

4141
// Register plugin
4242
this.addPlugin({
4343
fileName: 'vuetify/plugin.js',
44-
src: path.resolve(__dirname, 'templates/plugin.js'),
44+
src: path.resolve(__dirname, '../templates', 'plugin.js'),
4545
options: {
4646
defaultIconPreset: options.defaultAssets && options.defaultAssets.icons,
4747
treeShake: options.treeShake
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)