From f7f7d9bb1bcfeeebb5e01a856db507e79adfb1b1 Mon Sep 17 00:00:00 2001 From: Markus Sanin Date: Sun, 4 Aug 2024 16:24:34 +0200 Subject: [PATCH 1/2] Add missing export for ts declaration --- ember-inflector/.gitignore | 1 - ember-inflector/{src => declarations}/index.d.ts | 0 ember-inflector/package.json | 10 ++++++++-- 3 files changed, 8 insertions(+), 3 deletions(-) rename ember-inflector/{src => declarations}/index.d.ts (100%) diff --git a/ember-inflector/.gitignore b/ember-inflector/.gitignore index eedd0d8..52c63b3 100644 --- a/ember-inflector/.gitignore +++ b/ember-inflector/.gitignore @@ -6,7 +6,6 @@ # compiled output dist/ -declarations/ # npm/pnpm/yarn pack output *.tgz diff --git a/ember-inflector/src/index.d.ts b/ember-inflector/declarations/index.d.ts similarity index 100% rename from ember-inflector/src/index.d.ts rename to ember-inflector/declarations/index.d.ts diff --git a/ember-inflector/package.json b/ember-inflector/package.json index da7dc10..988ecd2 100644 --- a/ember-inflector/package.json +++ b/ember-inflector/package.json @@ -9,8 +9,14 @@ "license": "MIT", "author": "", "exports": { - ".": "./dist/index.js", - "./*": "./dist/*.js", + ".": { + "types": "./declarations/index.d.ts", + "default": "./dist/index.js" + }, + "./*": { + "types": "./declarations/*.d.ts", + "default": "./dist/*.js" + }, "./addon-main.js": "./addon-main.cjs" }, "files": [ From d8f3ed893c3d296519d1aad7ae0f553545918ff6 Mon Sep 17 00:00:00 2001 From: Markus Sanin Date: Mon, 5 Aug 2024 07:29:21 +0200 Subject: [PATCH 2/2] Change place of definitions --- ember-inflector/.gitignore | 1 + ember-inflector/package.json | 7 ++++--- ember-inflector/{declarations => src}/index.d.ts | 0 3 files changed, 5 insertions(+), 3 deletions(-) rename ember-inflector/{declarations => src}/index.d.ts (100%) diff --git a/ember-inflector/.gitignore b/ember-inflector/.gitignore index 52c63b3..eedd0d8 100644 --- a/ember-inflector/.gitignore +++ b/ember-inflector/.gitignore @@ -6,6 +6,7 @@ # compiled output dist/ +declarations/ # npm/pnpm/yarn pack output *.tgz diff --git a/ember-inflector/package.json b/ember-inflector/package.json index 988ecd2..2179c67 100644 --- a/ember-inflector/package.json +++ b/ember-inflector/package.json @@ -10,11 +10,11 @@ "author": "", "exports": { ".": { - "types": "./declarations/index.d.ts", + "types": "./src/index.d.ts", "default": "./dist/index.js" }, "./*": { - "types": "./declarations/*.d.ts", + "types": "./src/*.d.ts", "default": "./dist/*.js" }, "./addon-main.js": "./addon-main.cjs" @@ -22,7 +22,8 @@ "files": [ "addon-main.cjs", "declarations", - "dist" + "dist", + "src" ], "scripts": { "build": "rollup --config", diff --git a/ember-inflector/declarations/index.d.ts b/ember-inflector/src/index.d.ts similarity index 100% rename from ember-inflector/declarations/index.d.ts rename to ember-inflector/src/index.d.ts