File: drop-legacy-typescript-plugin.patch

package info (click to toggle)
node-timeago.js 4.0.2-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 540 kB
  • sloc: javascript: 58; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 938 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Description: update to @rollup/plugin-typescript
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2021-12-14

--- a/rollup.config.js
+++ b/rollup.config.js
@@ -4,13 +4,13 @@
  */
 
 import nodeResolve from '@rollup/plugin-node-resolve';
-import typescript from 'rollup-plugin-typescript';
+import typescript from '@rollup/plugin-typescript';
 
 module.exports = [
   {
     input: 'src/index.ts',
     output: {
-      file: 'dist/timeago.js',
+      dir: "dist",
       name: 'timeago',
       format: 'umd',
     },
@@ -22,7 +22,7 @@
   {
     input: 'src/full.ts',
     output: {
-      file: 'dist/timeago.full.min.js',
+      dir: "dist",
       name: 'timeago',
       format: 'umd',
     },
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -10,6 +10,7 @@
     "esModuleInterop": true,
     "pretty": true,
     "lib": ["dom", "esnext"],
+    "outDir": "dist",
     "skipLibCheck": true
   },
   "include": ["src/**/*"],