Explorar el Código

fix: add test script

Sv443 hace 1 año
padre
commit
42ecd18872
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 1 0
      .gitignore
  2. 2 3
      package.json

+ 1 - 0
.gitignore

@@ -1,2 +1,3 @@
 node_modules/
 test.js
+test.ts

+ 2 - 3
package.json

@@ -6,7 +6,7 @@
   "main": "./src/BetterYTM.user.ts",
   "type": "module",
   "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1",
+    "test": "ts-node --esm ./test.ts",
     "build": "webpack",
     "post-build": "ts-node --esm ./src/tools/post-build.ts",
     "serve": "http-server -s -c 5 -p 8710 .",
@@ -19,8 +19,7 @@
   },
   "author": {
     "name": "Sv443",
-    "url": "https://github.com/Sv443",
-    "email": "[email protected]"
+    "url": "https://github.com/Sv443"
   },
   "license": "MIT",
   "bugs": {