@suchipi/quickjs 0.1.1 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/README.md +11 -0
  2. package/build/aarch64-apple-darwin/bin/qjs +0 -0
  3. package/build/aarch64-apple-darwin/bin/qjsbootstrap +0 -0
  4. package/build/aarch64-apple-darwin/bin/qjsbootstrap-bytecode +0 -0
  5. package/build/aarch64-apple-darwin/bin/qjsc +0 -0
  6. package/build/aarch64-apple-darwin/bin/quickjs-run +0 -0
  7. package/build/aarch64-apple-darwin/extras/fib.so +0 -0
  8. package/build/aarch64-apple-darwin/extras/is-stdin-a-tty +0 -0
  9. package/build/aarch64-apple-darwin/extras/log-argv +0 -0
  10. package/build/aarch64-apple-darwin/extras/point.so +0 -0
  11. package/build/aarch64-apple-darwin/extras/run-test262 +0 -0
  12. package/build/aarch64-apple-darwin/extras/sample-program/sum +0 -0
  13. package/build/aarch64-apple-darwin/extras/stack-limit-test +0 -0
  14. package/build/aarch64-apple-darwin/lib/quickjs-core.a +0 -0
  15. package/build/aarch64-apple-darwin/lib/quickjs-full.a +0 -0
  16. package/build/aarch64-unknown-linux-gnu/bin/qjs +0 -0
  17. package/build/aarch64-unknown-linux-gnu/bin/qjsbootstrap +0 -0
  18. package/build/aarch64-unknown-linux-gnu/bin/qjsbootstrap-bytecode +0 -0
  19. package/build/aarch64-unknown-linux-gnu/bin/qjsc +0 -0
  20. package/build/aarch64-unknown-linux-gnu/bin/quickjs-run +0 -0
  21. package/build/aarch64-unknown-linux-gnu/extras/fib.so +0 -0
  22. package/build/aarch64-unknown-linux-gnu/extras/is-stdin-a-tty +0 -0
  23. package/build/aarch64-unknown-linux-gnu/extras/log-argv +0 -0
  24. package/build/aarch64-unknown-linux-gnu/extras/point.so +0 -0
  25. package/build/aarch64-unknown-linux-gnu/extras/run-test262 +0 -0
  26. package/build/aarch64-unknown-linux-gnu/extras/sample-program/sum +0 -0
  27. package/build/aarch64-unknown-linux-gnu/extras/stack-limit-test +0 -0
  28. package/build/aarch64-unknown-linux-gnu/lib/quickjs-core.a +0 -0
  29. package/build/aarch64-unknown-linux-gnu/lib/quickjs-full.a +0 -0
  30. package/build/aarch64-unknown-linux-musl/bin/qjs +0 -0
  31. package/build/aarch64-unknown-linux-musl/bin/qjsbootstrap +0 -0
  32. package/build/aarch64-unknown-linux-musl/bin/qjsbootstrap-bytecode +0 -0
  33. package/build/aarch64-unknown-linux-musl/bin/qjsc +0 -0
  34. package/build/aarch64-unknown-linux-musl/bin/quickjs-run +0 -0
  35. package/build/aarch64-unknown-linux-musl/extras/fib.so +0 -0
  36. package/build/aarch64-unknown-linux-musl/extras/is-stdin-a-tty +0 -0
  37. package/build/aarch64-unknown-linux-musl/extras/log-argv +0 -0
  38. package/build/aarch64-unknown-linux-musl/extras/point.so +0 -0
  39. package/build/aarch64-unknown-linux-musl/extras/run-test262 +0 -0
  40. package/build/aarch64-unknown-linux-musl/extras/sample-program/sum +0 -0
  41. package/build/aarch64-unknown-linux-musl/extras/stack-limit-test +0 -0
  42. package/build/aarch64-unknown-linux-musl/lib/quickjs-core.a +0 -0
  43. package/build/aarch64-unknown-linux-musl/lib/quickjs-full.a +0 -0
  44. package/build/aarch64-unknown-linux-static/bin/qjs +0 -0
  45. package/build/aarch64-unknown-linux-static/bin/qjsbootstrap +0 -0
  46. package/build/aarch64-unknown-linux-static/bin/qjsbootstrap-bytecode +0 -0
  47. package/build/aarch64-unknown-linux-static/bin/qjsc +0 -0
  48. package/build/aarch64-unknown-linux-static/bin/quickjs-run +0 -0
  49. package/build/aarch64-unknown-linux-static/extras/fib.so +0 -0
  50. package/build/aarch64-unknown-linux-static/extras/is-stdin-a-tty +0 -0
  51. package/build/aarch64-unknown-linux-static/extras/log-argv +0 -0
  52. package/build/aarch64-unknown-linux-static/extras/point.so +0 -0
  53. package/build/aarch64-unknown-linux-static/extras/run-test262 +0 -0
  54. package/build/aarch64-unknown-linux-static/extras/sample-program/sum +0 -0
  55. package/build/aarch64-unknown-linux-static/extras/stack-limit-test +0 -0
  56. package/build/aarch64-unknown-linux-static/lib/quickjs-core.a +0 -0
  57. package/build/aarch64-unknown-linux-static/lib/quickjs-full.a +0 -0
  58. package/build/{aarch64-unknown-linux-musl/dts → dts}/quickjs-libc.d.ts +50 -0
  59. package/build/dts/quickjs-libpointer.d.ts +14 -0
  60. package/build/x86_64-apple-darwin/bin/qjs +0 -0
  61. package/build/x86_64-apple-darwin/bin/qjsbootstrap +0 -0
  62. package/build/x86_64-apple-darwin/bin/qjsbootstrap-bytecode +0 -0
  63. package/build/x86_64-apple-darwin/bin/qjsc +0 -0
  64. package/build/x86_64-apple-darwin/bin/quickjs-run +0 -0
  65. package/build/x86_64-apple-darwin/extras/fib.so +0 -0
  66. package/build/x86_64-apple-darwin/extras/is-stdin-a-tty +0 -0
  67. package/build/x86_64-apple-darwin/extras/log-argv +0 -0
  68. package/build/x86_64-apple-darwin/extras/point.so +0 -0
  69. package/build/x86_64-apple-darwin/extras/run-test262 +0 -0
  70. package/build/x86_64-apple-darwin/extras/sample-program/sum +0 -0
  71. package/build/x86_64-apple-darwin/extras/stack-limit-test +0 -0
  72. package/build/x86_64-apple-darwin/lib/quickjs-core.a +0 -0
  73. package/build/x86_64-apple-darwin/lib/quickjs-full.a +0 -0
  74. package/build/x86_64-pc-windows-static/bin/qjs.exe +0 -0
  75. package/build/x86_64-pc-windows-static/bin/qjsbootstrap-bytecode.exe +0 -0
  76. package/build/x86_64-pc-windows-static/bin/qjsbootstrap.exe +0 -0
  77. package/build/x86_64-pc-windows-static/bin/qjsc.exe +0 -0
  78. package/build/x86_64-pc-windows-static/bin/quickjs-run.exe +0 -0
  79. package/build/x86_64-pc-windows-static/extras/fib.so +1 -0
  80. package/build/x86_64-pc-windows-static/extras/is-stdin-a-tty.exe +0 -0
  81. package/build/x86_64-pc-windows-static/extras/log-argv.exe +0 -0
  82. package/build/x86_64-pc-windows-static/extras/point.so +1 -0
  83. package/build/x86_64-pc-windows-static/extras/run-test262.exe +0 -0
  84. package/build/x86_64-pc-windows-static/extras/sample-program/sum.exe +0 -0
  85. package/build/x86_64-pc-windows-static/extras/stack-limit-test.exe +0 -0
  86. package/build/x86_64-pc-windows-static/lib/quickjs-core.a +0 -0
  87. package/build/x86_64-pc-windows-static/lib/quickjs-full.a +0 -0
  88. package/build/x86_64-unknown-linux-gnu/bin/qjs +0 -0
  89. package/build/x86_64-unknown-linux-gnu/bin/qjsbootstrap +0 -0
  90. package/build/x86_64-unknown-linux-gnu/bin/qjsbootstrap-bytecode +0 -0
  91. package/build/x86_64-unknown-linux-gnu/bin/qjsc +0 -0
  92. package/build/x86_64-unknown-linux-gnu/bin/quickjs-run +0 -0
  93. package/build/x86_64-unknown-linux-gnu/extras/fib.so +0 -0
  94. package/build/x86_64-unknown-linux-gnu/extras/is-stdin-a-tty +0 -0
  95. package/build/x86_64-unknown-linux-gnu/extras/log-argv +0 -0
  96. package/build/x86_64-unknown-linux-gnu/extras/point.so +0 -0
  97. package/build/x86_64-unknown-linux-gnu/extras/run-test262 +0 -0
  98. package/build/x86_64-unknown-linux-gnu/extras/sample-program/sum +0 -0
  99. package/build/x86_64-unknown-linux-gnu/extras/stack-limit-test +0 -0
  100. package/build/x86_64-unknown-linux-gnu/lib/quickjs-core.a +0 -0
  101. package/build/x86_64-unknown-linux-gnu/lib/quickjs-full.a +0 -0
  102. package/build/x86_64-unknown-linux-musl/bin/qjs +0 -0
  103. package/build/x86_64-unknown-linux-musl/bin/qjsbootstrap +0 -0
  104. package/build/x86_64-unknown-linux-musl/bin/qjsbootstrap-bytecode +0 -0
  105. package/build/x86_64-unknown-linux-musl/bin/qjsc +0 -0
  106. package/build/x86_64-unknown-linux-musl/bin/quickjs-run +0 -0
  107. package/build/x86_64-unknown-linux-musl/extras/fib.so +0 -0
  108. package/build/x86_64-unknown-linux-musl/extras/is-stdin-a-tty +0 -0
  109. package/build/x86_64-unknown-linux-musl/extras/log-argv +0 -0
  110. package/build/x86_64-unknown-linux-musl/extras/point.so +0 -0
  111. package/build/x86_64-unknown-linux-musl/extras/run-test262 +0 -0
  112. package/build/x86_64-unknown-linux-musl/extras/sample-program/sum +0 -0
  113. package/build/x86_64-unknown-linux-musl/extras/stack-limit-test +0 -0
  114. package/build/x86_64-unknown-linux-musl/lib/quickjs-core.a +0 -0
  115. package/build/x86_64-unknown-linux-musl/lib/quickjs-full.a +0 -0
  116. package/build/x86_64-unknown-linux-static/bin/qjs +0 -0
  117. package/build/x86_64-unknown-linux-static/bin/qjsbootstrap +0 -0
  118. package/build/x86_64-unknown-linux-static/bin/qjsbootstrap-bytecode +0 -0
  119. package/build/x86_64-unknown-linux-static/bin/qjsc +0 -0
  120. package/build/x86_64-unknown-linux-static/bin/quickjs-run +0 -0
  121. package/build/x86_64-unknown-linux-static/extras/fib.so +0 -0
  122. package/build/x86_64-unknown-linux-static/extras/is-stdin-a-tty +0 -0
  123. package/build/x86_64-unknown-linux-static/extras/log-argv +0 -0
  124. package/build/x86_64-unknown-linux-static/extras/point.so +0 -0
  125. package/build/x86_64-unknown-linux-static/extras/run-test262 +0 -0
  126. package/build/x86_64-unknown-linux-static/extras/sample-program/sum +0 -0
  127. package/build/x86_64-unknown-linux-static/extras/stack-limit-test +0 -0
  128. package/build/x86_64-unknown-linux-static/lib/quickjs-core.a +0 -0
  129. package/build/x86_64-unknown-linux-static/lib/quickjs-full.a +0 -0
  130. package/npm/index.js +0 -7
  131. package/package.json +1 -1
  132. package/tsconfig.json +11 -2
  133. package/build/aarch64-apple-darwin/dts/quickjs-libc.d.ts +0 -1309
  134. package/build/aarch64-unknown-linux-gnu/dts/inspect.d.ts +0 -123
  135. package/build/aarch64-unknown-linux-gnu/dts/quickjs-libbytecode.d.ts +0 -24
  136. package/build/aarch64-unknown-linux-gnu/dts/quickjs-libc.d.ts +0 -1309
  137. package/build/aarch64-unknown-linux-gnu/dts/quickjs-libcontext.d.ts +0 -179
  138. package/build/aarch64-unknown-linux-gnu/dts/quickjs.d.ts +0 -859
  139. package/build/aarch64-unknown-linux-musl/dts/inspect.d.ts +0 -123
  140. package/build/aarch64-unknown-linux-musl/dts/quickjs-libbytecode.d.ts +0 -24
  141. package/build/aarch64-unknown-linux-musl/dts/quickjs-libcontext.d.ts +0 -179
  142. package/build/aarch64-unknown-linux-musl/dts/quickjs.d.ts +0 -859
  143. package/build/aarch64-unknown-linux-static/dts/inspect.d.ts +0 -123
  144. package/build/aarch64-unknown-linux-static/dts/quickjs-libbytecode.d.ts +0 -24
  145. package/build/aarch64-unknown-linux-static/dts/quickjs-libc.d.ts +0 -1309
  146. package/build/aarch64-unknown-linux-static/dts/quickjs-libcontext.d.ts +0 -179
  147. package/build/aarch64-unknown-linux-static/dts/quickjs.d.ts +0 -859
  148. package/build/x86_64-apple-darwin/dts/inspect.d.ts +0 -123
  149. package/build/x86_64-apple-darwin/dts/quickjs-libbytecode.d.ts +0 -24
  150. package/build/x86_64-apple-darwin/dts/quickjs-libc.d.ts +0 -1309
  151. package/build/x86_64-apple-darwin/dts/quickjs-libcontext.d.ts +0 -179
  152. package/build/x86_64-apple-darwin/dts/quickjs.d.ts +0 -859
  153. package/build/x86_64-pc-windows-static/dts/inspect.d.ts +0 -123
  154. package/build/x86_64-pc-windows-static/dts/quickjs-libbytecode.d.ts +0 -24
  155. package/build/x86_64-pc-windows-static/dts/quickjs-libc.d.ts +0 -1309
  156. package/build/x86_64-pc-windows-static/dts/quickjs-libcontext.d.ts +0 -179
  157. package/build/x86_64-pc-windows-static/dts/quickjs.d.ts +0 -859
  158. package/build/x86_64-unknown-linux-gnu/dts/inspect.d.ts +0 -123
  159. package/build/x86_64-unknown-linux-gnu/dts/quickjs-libbytecode.d.ts +0 -24
  160. package/build/x86_64-unknown-linux-gnu/dts/quickjs-libc.d.ts +0 -1309
  161. package/build/x86_64-unknown-linux-gnu/dts/quickjs-libcontext.d.ts +0 -179
  162. package/build/x86_64-unknown-linux-gnu/dts/quickjs.d.ts +0 -859
  163. package/build/x86_64-unknown-linux-musl/dts/inspect.d.ts +0 -123
  164. package/build/x86_64-unknown-linux-musl/dts/quickjs-libbytecode.d.ts +0 -24
  165. package/build/x86_64-unknown-linux-musl/dts/quickjs-libc.d.ts +0 -1309
  166. package/build/x86_64-unknown-linux-musl/dts/quickjs-libcontext.d.ts +0 -179
  167. package/build/x86_64-unknown-linux-musl/dts/quickjs.d.ts +0 -859
  168. package/build/x86_64-unknown-linux-static/dts/inspect.d.ts +0 -123
  169. package/build/x86_64-unknown-linux-static/dts/quickjs-libbytecode.d.ts +0 -24
  170. package/build/x86_64-unknown-linux-static/dts/quickjs-libc.d.ts +0 -1309
  171. package/build/x86_64-unknown-linux-static/dts/quickjs-libcontext.d.ts +0 -179
  172. package/build/x86_64-unknown-linux-static/dts/quickjs.d.ts +0 -859
  173. /package/build/{aarch64-apple-darwin/dts → dts}/inspect.d.ts +0 -0
  174. /package/build/{aarch64-apple-darwin/dts → dts}/quickjs-libbytecode.d.ts +0 -0
  175. /package/build/{aarch64-apple-darwin/dts → dts}/quickjs-libcontext.d.ts +0 -0
  176. /package/build/{aarch64-apple-darwin/dts → dts}/quickjs.d.ts +0 -0
