diff --git a/package.json b/package.json index 51a2a025..0b7ecf8d 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "clean": "rimraf ./node_modules package-lock.yaml ./dist", "prepare": "husky install", "postinstall": "test -f ./dist/install.js && node ./dist/install.js || echo \"Skipping install, project not build!\"", - "test": "run-s test:*", + "test": "run-s build test:*", "test:lint": "eslint", "test:unit": "vitest --run", "test:e2e": "tsx ./tests/test.e2e.ts", diff --git a/tsconfig.json b/tsconfig.json index cd12bb4e..11629cc0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "target": "ES2020", "baseUrl": "src", "outDir": "./dist", + "rootDir": "./src", "moduleResolution": "Node16", "declaration": true, "declarationMap": true, @@ -20,6 +21,6 @@ "checkJs": true, "types": ["node"] }, - "include": ["src/**/*", "src/cjs/package.json", "tests"], + "include": ["src/**/*", "src/cjs/package.json"], "ignore": ["node_modules", "dist"] }