Skip to content

Commit d399c5e

Browse files
committed
add support for typescript files
1 parent 0ebc3c1 commit d399c5e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

nativescript.webpack.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const solid = (config, env) => {
5151
generate: 'universal',
5252
},
5353
],
54+
"@babel/typescript"
5455
],
5556
env: {
5657
development: {

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.0.4-alpha.2",
44
"description": "SolidJS to work with NativeScript",
55
"main": "src/index.js",
6+
"types": "index.d.ts",
67
"scripts": {},
78
"keywords": [
89
"{N}",
@@ -20,7 +21,8 @@
2021
"homepage": "https://github.com/nativescript-community/solid-js",
2122
"peerDependencies": {
2223
"dominative": "^0.0.7-alpha.2",
23-
"solid-js": "^1.6.6"
24+
"solid-js": "^1.6.6",
25+
"@babel/preset-typescript": "7.18.6"
2426
},
2527
"publishConfig": {
2628
"access": "public"

0 commit comments

Comments
 (0)