ogi-addon 0.1.0 → 0.1.2

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/tsconfig.json CHANGED
@@ -5,9 +5,8 @@
5
5
  "ESNext",
6
6
  "DOM"
7
7
  ], // specifies which default set of type definitions to use ("DOM", "ES6", etc)
8
- "outDir": "build", // .js (as well as .d.ts, .js.map, etc.) files will be emitted into this directory.,
9
8
  "removeComments": true, // Strips all comments from TypeScript files when converting into JavaScript- you rarely read compiled code so this saves space
10
- "target": "ES6", // Target environment. Most modern browsers support ES6, but you may want to set it to newer or older. (defaults to ES3)
9
+ "target": "ESNext", // Target environment. Most modern browsers support ES6, but you may want to set it to newer or older. (defaults to ES3)
11
10
  "declaration": true,
12
11
 
13
12
  // Module resolution
@@ -29,7 +28,7 @@
29
28
  // Linter Checks
30
29
  "noImplicitReturns": true,
31
30
  "noUnusedLocals": true, // Report errors on unused local variables.
32
- "noUnusedParameters": true // Report errors on unused parameters in functions
31
+ "noUnusedParameters": true, // Report errors on unused parameters in functions
33
32
  },
34
33
  "include": ["./**/*.ts"],
35
34
  "exclude": [
package/tsup.config.js ADDED
@@ -0,0 +1,11 @@
1
+ import { defineConfig } from 'tsup'
2
+
3
+ export default defineConfig({
4
+ entry: ['src/main.ts'],
5
+ splitting: false,
6
+ sourcemap: true,
7
+ clean: true,
8
+ format: ['cjs', 'esm'],
9
+ dts: true,
10
+ outDir: 'build',
11
+ })