From 7cc31de82f024fbfa503034d0b64d30eed1453a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Belin?= Date: Sun, 17 Nov 2024 17:26:08 +0100 Subject: [PATCH] Move the TS declarations to the "src" folder [skip ci] --- .gitignore | 3 +-- gulpfile.coffee | 2 +- package.json | 2 +- {lib => src}/author.d.ts | 0 {lib => src}/blog.d.ts | 0 {lib => src}/check_result.d.ts | 0 {lib => src}/client.d.ts | 0 {lib => src}/comment.d.ts | 0 {lib => src}/index.d.ts | 0 {lib => src}/usage.d.ts | 0 10 files changed, 3 insertions(+), 4 deletions(-) rename {lib => src}/author.d.ts (100%) rename {lib => src}/blog.d.ts (100%) rename {lib => src}/check_result.d.ts (100%) rename {lib => src}/client.d.ts (100%) rename {lib => src}/comment.d.ts (100%) rename {lib => src}/index.d.ts (100%) rename {lib => src}/usage.d.ts (100%) diff --git a/.gitignore b/.gitignore index 98a47465..5f9bb753 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 6895aacc..0bb1a5ca 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 c53ea5ac..b919b977 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