type declarations for bundled files

pull/2842/head
Bogdan Savluk 6 years ago
parent c29c389a72
commit d5d5caba60

17
.gitignore vendored

@ -4,14 +4,14 @@
node_modules node_modules
*.map *.map
/src/compile/internal-exports.ts /src/compile/internal-exports.ts
/compiler.* /compiler.*js
/index.* /index.*js
/internal.* /internal.*js
/store.* /store.*js
/easing.* /easing.*js
/motion.* /motion.*js
/transition.* /transition.*js
/animate.* /animate.*js
/scratch/ /scratch/
/coverage/ /coverage/
/coverage.lcov/ /coverage.lcov/
@ -21,6 +21,7 @@ node_modules
/test/sourcemaps/samples/*/output.css.map /test/sourcemaps/samples/*/output.css.map
/yarn-error.log /yarn-error.log
_actual*.* _actual*.*
/dist
/site/cypress/screenshots/ /site/cypress/screenshots/
/site/__sapper__/ /site/__sapper__/

1
animate.d.ts vendored

@ -0,0 +1 @@
export * from './dist/animate';

1
compiler.d.ts vendored

@ -0,0 +1 @@
export * from './dist/compiler';

1
easing.d.ts vendored

@ -0,0 +1 @@
export * from './dist/easing';

1
index.d.ts vendored

@ -0,0 +1 @@
export * from './dist/index';

1
internal.d.ts vendored

@ -0,0 +1 @@
export * from './dist/internal';

1
motion.d.ts vendored

@ -0,0 +1 @@
export * from './dist/motion';

@ -32,8 +32,8 @@
"pretest": "npm run build", "pretest": "npm run build",
"posttest": "agadoo internal.mjs", "posttest": "agadoo internal.mjs",
"prepublishOnly": "export PUBLISH=true && npm run lint && npm test", "prepublishOnly": "export PUBLISH=true && npm run lint && npm test",
"tsd": "tsc -d src/store.ts --outDir .", "tsd": "tsc -p . --emitDeclarationOnly",
"typecheck": "tsc --noEmit" "typecheck": "tsc -p . --noEmit"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

1
store.d.ts vendored

@ -0,0 +1 @@
export * from './dist/store';

1
transition.d.ts vendored

@ -0,0 +1 @@
export * from './dist/transition';

@ -1,23 +1,34 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ES6", "target": "es2015",
"diagnostics": true, "module": "es6",
"noImplicitThis": true, "declarationDir": "./dist",
"noEmitOnError": true, "outDir": "./dist",
"allowJs": true, "declaration": true,
"lib": ["es5", "es6", "dom"], "noImplicitThis": true,
"importHelpers": true, "noEmitOnError": true,
"moduleResolution": "node", "lib": [
"baseUrl": ".", "es5",
"paths": { "es6",
"svelte/*": ["./src/*"] "dom",
} "es2015"
}, ],
"include": [ "importHelpers": true,
"src" "moduleResolution": "node",
], "baseUrl": ".",
"exclude": [ "paths": {
"./*.*js", "svelte/*": [
"node_modules" "./src/*"
] ]
},
"typeRoots": [
"node_modules/@types"
]
},
"include": [
"src/**/*"
],
"exclude": [
"dist"
]
} }

Loading…
Cancel
Save