svelte2tsx
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -39,3 +39,11 @@ export interface SvelteCompiledToTsx { | ||
namespace?: string; | ||
/** | ||
* When setting this to 'dts', all tsx/jsx code and the template code will be thrown out, | ||
* all shims will be inlined and the component export is written differently. | ||
* Only the `code` property will be set on the returned element. | ||
* Use this as an intermediate step to generate type definitions from a component. | ||
* It is expected to pass the result to TypeScript which should handle emitting the d.ts files. | ||
*/ | ||
mode?: 'tsx' | 'dts' | ||
} | ||
): SvelteCompiledToTsx |
{ | ||
"name": "svelte2tsx", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Convert Svelte components to TSX for type checking", | ||
@@ -47,6 +47,7 @@ "author": "David Pershouse", | ||
"scripts": { | ||
"build": "rollup -c", | ||
"build": "npm run create-files && rollup -c", | ||
"prepublishOnly": "npm run build", | ||
"dev": "rollup -c -w", | ||
"test": "mocha test/test.ts" | ||
"dev": "npm run create-files && rollup -c -w", | ||
"test": "npm run create-files && mocha test/test.ts", | ||
"create-files": "node ./create-files.js" | ||
}, | ||
@@ -53,0 +54,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
441920
10974