Skip to content

Commit

Permalink
attempt to fix the ts build
Browse files Browse the repository at this point in the history
  • Loading branch information
CarelessCourage committed Jun 24, 2023
1 parent fce5395 commit 5febcfd
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 25 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@myriadjs/dye",
"private": false,
"version": "0.0.698",
"version": "0.0.699",
"description": "Color picker in a Vue component",
"author": "Samuel M. Bednarz<https://github.com/CarelessCourage>",
"license": "MIT",
Expand All @@ -15,12 +15,10 @@
"url": "https://github.com/MyriadJS/dye"
},
"type": "module",
"files": [
"dist"
],
"files": ["dist"],
"main": "./dist/dye.umd.cjs",
"types": "./dist/src/index.d.ts",
"module": "./dist/dye.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/dye.js",
Expand All @@ -30,10 +28,9 @@
},
"scripts": {
"dev": "vite",
"build": "run-p type-check build-only",
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --emitDeclarationOnly"
"build": "vite build && vue-tsc --emitDeclarationOnly",
"types": "vue-tsc ",
"preview": "vite preview"
},
"dependencies": {
"@myriadjs/core": "^0.0.86",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Canvas/ColorCanvas.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, Ref, onMounted, watch } from 'vue'
import { ref, Ref, watch } from 'vue'
import tinycolor from "tinycolor2"
import {
hexType,
Expand Down
1 change: 1 addition & 0 deletions src/composables/eyedropper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function notSupported() {
console.log('EyeDropper API not supported')
return true
}
return false
}

// @ts-ignore
Expand Down
33 changes: 20 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
{
"compilerOptions": {
"outDir": "./dist/types",
"target": "ESNext",
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"moduleResolution": "Node",
"strict": true,
"jsx": "preserve",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "node",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["ESNext", "DOM"],
"skipLibCheck": true,
// "noEmit": true,
"jsx": "preserve",

"outDir": "dist",
"declaration": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}


/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"exclude": ["src/App.vue", "src/main.ts"],
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/components/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }]
}

0 comments on commit 5febcfd

Please sign in to comment.