Skip to content

Commit

Permalink
Merge pull request #108 from infnibor/main
Browse files Browse the repository at this point in the history
- Fix `SyntaxError: Cannot use import statement outside a module`  (Required pre-merger production testing and possible fixes)
  • Loading branch information
appujet authored Oct 5, 2024
2 parents 26053e6 + 9860c4e commit a7cc6c0
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
.env
yarn.lock
pnpm-lock.yaml
package-lock.json
11 changes: 1 addition & 10 deletions nodes.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@
"restVersion": "v4",
"authorId": "612666923502796818"
},
{
"identifier": "Elf Lights.out.",
"host": "lavalink3.theelf.tech",
"port": 50050,
"password": "discord.gg/PqVQgXTweC",
"secure": false,
"restVersion": "v3",
"authorId": "612666923502796818"
},
{
"identifier": "MYHM.Space",
"host": "ll3.myhm.space",
Expand Down Expand Up @@ -296,4 +287,4 @@
"restVersion": "v3",
"authorId": "1138138158949732483"
}
]
]
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
"description": "A list of free and available public Lavalink nodes with their live status. Feel free to make a pull request!",
"main": "update_nodes.js",
"scripts": {
"start": "ts-node update_nodes.ts"
"start": "npx ts-node update_nodes.ts"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@libsql/client": "^0.9.0",
"@libsql/client": "^0.8.0",
"@prisma/adapter-libsql": "^5.18.0",
"@prisma/client": "^5.18.0"
"@prisma/client": "^5.18.0",
"dotenv": "^16.4.5"
},
"devDependencies": {
"@types/node": "^22.5.0",
Expand Down
11 changes: 11 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "node",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true
}
}

9 changes: 5 additions & 4 deletions update_nodes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as fs from 'fs';
import { PrismaClient } from '@prisma/client';
import { PrismaLibSQL } from "@prisma/adapter-libsql";
import { createClient } from "@libsql/client";
const fs = require('fs');
const { PrismaClient } = require('@prisma/client');
const { PrismaLibSQL } = require('@prisma/adapter-libsql');
const { createClient } = require('@libsql/client');
require('dotenv').config();

const libsql = createClient({
url: process.env.TURSO_DATABASE_URL || '',
Expand Down

0 comments on commit a7cc6c0

Please sign in to comment.