chore: add shell-emulator and remove cross-env

fix some registry example import path
This commit is contained in:
Sadegh Barati 2023-12-20 22:21:55 +03:30
parent ca49fd6bef
commit 728873dade
3 changed files with 8 additions and 7 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
shell-emulator=true

View File

@ -777,21 +777,21 @@ export const Index = {
type: 'components:example',
registryDependencies: ['button', 'card', 'themes', 'config'],
component: () => import('../src/lib/registry/default/example/Cards/ActivityGoal.vue').then(m => m.default),
files: ['../src/lib/registry/default/example/Cards/ActivityGoal.vue'],
files: ['../src/lib/registry/default/example/ActivityGoal.vue'],
},
DataTable: {
name: 'DataTable',
type: 'components:example',
registryDependencies: ['button', 'checkbox', 'dropdown-menu', 'input', 'table', 'card', 'utils'],
component: () => import('../src/lib/registry/default/example/Cards/DataTable.vue').then(m => m.default),
files: ['../src/lib/registry/default/example/Cards/DataTable.vue'],
files: ['../src/lib/registry/default/example/DataTable.vue'],
},
Metric: {
name: 'Metric',
type: 'components:example',
registryDependencies: ['card', 'config'],
component: () => import('../src/lib/registry/default/example/Cards/Metric.vue').then(m => m.default),
files: ['../src/lib/registry/default/example/Cards/Metric.vue'],
files: ['../src/lib/registry/default/example/Metric.vue'],
},
},
'new-york': {
@ -1570,21 +1570,21 @@ export const Index = {
type: 'components:example',
registryDependencies: ['button', 'card', 'themes', 'config'],
component: () => import('../src/lib/registry/new-york/example/Cards/ActivityGoal.vue').then(m => m.default),
files: ['../src/lib/registry/new-york/example/Cards/ActivityGoal.vue'],
files: ['../src/lib/registry/new-york/example/ActivityGoal.vue'],
},
DataTable: {
name: 'DataTable',
type: 'components:example',
registryDependencies: ['button', 'checkbox', 'dropdown-menu', 'input', 'table', 'card', 'utils'],
component: () => import('../src/lib/registry/new-york/example/Cards/DataTable.vue').then(m => m.default),
files: ['../src/lib/registry/new-york/example/Cards/DataTable.vue'],
files: ['../src/lib/registry/new-york/example/DataTable.vue'],
},
Metric: {
name: 'Metric',
type: 'components:example',
registryDependencies: ['card', 'config'],
component: () => import('../src/lib/registry/new-york/example/Cards/Metric.vue').then(m => m.default),
files: ['../src/lib/registry/new-york/example/Cards/Metric.vue'],
files: ['../src/lib/registry/new-york/example/Metric.vue'],
},
},
}

View File

@ -35,7 +35,7 @@
"clean": "rimraf dist && rimraf components",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"start:dev": "cross-env COMPONENTS_REGISTRY_URL=http://localhost:3001 node dist/index.js",
"start:dev": "COMPONENTS_REGISTRY_URL=http://localhost:3001 node dist/index.js",
"start": "node dist/index.js",
"release": "changeset version",
"pub:beta": "pnpm build && pnpm publish --no-git-checks --access public --tag beta",