diff --git a/LICENSE b/LICENSE index 08778f8..b817870 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021-2023 Dirk Holtwick +Copyright (c) 2021-2024 Dirk Holtwick Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/demos/tests/src/test-unit-all.ts b/demos/tests/src/test-unit-all.ts index 9725cf6..ecf86e4 100644 --- a/demos/tests/src/test-unit-all.ts +++ b/demos/tests/src/test-unit-all.ts @@ -1,3 +1,4 @@ +/// /* eslint-disable no-console */ export {} diff --git a/jsr.json b/jsr.json new file mode 100644 index 0000000..8bf9b63 --- /dev/null +++ b/jsr.json @@ -0,0 +1,5 @@ +{ + "name": "@ho/zeed", + "version": "0.17.0", + "exports": "./src/index.all.ts" +} diff --git a/package.json b/package.json index bef2abb..e98b599 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "zeed", "type": "module", - "version": "0.17.0", + "version": "0.17.1", "description": "🌱 Simple foundation library", "author": { "name": "Dirk Holtwick", @@ -50,7 +50,7 @@ "scripts": { "build": "nr clean && NODE_ENV=production tsup", "build:docs": "nlx typedoc src/index.all.ts", - "check": "tsc --noEmit -p tsconfig.json", + "check": "tsc --noEmit --skipLibCheck", "credits": "nlx credits-cli", "circles": "nlx madge --circular --summary --orphans --leaves --warning --extensions ts src", "upload:docs": "nr build:docs && rsync -avz docs/* cy:public_html/zeed.holtwick.de", @@ -65,15 +65,15 @@ "watch": "nr build -- --watch" }, "devDependencies": { - "@antfu/eslint-config": "^2.6.4", + "@antfu/eslint-config": "^2.8.0", "@antfu/ni": "^0.21.12", - "@types/node": "^20.11.16", - "@vitest/coverage-v8": "^1.2.2", - "esbuild": "^0.20.0", - "eslint": "^8.56.0", - "tsup": "^8.0.1", - "typescript": "^5.3.3", - "vite": "^5.0.12", - "vitest": "^1.2.2" + "@types/node": "^20.11.25", + "@vitest/coverage-v8": "^1.3.1", + "esbuild": "^0.20.1", + "eslint": "^8.57.0", + "tsup": "^8.0.2", + "typescript": "^5.4.2", + "vite": "^5.1.6", + "vitest": "^1.3.1" } } diff --git a/src/common/csv.ts b/src/common/csv.ts index 73c6b6a..9641286 100644 --- a/src/common/csv.ts +++ b/src/common/csv.ts @@ -9,9 +9,8 @@ export function csvStringify(data: any[], opt: { } = {}): string { const { separator = defaultSeparator } = opt let body = '' - if (opt.addBom) { - body = '\ufeff' - } + if (opt.addBom) + body = '\uFEFF' // Append the header row to the response if requested // if (header) diff --git a/tsconfig.json b/tsconfig.json index f1162f9..ff545ae 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,9 +27,6 @@ "src/**/*.ts", "demos/**/*.ts", "*.ts" - // "tsup.config.ts", - // "vitest-setup.ts", - // "vitest.config.ts" ], "exclude": [ "_archive",