package/README.md CHANGED
@@ -56,10 +56,12 @@ Fork of the fantastic QuickJS engine by Fabrice Bellard, with the following chan
56
56
  - `os.{WUNTRACED,WEXITSTATUS,WTERMSIG,WSTOPSIG,WIFEXITED,WIFSIGNALED,WIFSTOPPED,WIFCONTINUED}` added, for working with `os.waitpid`.
57
57
  - `os.{S_IRWXU,S_IRUSR,S_IWUSR,S_IXUSR,S_IRWXG,S_IRGRP,S_IWGRP,S_IXGRP,S_IRWXO,S_IROTH,S_IWOTH,S_IXOTH}` added, for working with file modes.
58
58
  - `"b"` mode flag is now allowed in `std.fdopen`.
59
+ - `std.strftime` is now available (wrapper for libc `strftime`).
59
60
  - `setTimeout` and `clearTimeout` are now available as globals.
60
61
  - `setInterval` and `clearInterval` are now available as globals.
61
62
  - `String.cooked` is now available (no-op template tag, like the proposed [String.cooked](https://github.com/tc39/proposal-string-cooked)).
62
63
  - `String.dedent` is now available (template tag function, like the proposed [String.dedent](https://github.com/tc39/proposal-string-dedent)).
64
+ - Added `std.getuid`, `std.geteuid`, `std.getgid`, and `std.getegid` (wrappers for the libc functions of the same names).
63
65
 
64
66
  ## Changes to the `qjs` repl:
65
67
 
@@ -67,6 +69,7 @@ Fork of the fantastic QuickJS engine by Fabrice Bellard, with the following chan
67
69
  - The last error is accessible via the `_error` global
68
70
  - If a thrown error has additional properties added onto it, those are printed along with the thrown error
69
71
  - Ctrl+W deletes words backwards from the cursor position
72
+ - Blocking the main thread is allowed
70
73
 
71
74
  ## New binary: `qjsbootstrap`:
72
75
 
@@ -83,6 +86,10 @@ You can use this to create distributable binaries that run JS code without needi
83
86
 
84
87
  > Note: On FreeBSD, `qjsbootstrap` requires procfs. You can mount it with `mount -t procfs proc /proc`. I started some work to use libprocstat instead, but haven't completed it yet.
85
88
 
89
+ ## New binary: `quickjs-run`:
90
+
91
+ Barebones binary for running files, without any of the arg parsing logic from qjs. Good for testing some unusual cases, or writing programs with custom argv parsing logic.
92
+
86
93
  ## New module: "quickjs:bytecode"
87
94
 
88
95
  A Module that exposes QuickJS's value <-> bytecode (de)serialization APIs to JavaScript code. Generated bytecode can be combined with `qjsbootstrap-bytecode` in the same way that source code strings can be combined with `qjsbootstrap`.
@@ -91,6 +98,10 @@ A Module that exposes QuickJS's value <-> bytecode (de)serialization APIs to Jav
91
98
 
92
99
  A Module that allows JS code to create new JS Contexts (Realms). You can create new Contexts and run code inside them. Contexts can have certain features disabled (like eval) for security purposes. You can share values between Contexts. Contexts are destroyed when they get garbage-collected.
93
100
 
101
+ ## New module: "quickjs:pointer"
102
+
103
+ A barebones Module that exports a JS class which can be used to represent an opaque pointer. C modules can use the `js_new_pointer` function provided by this module to pass opaque pointer handles to users without needing to make their own wrapper class for stuff. This is mostly just useful in order to have a codified convention for how FFI libraries and such should represent foreign pointers.
104
+
94
105
  ## New library: `quickjs-utils`
95
106
 
96
107
  Helper structs, functions, and macros that make it easier to work with QuickJS objects in C code.
Binary file
Binary file
@@ -293,6 +293,38 @@ declare module "quickjs:std" {
293
293
  /** Return an object containing the environment variables as key-value pairs. */
294
294
  export function getenviron(): { [key: string]: string | undefined };
295
295
 
296
+ /**
297
+ * Return the real user ID of the calling process.
298
+ *
299
+ * This function throws an error on windows, because windows doesn't support
300
+ * the same uid/gid paradigm as Unix-like operating systems.
301
+ */
302
+ export function getuid(): number;
303
+
304
+ /**
305
+ * Return the effective user ID of the calling process.
306
+ *
307
+ * This function throws an error on windows, because windows doesn't support
308
+ * the same uid/gid paradigm as Unix-like operating systems.
309
+ */
310
+ export function geteuid(): number;
311
+
312
+ /**
313
+ * Return the real group ID of the calling process.
314
+ *
315
+ * This function throws an error on windows, because windows doesn't support
316
+ * the same uid/gid paradigm as Unix-like operating systems.
317
+ */
318
+ export function getgid(): number;
319
+
320
+ /**
321
+ * Return the effective group ID of the calling process.
322
+ *
323
+ * This function throws an error on windows, because windows doesn't support
324
+ * the same uid/gid paradigm as Unix-like operating systems.
325
+ */
326
+ export function getegid(): number;
327
+
296
328
  interface UrlGet {
297
329
  /**
298
330
  * Download `url` using the `curl` command line utility. Returns string
@@ -410,6 +442,20 @@ declare module "quickjs:std" {
410
442
  * - octal (0o prefix) and hexadecimal (0x prefix) numbers
411
443
  */
412
444
  export function parseExtJSON(str: string): any;
445
+
446
+ /**
447
+ * A wrapper around the standard C [strftime](https://en.cppreference.com/w/c/chrono/strftime).
448
+ * Formats a time/date into a format as specified by the user.
449
+ *
450
+ * @param maxBytes - The number of bytes to allocate for the string that will be returned
451
+ * @param format - Format string, using `%`-prefixed sequences as found in [this table](https://en.cppreference.com/w/c/chrono/strftime#Format_string).
452
+ * @param time - The Date object (or unix timestamp, in ms) to render.
453
+ */
454
+ export function strftime(
455
+ maxBytes: number,
456
+ format: string,
457
+ time: Date | number
458
+ ): string;
413
459
  }
414
460
 
415
461
  declare module "quickjs:os" {
@@ -1246,6 +1292,10 @@ interface RequireFunction {
1246
1292
 
1247
1293
  declare var require: RequireFunction;
1248
1294
 
1295
+ interface ImportMeta {
1296
+ require: RequireFunction;
1297
+ }
1298
+
1249
1299
  declare var setTimeout: typeof import("quickjs:os").setTimeout;
1250
1300
  declare var clearTimeout: typeof import("quickjs:os").clearTimeout;
1251
1301
 
@@ -0,0 +1,14 @@
1
+ declare module "quickjs:pointer" {
2
+ /**
3
+ * An opaque pointer value which can be passed around by JS
4
+ */
5
+ export class Pointer {
6
+ static NULL: Pointer;
7
+
8
+ /** Returns a boolean indicating whether the provided value is a `Pointer` object. */
9
+ static isPointer(value: any): boolean;
10
+
11
+ /** For debug logging purposes only; format can vary from platform to platform and is not guaranteed to be present or consistent. */
12
+ _info?: string;
13
+ }
14
+ }
Binary file
Binary file
@@ -0,0 +1 @@
1
+ Skipping shared library build: /opt/quickjs/src/shared-library-modules/example-fib/fib.c -
@@ -0,0 +1 @@
1
+ Skipping shared library build: /opt/quickjs/src/shared-library-modules/example-point/point.c -
package/npm/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  const path = require("path");
2
- const child_process = require("child_process");
3
2
 
4
3
  exports.buildArtifactsLocation = function buildArtifactsLocation() {
5
4
  return path.resolve(__dirname, "..", "build");
@@ -53,9 +52,3 @@ exports.identifyCurrentPlatform = function identifyCurrentPlatform() {
53
52
  }
54
53
  }
55
54
  };
56
-
57
- function runShell(cmd) {
58
- return child_process
59
- .spawnSync(cmd, { shell: true, encoding: "utf-8" })
60
- .stdout.trim();
61
- }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@suchipi/quickjs",
3
3
  "description": "Suchipi's QuickJS Fork",
4
- "version": "0.1.1",
4
+ "version": "0.2.1",
5
5
  "main": "./npm/index.js",
6
6
  "bin": {
7
7
  "qjs": "./npm/cli/qjs.js",
package/tsconfig.json CHANGED
@@ -1,17 +1,26 @@
1
1
  {
2
2
  "files": [
3
3
  "./src/quickjs/quickjs.d.ts",
4
+ "./src/inspect/inspect.d.ts",
4
5
  "./src/quickjs-libc/quickjs-libc.d.ts",
5
6
  "./src/quickjs-libbytecode/quickjs-libbytecode.d.ts",
6
7
  "./src/quickjs-libcontext/quickjs-libcontext.d.ts",
7
- ],
8
+ "./src/quickjs-libpointer/quickjs-libpointer.d.ts"
9
+ ],
8
10
  "include": ["./**/*.js", "./**/*.ts"],
9
- "exclude": ["oldtests/**/*", "build/**/*", "examples/**/*"],
11
+ "exclude": [
12
+ "tests/oldtests/**/*",
13
+ "build/**/*",
14
+ "examples/**/*",
15
+ "meta/microbench.js"
16
+ ],
10
17
  "compilerOptions": {
11
18
  "allowJs": true,
12
19
  "checkJs": true,
13
20
  "noEmit": true,
14
21
  "lib": ["ES2020"],
22
+ "module": "ES2020",
23
+ "moduleResolution": "node",
15
24
  "strictNullChecks": true,
16
25
  "esModuleInterop": true,
17
26
  "types": ["jest"]