Skip to content

Commit

Permalink
fixup! Make change non breaking
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Aug 9, 2023
1 parent 8a1257b commit 6bc4665
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ You can also import individual module without bundling the full library.


```js static
import NcAvatar from '@nextcloud/vue/components/NcAvatar'
import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar'
```

## Recommendations
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./components/*": {
"import": "./dist/components/*.mjs",
"require": "./dist/components/*.cjs"
"./dist/Components/*.js": {
"import": "./dist/Components/*.mjs",
"require": "./dist/Components/*.cjs"
},
"./directives/*": {
"import": "./dist/directives/*.mjs",
"require": "./dist/directives/*.cjs"
"./dist/Directives/*.js": {
"import": "./dist/Directives/*.mjs",
"require": "./dist/Directives/*.cjs"
},
"./functions/*": {
"import": "./dist/functions/*.mjs",
"require": "./dist/functions/*.cjs"
"./dist/Functions/*.js": {
"import": "./dist/Functions/*.mjs",
"require": "./dist/Functions/*.cjs"
},
"./mixins/*": {
"import": "./dist/mixins/*.mjs",
"require": "./dist/mixins/*.cjs"
"./dist/Mixins/*.js": {
"import": "./dist/Mixins/*.mjs",
"require": "./dist/Mixins/*.cjs"
}
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = async () => {
components: 'src/components/*/*.vue',
getComponentPathLine(componentPath) {
const name = path.basename(componentPath, '.vue')
return `import ${name} from '@nextcloud/vue/components/${name}.js'`
return `import ${name} from '@nextcloud/vue/dist/Components/${name}.js'`
},

sections: [
Expand Down
8 changes: 4 additions & 4 deletions vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,31 @@ const entryPoints = {
...globSync('src/components/*/index.js').reduce((acc, item) => {
const name = item
.replace('/index.js', '')
.replace('src/components/', 'components/')
.replace('src/components/', 'Components/')
acc[name] = join(__dirname, item)
return acc
}, {}),

...globSync('src/directives/*/index.js').reduce((acc, item) => {
const name = item
.replace('/index.js', '')
.replace('src/directives/', 'directives/')
.replace('src/directives/', 'Directives/')
acc[name] = join(__dirname, item)
return acc
}, {}),

...globSync('src/functions/*/index.js').reduce((acc, item) => {
const name = item
.replace('/index.js', '')
.replace('src/functions/', 'functions/')
.replace('src/functions/', 'Functions/')
acc[name] = join(__dirname, item)
return acc
}, {}),

...globSync('src/mixins/*/index.js').reduce((acc, item) => {
const name = item
.replace('/index.js', '')
.replace('src/mixins/', 'mixins/')
.replace('src/mixins/', 'Mixins/')
acc[name] = join(__dirname, item)
return acc
}, {}),
Expand Down

0 comments on commit 6bc4665

Please sign in to comment.