arkenstone-ui 0.0.6 → 0.0.7

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,14 @@
1
1
  {
2
2
  "name": "arkenstone-ui",
3
3
  "private": false,
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "type": "module",
6
6
  "main": "./dist/arkenstone-ui.umd.js",
7
7
  "module": "./dist/arkenstone-ui.es.js",
8
8
  "types": "./dist/types/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
+ "types": "./dist/types/index.d.ts",
11
12
  "import": "./dist/arkenstone-ui.es.js",
12
13
  "require": "./dist/arkenstone-ui.umd.js"
13
14
  }
package/tsconfig.json CHANGED
@@ -1,22 +1,21 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "ESNext",
4
- "useDefineForClassFields": true,
5
- "lib": ["DOM", "DOM.Iterable", "ESNext"],
6
- "allowJs": false,
7
- "skipLibCheck": true,
8
- "esModuleInterop": true,
9
- "allowSyntheticDefaultImports": true,
10
- "strict": true,
11
- "forceConsistentCasingInFileNames": true,
12
4
  "module": "ESNext",
13
5
  "moduleResolution": "Node",
14
- "resolveJsonModule": true,
15
- "isolatedModules": true,
16
6
  "jsx": "react-jsx",
7
+
8
+ "strict": true,
9
+ "resolveJsonModule": true,
10
+ "esModuleInterop": true,
11
+ "skipLibCheck": true,
12
+
17
13
  "declaration": true,
18
- "declarationDir": "dist/types"
14
+ "declarationDir": "dist/types",
15
+ "emitDeclarationOnly": true,
16
+
17
+ "forceConsistentCasingInFileNames": true
19
18
  },
20
- "include": ["src/lib"],
21
- "exclude": ["node_modules", "dist"]
22
- }
19
+ "include": ["src/lib/**/*"],
20
+ "exclude": ["dist", "node_modules"]
21
+ }
package/vite.config.ts CHANGED
@@ -7,8 +7,10 @@ export default defineConfig({
7
7
  plugins: [
8
8
  react(),
9
9
  dts({
10
- entryRoot: 'src/lib',
11
- outDir: 'dist/types'
10
+ entryRoot: 'src/lib', // ensures correct index.d.ts
11
+ outDir: 'dist/types', // put types in dist/types
12
+ insertTypesEntry: true, // generate dist/types/index.d.ts
13
+ copyDtsFiles: true // copies any extra .d.ts
12
14
  })
13
15
  ],
14
16
  build: {
@@ -19,6 +21,7 @@ export default defineConfig({
19
21
  formats: ['es', 'umd']
20
22
  },
21
23
  rollupOptions: {
24
+ // do not bundle react
22
25
  external: ['react', 'react-dom'],
23
26
  output: {
24
27
  globals: {