Skip to content

Commit

Permalink
chore: update ts config and add dev command
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstorey committed Feb 12, 2025
1 parent e4eed52 commit 065c513
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 11 deletions.
35 changes: 33 additions & 2 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@crhio/normie",
"version": "1.3.4",
"scripts": {
"dev:ts": "tsc --watch --noEmit",
"dev": "vite",
"build": "vite build",
"preview": "vite preview --port 5050",
Expand All @@ -17,6 +18,7 @@
"vite-plugin-dts": "^4.5.0"
},
"devDependencies": {
"@types/lodash-es": "^4.17.12",
"eslint": "^8.18.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.26.0",
Expand Down
3 changes: 3 additions & 0 deletions src/entity/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// TODO: remove to run ts checks
// @ts-nocheck

import { reactive } from '@vue/reactivity'
import {
values,
Expand Down
21 changes: 12 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"compilerOptions": {
"declaration": true, // Generate .d.ts files
"emitDeclarationOnly": true, // Only emit type definitions, no JS files
"skipLibCheck": true,
"strict": true
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue", "src/index.js", "src/index.js"],
"exclude": ["node_modules", "dist"]
}
"compilerOptions": {
"declaration": true, // Generate .d.ts files
"emitDeclarationOnly": true, // Only emit type definitions, no JS files
"skipLibCheck": true,
"moduleResolution": "node", // Import path with an index file
"allowJs": true, // Allow importing js modules
"noImplicitAny": true, // Turn off to remove implicit any type errors (dev only)
"strict": false
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue", "src/index.js", "src/index.js"],
"exclude": ["node_modules", "dist"]
}

0 comments on commit 065c513

Please sign in to comment.