summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Kaffee☕ <45464816+0ql@users.noreply.github.com> 2021-08-14 01:31:44 +0200
committerGravatar GitHub <noreply@github.com> 2021-08-13 16:31:44 -0700
commit57b0c170e8fdbbfcc54ce0d7f9c039be67a1e1ab (patch)
tree4e941002a07ffd1ec289821a926a59f7716dcd27
parentada4058a3e89f48dea5d7a716852c6e469e89e59 (diff)
downloadastro-57b0c170e8fdbbfcc54ce0d7f9c039be67a1e1ab.tar.gz
astro-57b0c170e8fdbbfcc54ce0d7f9c039be67a1e1ab.tar.zst
astro-57b0c170e8fdbbfcc54ce0d7f9c039be67a1e1ab.zip
change the typescript moduleResolution of all examples to "node" (#1108)
* Fixes many Errors related to typescript Fix Svelte Component Errors importing Svelte standard functions using typescript see https://github.com/snowpackjs/astro/issues/403. Also fixes "ReferenceError: exports is not defined" see https://github.com/snowpackjs/astro/issues/969. * change typescript default moduleresolution in examples see #403
-rw-r--r--examples/blog-multiple-authors/tsconfig.json3
-rw-r--r--examples/blog/tsconfig.json3
-rw-r--r--examples/docs/tsconfig.json3
-rw-r--r--examples/framework-lit/tsconfig.json3
-rw-r--r--examples/framework-multiple/tsconfig.json3
-rw-r--r--examples/framework-preact/tsconfig.json3
-rw-r--r--examples/framework-react/tsconfig.json3
-rw-r--r--examples/framework-solid/tsconfig.json3
-rw-r--r--examples/framework-svelte/tsconfig.json3
-rw-r--r--examples/framework-vue/tsconfig.json3
-rw-r--r--examples/portfolio/tsconfig.json3
-rw-r--r--examples/snowpack/tsconfig.json3
-rw-r--r--examples/starter/tsconfig.json3
-rw-r--r--examples/with-markdown-plugins/tsconfig.json3
-rw-r--r--examples/with-markdown/tsconfig.json3
-rw-r--r--examples/with-nanostores/tsconfig.json3
-rw-r--r--examples/with-tailwindcss/tsconfig.json3
17 files changed, 51 insertions, 0 deletions
diff --git a/examples/blog-multiple-authors/tsconfig.json b/examples/blog-multiple-authors/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/blog-multiple-authors/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/blog/tsconfig.json b/examples/blog/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/blog/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/docs/tsconfig.json b/examples/docs/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/docs/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/framework-lit/tsconfig.json b/examples/framework-lit/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/framework-lit/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/framework-multiple/tsconfig.json b/examples/framework-multiple/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/framework-multiple/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/framework-preact/tsconfig.json b/examples/framework-preact/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/framework-preact/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/framework-react/tsconfig.json b/examples/framework-react/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/framework-react/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/framework-solid/tsconfig.json b/examples/framework-solid/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/framework-solid/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/framework-svelte/tsconfig.json b/examples/framework-svelte/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/framework-svelte/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/framework-vue/tsconfig.json b/examples/framework-vue/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/framework-vue/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/portfolio/tsconfig.json b/examples/portfolio/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/portfolio/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/snowpack/tsconfig.json b/examples/snowpack/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/snowpack/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/starter/tsconfig.json b/examples/starter/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/starter/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/with-markdown-plugins/tsconfig.json b/examples/with-markdown-plugins/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/with-markdown-plugins/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/with-markdown/tsconfig.json b/examples/with-markdown/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/with-markdown/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/with-nanostores/tsconfig.json b/examples/with-nanostores/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/with-nanostores/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file
diff --git a/examples/with-tailwindcss/tsconfig.json b/examples/with-tailwindcss/tsconfig.json
new file mode 100644
index 000000000..a384bc3bb
--- /dev/null
+++ b/examples/with-tailwindcss/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "moduleResolution": "node"
+} \ No newline at end of file