spooder 2.0.2 → 2.0.4

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.
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "spooder",
3
- "module": "index.ts",
4
3
  "type": "module",
5
- "version": "2.0.2",
4
+ "version": "2.0.4",
6
5
  "exports": {
7
- "bun": "./src/api.ts"
6
+ ".": {
7
+ "bun": "./src/api.ts",
8
+ "import": "./src/api.ts"
9
+ }
8
10
  },
9
- "scripts": {
10
- "watcher": "bun ./src/watcher.ts"
11
+ "bin": {
12
+ "spooder": "./src/watcher.ts"
11
13
  },
12
14
  "devDependencies": {
13
15
  "bun-types": "^0.5.0"
package/src/api.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare function test_function(): void;
2
+ export { test_function };
@@ -0,0 +1 @@
1
+ #!/usr/bin/env bun
package/src/watcher.ts CHANGED
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env bun
2
+
1
3
  console.log('Begin test.');
2
4
 
3
5
  setInterval(() => {
package/tsconfig.json CHANGED
@@ -12,6 +12,8 @@
12
12
  "jsx": "react-jsx",
13
13
  "allowSyntheticDefaultImports": true,
14
14
  "forceConsistentCasingInFileNames": true,
15
+ "emitDeclarationOnly": true,
16
+ "declaration": true,
15
17
  "allowJs": true,
16
18
  "types": [
17
19
  "bun-types" // add Bun global