Sv443 1 rok pred
rodič
commit
b0605b3a55

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
 node_modules/
 test.js
 test.ts
+*.map

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/BetterYTM.user.js


+ 0 - 7
dist/BetterYTM.user.js.LICENSE.txt

@@ -1,7 +0,0 @@
-/**
- * A simple and lightweight EventEmitter by TypeScript for Node.js or Browsers.
- *
- * @author billjs
- * @see https://github.com/billjs/event-emitter
- * @license MIT(https://opensource.org/licenses/MIT)
- */

+ 4 - 3
package.json

@@ -7,12 +7,13 @@
   "main": "./src/BetterYTM.user.ts",
   "type": "module",
   "scripts": {
-    "test": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm ./test.ts",
+    "test": "npm run node-ts -- ./test.ts",
     "build": "webpack",
-    "post-build": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm ./src/tools/post-build.ts",
+    "post-build": "npm run node-ts -- ./src/tools/post-build.ts",
     "serve": "http-server -s -c 5 -p 8710 .",
     "watch": "nodemon --exec \"npm run build && npm run serve\"",
-    "lint": "eslint ."
+    "lint": "eslint .",
+    "node-ts": "node --no-warnings=ExperimentalWarning --enable-source-maps --loader ts-node/esm"
   },
   "repository": {
     "type": "git",

+ 1 - 0
webpack.config.js

@@ -51,4 +51,5 @@ export default {
     filename: "BetterYTM.user.js",
     path: join(dirname(fileURLToPath(import.meta.url)), "/dist"),
   },
+  devtool: "source-map",
 };

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov