From 7cecb99b4896dfe5e8516c21953e553b420b8870 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Mon, 27 May 2019 12:50:00 +0200 Subject: [PATCH] move dist to types --- .flowconfig | 2 +- .gitignore | 2 +- animate.d.ts | 2 +- compiler.d.ts | 2 +- easing.d.ts | 2 +- index.d.ts | 2 +- internal.d.ts | 2 +- motion.d.ts | 2 +- package.json | 2 +- store.d.ts | 2 +- transition.d.ts | 2 +- tsconfig.json | 6 +++--- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.flowconfig b/.flowconfig index 2ed2b0c713..c1961b7a6b 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,5 +1,5 @@ [ignore] -/dist/.* +/types/.* [include] diff --git a/.gitignore b/.gitignore index 35888493fa..847d12a540 100644 --- a/.gitignore +++ b/.gitignore @@ -21,7 +21,7 @@ node_modules /test/sourcemaps/samples/*/output.css.map /yarn-error.log _actual*.* -/dist +/types /site/cypress/screenshots/ /site/__sapper__/ diff --git a/animate.d.ts b/animate.d.ts index 3284bfd8c0..e0c5aebb0e 100644 --- a/animate.d.ts +++ b/animate.d.ts @@ -1 +1 @@ -export * from './dist/animate'; +export * from './types/animate'; diff --git a/compiler.d.ts b/compiler.d.ts index 977efefb6d..e2a3820bc5 100644 --- a/compiler.d.ts +++ b/compiler.d.ts @@ -1 +1 @@ -export * from './dist/compiler'; +export * from './types/compiler'; diff --git a/easing.d.ts b/easing.d.ts index c07764f4f0..9af6dd9ca7 100644 --- a/easing.d.ts +++ b/easing.d.ts @@ -1 +1 @@ -export * from './dist/easing'; +export * from './types/easing'; diff --git a/index.d.ts b/index.d.ts index e4ddc9027e..a3d3b4a0d6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1 +1 @@ -export * from './dist/index'; +export * from './types/index'; diff --git a/internal.d.ts b/internal.d.ts index be034cd88a..135ffe7611 100644 --- a/internal.d.ts +++ b/internal.d.ts @@ -1 +1 @@ -export * from './dist/internal'; +export * from './types/internal'; diff --git a/motion.d.ts b/motion.d.ts index 2fdaa86c4e..4cc764a2c9 100644 --- a/motion.d.ts +++ b/motion.d.ts @@ -1 +1 @@ -export * from './dist/motion'; +export * from './types/motion'; diff --git a/package.json b/package.json index a8ef5134e0..8adfbda2ff 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "module": "index.mjs", "main": "index", "files": [ - "dist", + "types", "compiler.js", "register.js", "index.*", diff --git a/store.d.ts b/store.d.ts index 2c1307011b..6d345dce57 100644 --- a/store.d.ts +++ b/store.d.ts @@ -1 +1 @@ -export * from './dist/store'; +export * from './types/store'; diff --git a/transition.d.ts b/transition.d.ts index 54d5f036da..58f51d94d5 100644 --- a/transition.d.ts +++ b/transition.d.ts @@ -1 +1 @@ -export * from './dist/transition'; +export * from './types/transition'; diff --git a/tsconfig.json b/tsconfig.json index 994bc61b85..6c4e786f6d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "target": "es2015", "module": "es6", - "declarationDir": "./dist", - "outDir": "./dist", + "declarationDir": "./types", + "outDir": "./types", "declaration": true, "noImplicitThis": true, "noEmitOnError": true, @@ -30,6 +30,6 @@ "src/**/*" ], "exclude": [ - "dist" + "types" ] }