Skip to content

Commit

Permalink
Reworking the build as it didn't import correctly. (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrohr authored Jun 20, 2024
1 parent 8db8be1 commit a7d13ee
Show file tree
Hide file tree
Showing 12 changed files with 74 additions and 84 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as DynamicPropertyField } from "./components/DynamicPropertyField.vue";
export { default as DynamicPropertyTable } from "./components/DynamicPropertyTable.vue";
51 changes: 38 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kiwiproject/vue-dynamic-property-provider",
"version": "0.2.0",
"version": "0.3.0",
"private": false,
"type": "module",
"files": [
Expand All @@ -17,16 +17,17 @@
"types": "./dist/main.d.ts",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"build": "vue-tsc --p ./tsconfig-build.json && vite build",
"preview": "vite preview",
"lint": "eslint --ignore-path .gitignore --ext .js,.ts,.vue .",
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json|vue)\""
},
"dependencies": {
"peerDependencies": {
"@headlessui/vue": "^1.7.22",
"vue": "^3.4.29"
},
"devDependencies": {
"@headlessui/vue": "^1.7.22",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@vitejs/plugin-vue": "^5.0.5",
Expand All @@ -43,7 +44,8 @@
"ts-jest": "^29.1.5",
"typescript": "~5.4.5",
"vite-plugin-dts": "^3.9.1",
"vite-plugin-eslint": "^1.8.1"
"vite-plugin-eslint": "^1.8.1",
"vue": "^3.4.29"
},
"eslintConfig": {
"root": true,
Expand Down
3 changes: 1 addition & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
</template>

<script lang="ts" setup>
import DynamicPropertyField from "@/components/DynamicPropertyField.vue";
import { ref } from "vue";
import { DynamicPropertyTable } from "@/components";
import { DynamicPropertyTable, DynamicPropertyField } from "../lib";
const data = ref({
id: 1,
Expand Down
2 changes: 0 additions & 2 deletions src/components/index.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/components/main.ts

This file was deleted.

6 changes: 5 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { createApp } from "vue";
import App from "./App.vue";
import "./index.css";
import { DynamicPropertyField, DynamicPropertyTable } from "../lib";

createApp(App).mount("#app");
const app = createApp(App);
app.component("DynamicPropertyField", DynamicPropertyField);
app.component("DynamicPropertyTable", DynamicPropertyTable);
app.mount("#app");
4 changes: 4 additions & 0 deletions tsconfig-build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["lib"]
}
8 changes: 1 addition & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@
},
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx"
],
"include": ["src", "lib", "tests"],
"exclude": ["node_modules"]
}
Loading

0 comments on commit a7d13ee

Please sign in to comment.