diff --git a/.changeset/dirty-weeks-repeat.md b/.changeset/dirty-weeks-repeat.md new file mode 100644 index 0000000..4aa9ed7 --- /dev/null +++ b/.changeset/dirty-weeks-repeat.md @@ -0,0 +1,5 @@ +--- +"@nurliman/base85": patch +--- + +drop typescript alias import diff --git a/package.json b/package.json index 42e8749..163d0f3 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,6 @@ "tsup": "^8.0.2", "typescript": "^5.4.5", "vite": "^5.2.11", - "vite-tsconfig-paths": "^4.3.2", "vitest": "^1.6.0" }, "packageManager": "pnpm@9.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7f9b0f4..dcceef0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,9 +38,6 @@ importers: vite: specifier: ^5.2.11 version: 5.2.11(@types/node@20.10.5) - vite-tsconfig-paths: - specifier: ^4.3.2 - version: 4.3.2(typescript@5.4.5)(vite@5.2.11(@types/node@20.10.5)) vitest: specifier: ^1.6.0 version: 1.6.0(@types/node@20.10.5) @@ -1188,9 +1185,6 @@ packages: resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} engines: {node: '>=10'} - globrex@0.1.2: - resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==} - gopd@1.0.1: resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} @@ -2066,16 +2060,6 @@ packages: ts-interface-checker@0.1.13: resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} - tsconfck@3.0.3: - resolution: {integrity: sha512-4t0noZX9t6GcPTfBAbIbbIU4pfpCwh0ueq3S4O/5qXI1VwK1outmxhe9dOiEWqMz3MW2LKgDTpqWV+37IWuVbA==} - engines: {node: ^18 || >=20} - hasBin: true - peerDependencies: - typescript: ^5.0.0 - peerDependenciesMeta: - typescript: - optional: true - tsup@8.0.2: resolution: {integrity: sha512-NY8xtQXdH7hDUAZwcQdY/Vzlw9johQsaqf7iwZ6g1DOUlFYQ5/AtVAjTvihhEyeRlGo4dLRVHtrRaL35M1daqQ==} engines: {node: '>=18'} @@ -2161,14 +2145,6 @@ packages: engines: {node: ^18.0.0 || >=20.0.0} hasBin: true - vite-tsconfig-paths@4.3.2: - resolution: {integrity: sha512-0Vd/a6po6Q+86rPlntHye7F31zA2URZMbH8M3saAZ/xR9QoGN/L21bxEGfXdWmFdNkqPpRdxFT7nmNe12e9/uA==} - peerDependencies: - vite: '*' - peerDependenciesMeta: - vite: - optional: true - vite@5.2.11: resolution: {integrity: sha512-HndV31LWW05i1BLPMUCE1B9E9GFbOu1MbenhS58FuK6owSO5qHm7GiCotrNY1YE5rMeQSFBGmT5ZaLEjFizgiQ==} engines: {node: ^18.0.0 || >=20.0.0} @@ -3466,8 +3442,6 @@ snapshots: merge2: 1.4.1 slash: 3.0.0 - globrex@0.1.2: {} - gopd@1.0.1: dependencies: get-intrinsic: 1.2.2 @@ -4315,10 +4289,6 @@ snapshots: ts-interface-checker@0.1.13: {} - tsconfck@3.0.3(typescript@5.4.5): - optionalDependencies: - typescript: 5.4.5 - tsup@8.0.2(@swc/core@1.5.3)(postcss@8.4.38)(typescript@5.4.5): dependencies: bundle-require: 4.0.2(esbuild@0.19.10) @@ -4427,17 +4397,6 @@ snapshots: - supports-color - terser - vite-tsconfig-paths@4.3.2(typescript@5.4.5)(vite@5.2.11(@types/node@20.10.5)): - dependencies: - debug: 4.3.4 - globrex: 0.1.2 - tsconfck: 3.0.3(typescript@5.4.5) - optionalDependencies: - vite: 5.2.11(@types/node@20.10.5) - transitivePeerDependencies: - - supports-color - - typescript - vite@5.2.11(@types/node@20.10.5): dependencies: esbuild: 0.20.2 diff --git a/test/index.test.ts b/test/index.test.ts index 17717a5..40c0f17 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -1,6 +1,6 @@ import fs from "node:fs/promises"; -import base85 from "@/index"; import { expect, test } from "vitest"; +import base85 from "../src/index.ts"; const [loremIpsumBase85, loremIpsum] = await Promise.all([ fs.readFile("test/loremipsum.base85.txt", "utf8"), diff --git a/tsconfig.json b/tsconfig.json index 5cc06b1..beb28a7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,11 +5,7 @@ "module": "ESNext", "moduleResolution": "bundler", "noEmit": true, - "allowImportingTsExtensions": true, - "baseUrl": "./src", - "paths": { - "@/*": ["./*"] - } + "allowImportingTsExtensions": true }, "include": ["src/**/*.ts", "test/**/*.ts"] } diff --git a/vitest.config.ts b/vitest.config.ts deleted file mode 100644 index 654d1a2..0000000 --- a/vitest.config.ts +++ /dev/null @@ -1,10 +0,0 @@ -import tsconfigPaths from "vite-tsconfig-paths"; -import { defineConfig } from "vitest/config"; - -export default defineConfig({ - test: { - globals: true, - root: "./", - }, - plugins: [tsconfigPaths()], -});