Skip to content

Commit

Permalink
Update examples tsconfig to use ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
JumpLink committed Feb 28, 2024
1 parent 88213c5 commit 68c8a44
Show file tree
Hide file tree
Showing 27 changed files with 57 additions and 19 deletions.
3 changes: 2 additions & 1 deletion examples/gjs/adw-1-hello/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"compilerOptions": {
"lib": ["ESNext"],
"lib": ["ESNext"],
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
7 changes: 6 additions & 1 deletion examples/gjs/gio-2-cat-alias/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
},
"include": ["@types/gjs.d.ts", "@types/dom.d.ts"],
"files": [
Expand Down
8 changes: 6 additions & 2 deletions examples/gjs/gio-2-cat-packages/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"compilerOptions": {
"baseUrl": ".",
"lib": ["ESNext"],
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "node"
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
},
"include": ["@girs/gjs", "@girs/gjs/dom", "@girs/gjs/ambient"],
"files": [
Expand Down
8 changes: 7 additions & 1 deletion examples/gjs/gio-2-cat-promisify/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
"lib": ["ESNext"],
"types": [],
"target": "ESNext",
"module": "ESNext"
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
},
"include": ["@types/gjs.d.ts", "@types/dom.d.ts"],
"files": [
Expand Down
3 changes: 2 additions & 1 deletion examples/gjs/gio-2-cat-types-only/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true
"alwaysStrict": true,
},
"include": ["@types/gjs.d.ts", "@types/dom.d.ts", "@types/gio-2.0.d.ts", "@types/glib-2.0.d.ts"],
"files": [
Expand Down
1 change: 1 addition & 0 deletions examples/gjs/gio-2-cat/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
1 change: 1 addition & 0 deletions examples/gjs/gio-2-dbus/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
3 changes: 2 additions & 1 deletion examples/gjs/gio-2-list-model/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"extends": "./tsconfig.alias.json",
"compilerOptions": {
"lib": ["ESNext"],
"lib": ["ESNext"],
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
3 changes: 2 additions & 1 deletion examples/gjs/glib-2-spawn-command/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": false,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
Expand Down
1 change: 1 addition & 0 deletions examples/gjs/glib-2-variant/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
3 changes: 2 additions & 1 deletion examples/gjs/gtk-3-browser/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": false,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
Expand Down
3 changes: 2 additions & 1 deletion examples/gjs/gtk-3-builder/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": false,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
Expand Down
1 change: 1 addition & 0 deletions examples/gjs/gtk-3-calc/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
3 changes: 2 additions & 1 deletion examples/gjs/gtk-3-editor/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": false,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
Expand Down
1 change: 1 addition & 0 deletions examples/gjs/gtk-3-gettext/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
1 change: 1 addition & 0 deletions examples/gjs/gtk-3-hello-2/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
3 changes: 2 additions & 1 deletion examples/gjs/gtk-3-hello/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": false,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
Expand Down
1 change: 1 addition & 0 deletions examples/gjs/gtk-3-template/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
1 change: 1 addition & 0 deletions examples/gjs/gtk-3-webkit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
1 change: 1 addition & 0 deletions examples/gjs/gtk-4-application/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/gjs/gtk-4-custom-widget/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
"moduleResolution":"Bundler"
},
"include": ["@types/gjs.d.ts", "@types/dom.d.ts"],
"files": [
Expand Down
3 changes: 2 additions & 1 deletion examples/gjs/gtk-4-list-store/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"extends": "./tsconfig.alias.json",
"compilerOptions": {
"lib": ["ESNext"],
"lib": ["ESNext"],
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
1 change: 1 addition & 0 deletions examples/gjs/gtk-4-template/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
8 changes: 6 additions & 2 deletions examples/gjs/run-async/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"compilerOptions": {
"baseUrl": ".",
"lib": ["ESNext"],
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "node"
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
},
"include": ["@girs/gjs", "@girs/gjs/ambient"],
"files": [
Expand Down
4 changes: 1 addition & 3 deletions examples/gjs/soup-3-http/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Bundler",
"noEmit": true,
"allowImportingTsExtensions": true,
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
1 change: 1 addition & 0 deletions examples/gjs/soup-3-websocket/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
1 change: 1 addition & 0 deletions examples/gjs/timers/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"types": [],
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down

0 comments on commit 68c8a44

Please sign in to comment.