diff --git a/.gitignore b/.gitignore index 98a4746..5f9bb75 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ /**/.DS_Store /.idea/ -/lib/**/*.js -/lib/**/*.js.map +/lib/ /node_modules/ /npm-debug.log /var/ diff --git a/gulpfile.coffee b/gulpfile.coffee index 6895aac..0bb1a5c 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -12,7 +12,7 @@ export build = -> # Deletes all generated files. export clean = -> - await rm join("lib", file) for file from await readdir "lib" when not file.endsWith ".d.ts" + await rm "lib", force: yes, recursive: yes await rm join("var", file), recursive: yes for file from await readdir "var" when file isnt ".gitkeep" # Performs the static analysis of source code. diff --git a/package.json b/package.json index c53ea5a..b919b97 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "node": ">=20.0.0" }, "exports": { - "types": "./lib/index.d.ts", + "types": "./src/index.d.ts", "default": "./lib/index.js" }, "files": [ diff --git a/lib/author.d.ts b/src/author.d.ts similarity index 100% rename from lib/author.d.ts rename to src/author.d.ts diff --git a/lib/blog.d.ts b/src/blog.d.ts similarity index 100% rename from lib/blog.d.ts rename to src/blog.d.ts diff --git a/lib/check_result.d.ts b/src/check_result.d.ts similarity index 100% rename from lib/check_result.d.ts rename to src/check_result.d.ts diff --git a/lib/client.d.ts b/src/client.d.ts similarity index 100% rename from lib/client.d.ts rename to src/client.d.ts diff --git a/lib/comment.d.ts b/src/comment.d.ts similarity index 100% rename from lib/comment.d.ts rename to src/comment.d.ts diff --git a/lib/index.d.ts b/src/index.d.ts similarity index 100% rename from lib/index.d.ts rename to src/index.d.ts diff --git a/lib/usage.d.ts b/src/usage.d.ts similarity index 100% rename from lib/usage.d.ts rename to src/usage.d.ts