From 3037c8feb60fd54d15306ac7e8693d53929c6ae8 Mon Sep 17 00:00:00 2001 From: Lola Date: Sat, 17 Apr 2021 21:44:42 -0400 Subject: [PATCH 1/3] remove dist/types and add tpyes --- dist/types/dist/index.d.ts | 2 -- tsconfig.json | 5 +++-- {dist/types => types}/lib/ephemeris-1.2.1.bundle.d.ts | 0 {dist/types => types}/src/Aspect.d.ts | 0 {dist/types => types}/src/ChartPosition.d.ts | 0 {dist/types => types}/src/Horoscope.d.ts | 0 {dist/types => types}/src/House.d.ts | 0 {dist/types => types}/src/Origin.d.ts | 0 {dist/types => types}/src/Sign.d.ts | 0 {dist/types => types}/src/ZodiacPosition.d.ts | 0 {dist/types => types}/src/constants.d.ts | 0 {dist/types => types}/src/index.d.ts | 0 {dist/types => types}/src/utilities/aspects.d.ts | 0 {dist/types => types}/src/utilities/astrology.d.ts | 0 {dist/types => types}/src/utilities/astronomy.d.ts | 0 {dist/types => types}/src/utilities/copy.d.ts | 0 {dist/types => types}/src/utilities/language.d.ts | 0 {dist/types => types}/src/utilities/math.d.ts | 0 {dist/types => types}/src/utilities/validators.d.ts | 0 19 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 dist/types/dist/index.d.ts rename {dist/types => types}/lib/ephemeris-1.2.1.bundle.d.ts (100%) rename {dist/types => types}/src/Aspect.d.ts (100%) rename {dist/types => types}/src/ChartPosition.d.ts (100%) rename {dist/types => types}/src/Horoscope.d.ts (100%) rename {dist/types => types}/src/House.d.ts (100%) rename {dist/types => types}/src/Origin.d.ts (100%) rename {dist/types => types}/src/Sign.d.ts (100%) rename {dist/types => types}/src/ZodiacPosition.d.ts (100%) rename {dist/types => types}/src/constants.d.ts (100%) rename {dist/types => types}/src/index.d.ts (100%) rename {dist/types => types}/src/utilities/aspects.d.ts (100%) rename {dist/types => types}/src/utilities/astrology.d.ts (100%) rename {dist/types => types}/src/utilities/astronomy.d.ts (100%) rename {dist/types => types}/src/utilities/copy.d.ts (100%) rename {dist/types => types}/src/utilities/language.d.ts (100%) rename {dist/types => types}/src/utilities/math.d.ts (100%) rename {dist/types => types}/src/utilities/validators.d.ts (100%) diff --git a/dist/types/dist/index.d.ts b/dist/types/dist/index.d.ts deleted file mode 100644 index 1cce635..0000000 --- a/dist/types/dist/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _exports: any; -export = _exports; diff --git a/tsconfig.json b/tsconfig.json index 0b21cd7..be05375 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,8 @@ "include": ["src/**/*", "dist/index.js"], "exclude": [ "node_modules", - "*.d.ts" + "*.d.ts", + "dist" ], "compilerOptions": { // Tells TypeScript to read JS files, as @@ -18,7 +19,7 @@ // Types should go into this directory. // Removing this would place the .d.ts files // next to the .js files - "outDir": "dist/types" + "outDir": "types" } } \ No newline at end of file diff --git a/dist/types/lib/ephemeris-1.2.1.bundle.d.ts b/types/lib/ephemeris-1.2.1.bundle.d.ts similarity index 100% rename from dist/types/lib/ephemeris-1.2.1.bundle.d.ts rename to types/lib/ephemeris-1.2.1.bundle.d.ts diff --git a/dist/types/src/Aspect.d.ts b/types/src/Aspect.d.ts similarity index 100% rename from dist/types/src/Aspect.d.ts rename to types/src/Aspect.d.ts diff --git a/dist/types/src/ChartPosition.d.ts b/types/src/ChartPosition.d.ts similarity index 100% rename from dist/types/src/ChartPosition.d.ts rename to types/src/ChartPosition.d.ts diff --git a/dist/types/src/Horoscope.d.ts b/types/src/Horoscope.d.ts similarity index 100% rename from dist/types/src/Horoscope.d.ts rename to types/src/Horoscope.d.ts diff --git a/dist/types/src/House.d.ts b/types/src/House.d.ts similarity index 100% rename from dist/types/src/House.d.ts rename to types/src/House.d.ts diff --git a/dist/types/src/Origin.d.ts b/types/src/Origin.d.ts similarity index 100% rename from dist/types/src/Origin.d.ts rename to types/src/Origin.d.ts diff --git a/dist/types/src/Sign.d.ts b/types/src/Sign.d.ts similarity index 100% rename from dist/types/src/Sign.d.ts rename to types/src/Sign.d.ts diff --git a/dist/types/src/ZodiacPosition.d.ts b/types/src/ZodiacPosition.d.ts similarity index 100% rename from dist/types/src/ZodiacPosition.d.ts rename to types/src/ZodiacPosition.d.ts diff --git a/dist/types/src/constants.d.ts b/types/src/constants.d.ts similarity index 100% rename from dist/types/src/constants.d.ts rename to types/src/constants.d.ts diff --git a/dist/types/src/index.d.ts b/types/src/index.d.ts similarity index 100% rename from dist/types/src/index.d.ts rename to types/src/index.d.ts diff --git a/dist/types/src/utilities/aspects.d.ts b/types/src/utilities/aspects.d.ts similarity index 100% rename from dist/types/src/utilities/aspects.d.ts rename to types/src/utilities/aspects.d.ts diff --git a/dist/types/src/utilities/astrology.d.ts b/types/src/utilities/astrology.d.ts similarity index 100% rename from dist/types/src/utilities/astrology.d.ts rename to types/src/utilities/astrology.d.ts diff --git a/dist/types/src/utilities/astronomy.d.ts b/types/src/utilities/astronomy.d.ts similarity index 100% rename from dist/types/src/utilities/astronomy.d.ts rename to types/src/utilities/astronomy.d.ts diff --git a/dist/types/src/utilities/copy.d.ts b/types/src/utilities/copy.d.ts similarity index 100% rename from dist/types/src/utilities/copy.d.ts rename to types/src/utilities/copy.d.ts diff --git a/dist/types/src/utilities/language.d.ts b/types/src/utilities/language.d.ts similarity index 100% rename from dist/types/src/utilities/language.d.ts rename to types/src/utilities/language.d.ts diff --git a/dist/types/src/utilities/math.d.ts b/types/src/utilities/math.d.ts similarity index 100% rename from dist/types/src/utilities/math.d.ts rename to types/src/utilities/math.d.ts diff --git a/dist/types/src/utilities/validators.d.ts b/types/src/utilities/validators.d.ts similarity index 100% rename from dist/types/src/utilities/validators.d.ts rename to types/src/utilities/validators.d.ts From 24655588a688eb956be8d98284cd97b37e0b0f31 Mon Sep 17 00:00:00 2001 From: Lola Date: Sat, 17 Apr 2021 21:54:19 -0400 Subject: [PATCH 2/3] remove dist/index.d.ts and add back dist/types, point package.json to dist/types/src/index --- dist/index.d.ts | 1 - {types => dist/types}/lib/ephemeris-1.2.1.bundle.d.ts | 0 {types => dist/types}/src/Aspect.d.ts | 0 {types => dist/types}/src/ChartPosition.d.ts | 0 {types => dist/types}/src/Horoscope.d.ts | 0 {types => dist/types}/src/House.d.ts | 0 {types => dist/types}/src/Origin.d.ts | 0 {types => dist/types}/src/Sign.d.ts | 0 {types => dist/types}/src/ZodiacPosition.d.ts | 0 {types => dist/types}/src/constants.d.ts | 0 {types => dist/types}/src/index.d.ts | 0 {types => dist/types}/src/utilities/aspects.d.ts | 0 {types => dist/types}/src/utilities/astrology.d.ts | 0 {types => dist/types}/src/utilities/astronomy.d.ts | 0 {types => dist/types}/src/utilities/copy.d.ts | 0 {types => dist/types}/src/utilities/language.d.ts | 0 {types => dist/types}/src/utilities/math.d.ts | 0 {types => dist/types}/src/utilities/validators.d.ts | 0 package.json | 2 +- tsconfig.json | 2 +- 20 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 dist/index.d.ts rename {types => dist/types}/lib/ephemeris-1.2.1.bundle.d.ts (100%) rename {types => dist/types}/src/Aspect.d.ts (100%) rename {types => dist/types}/src/ChartPosition.d.ts (100%) rename {types => dist/types}/src/Horoscope.d.ts (100%) rename {types => dist/types}/src/House.d.ts (100%) rename {types => dist/types}/src/Origin.d.ts (100%) rename {types => dist/types}/src/Sign.d.ts (100%) rename {types => dist/types}/src/ZodiacPosition.d.ts (100%) rename {types => dist/types}/src/constants.d.ts (100%) rename {types => dist/types}/src/index.d.ts (100%) rename {types => dist/types}/src/utilities/aspects.d.ts (100%) rename {types => dist/types}/src/utilities/astrology.d.ts (100%) rename {types => dist/types}/src/utilities/astronomy.d.ts (100%) rename {types => dist/types}/src/utilities/copy.d.ts (100%) rename {types => dist/types}/src/utilities/language.d.ts (100%) rename {types => dist/types}/src/utilities/math.d.ts (100%) rename {types => dist/types}/src/utilities/validators.d.ts (100%) diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 79bcfd2..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module 'circular-natal-horoscope-js'; \ No newline at end of file diff --git a/types/lib/ephemeris-1.2.1.bundle.d.ts b/dist/types/lib/ephemeris-1.2.1.bundle.d.ts similarity index 100% rename from types/lib/ephemeris-1.2.1.bundle.d.ts rename to dist/types/lib/ephemeris-1.2.1.bundle.d.ts diff --git a/types/src/Aspect.d.ts b/dist/types/src/Aspect.d.ts similarity index 100% rename from types/src/Aspect.d.ts rename to dist/types/src/Aspect.d.ts diff --git a/types/src/ChartPosition.d.ts b/dist/types/src/ChartPosition.d.ts similarity index 100% rename from types/src/ChartPosition.d.ts rename to dist/types/src/ChartPosition.d.ts diff --git a/types/src/Horoscope.d.ts b/dist/types/src/Horoscope.d.ts similarity index 100% rename from types/src/Horoscope.d.ts rename to dist/types/src/Horoscope.d.ts diff --git a/types/src/House.d.ts b/dist/types/src/House.d.ts similarity index 100% rename from types/src/House.d.ts rename to dist/types/src/House.d.ts diff --git a/types/src/Origin.d.ts b/dist/types/src/Origin.d.ts similarity index 100% rename from types/src/Origin.d.ts rename to dist/types/src/Origin.d.ts diff --git a/types/src/Sign.d.ts b/dist/types/src/Sign.d.ts similarity index 100% rename from types/src/Sign.d.ts rename to dist/types/src/Sign.d.ts diff --git a/types/src/ZodiacPosition.d.ts b/dist/types/src/ZodiacPosition.d.ts similarity index 100% rename from types/src/ZodiacPosition.d.ts rename to dist/types/src/ZodiacPosition.d.ts diff --git a/types/src/constants.d.ts b/dist/types/src/constants.d.ts similarity index 100% rename from types/src/constants.d.ts rename to dist/types/src/constants.d.ts diff --git a/types/src/index.d.ts b/dist/types/src/index.d.ts similarity index 100% rename from types/src/index.d.ts rename to dist/types/src/index.d.ts diff --git a/types/src/utilities/aspects.d.ts b/dist/types/src/utilities/aspects.d.ts similarity index 100% rename from types/src/utilities/aspects.d.ts rename to dist/types/src/utilities/aspects.d.ts diff --git a/types/src/utilities/astrology.d.ts b/dist/types/src/utilities/astrology.d.ts similarity index 100% rename from types/src/utilities/astrology.d.ts rename to dist/types/src/utilities/astrology.d.ts diff --git a/types/src/utilities/astronomy.d.ts b/dist/types/src/utilities/astronomy.d.ts similarity index 100% rename from types/src/utilities/astronomy.d.ts rename to dist/types/src/utilities/astronomy.d.ts diff --git a/types/src/utilities/copy.d.ts b/dist/types/src/utilities/copy.d.ts similarity index 100% rename from types/src/utilities/copy.d.ts rename to dist/types/src/utilities/copy.d.ts diff --git a/types/src/utilities/language.d.ts b/dist/types/src/utilities/language.d.ts similarity index 100% rename from types/src/utilities/language.d.ts rename to dist/types/src/utilities/language.d.ts diff --git a/types/src/utilities/math.d.ts b/dist/types/src/utilities/math.d.ts similarity index 100% rename from types/src/utilities/math.d.ts rename to dist/types/src/utilities/math.d.ts diff --git a/types/src/utilities/validators.d.ts b/dist/types/src/utilities/validators.d.ts similarity index 100% rename from types/src/utilities/validators.d.ts rename to dist/types/src/utilities/validators.d.ts diff --git a/package.json b/package.json index a85c057..07d9e02 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.13", "description": "", "main": "dist/index", - "types": "dist/index", + "types": "dist/types/src/index", "module": "src/index.js", "repository": { "type": "git", diff --git a/tsconfig.json b/tsconfig.json index be05375..4d1f73a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,7 +19,7 @@ // Types should go into this directory. // Removing this would place the .d.ts files // next to the .js files - "outDir": "types" + "outDir": "dist/types" } } \ No newline at end of file From 72c243c51f719225cf943f9b6660171ce967cbee Mon Sep 17 00:00:00 2001 From: Lola Date: Sat, 17 Apr 2021 22:00:28 -0400 Subject: [PATCH 3/3] add files key to package.json --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 07d9e02..d3b6125 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,9 @@ "main": "dist/index", "types": "dist/types/src/index", "module": "src/index.js", + "files": [ + "dist" + ], "repository": { "type": "git", "url": "https://github.com/0xStarcat/CircularNatalHoroscopeJS.git"