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
*.map
/src/compile/internal-exports.ts
/compiler.*
/index.*
/internal.*
/store.*
/easing.*
/motion.*
/transition.*
/animate.*
/compiler.*js
/index.*js
/internal.*js
/store.*js
/easing.*js
/motion.*js
/transition.*js
/animate.*js
/scratch/
/coverage/
/coverage.lcov/
@ -21,6 +21,7 @@ node_modules
/test/sourcemaps/samples/*/output.css.map
/yarn-error.log
_actual*.*
/dist
/site/cypress/screenshots/
/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",
"posttest": "agadoo internal.mjs",
"prepublishOnly": "export PUBLISH=true && npm run lint && npm test",
"tsd": "tsc -d src/store.ts --outDir .",
"typecheck": "tsc --noEmit"
"tsd": "tsc -p . --emitDeclarationOnly",
"typecheck": "tsc -p . --noEmit"
},
"repository": {
"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": {
"target": "ES6",
"diagnostics": true,
"noImplicitThis": true,
"noEmitOnError": true,
"allowJs": true,
"lib": ["es5", "es6", "dom"],
"importHelpers": true,
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
"svelte/*": ["./src/*"]
}
},
"include": [
"src"
],
"exclude": [
"./*.*js",
"node_modules"
]
"compilerOptions": {
"target": "es2015",
"module": "es6",
"declarationDir": "./dist",
"outDir": "./dist",
"declaration": true,
"noImplicitThis": true,
"noEmitOnError": true,
"lib": [
"es5",
"es6",
"dom",
"es2015"
],
"importHelpers": true,
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
"svelte/*": [
"./src/*"
]
},
"typeRoots": [
"node_modules/@types"
]
},
"include": [
"src/**/*"
],
"exclude": [
"dist"
]
}

Loading…
Cancel
Save