hp-design-system 0.0.8 → 0.0.11

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.
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ text: string;
3
+ $props: {
4
+ readonly text?: string | undefined;
5
+ };
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { App } from 'vue';
2
+ import HpButton from './components/Button.vue';
3
+ declare const HpDesignSystem: {
4
+ install(app: App): void;
5
+ };
6
+ export default HpDesignSystem;
7
+ export { HpButton };
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ import './style.css';
package/package.json CHANGED
@@ -1,19 +1,21 @@
1
1
  {
2
2
  "name": "hp-design-system",
3
- "version": "0.0.8",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "main": "dist/hp-design-system.umd.js",
6
6
  "module": "dist/hp-design-system.esm.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {
9
- ".": {
10
- "import": "./dist/hp-design-system.esm.js",
11
- "require": "./dist/hp-design-system.umd.js"
9
+ ".": {
10
+ "import": "./dist/hp-design-system.esm.js",
11
+ "require": "./dist/hp-design-system.umd.js"
12
12
  }
13
13
  },
14
14
  "scripts": {
15
15
  "dev": "vite",
16
- "build": "vue-tsc -p tsconfig.build.json && vite build",
16
+ "clean:cache": "rmdir /s /q node_modules\\.vite",
17
+ "build": "npm run build:types && vite build",
18
+ "build:types": "vue-tsc --project tsconfig.json",
17
19
  "preview": "vite preview"
18
20
  },
19
21
  "dependencies": {
package/tsconfig.app.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "resolveJsonModule": true,
15
15
  "isolatedModules": true,
16
16
  "moduleDetection": "force",
17
- "noEmit": true,
17
+ "noEmit": false, // Habilita a geração de arquivos de saída
18
18
  "jsx": "preserve",
19
19
 
20
20
  /* Linting */
@@ -7,7 +7,7 @@
7
7
  "moduleResolution": "bundler",
8
8
  "allowSyntheticDefaultImports": true,
9
9
  "strict": true,
10
- "noEmit": true
10
+ "noEmit": false // Permitir a geração de arquivos de saída
11
11
  },
12
12
  "include": ["vite.config.ts"]
13
13
  }
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "declarationDir": "dist",
6
- "outDir": "dist"
7
- },
8
- "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"]
9
- }
10
-
package/tsconfig.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "esnext",
4
- "module": "esnext",
5
- "strict": true,
6
- "moduleResolution": "node",
7
- "esModuleInterop": true,
8
- "skipLibCheck": true,
9
- "outDir": "dist",
10
- "declaration": true,
11
- "types": ["vite/client", "node"]
12
- },
13
- "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"],
14
- "exclude": ["node_modules"]
15
- }
package/vite.config.ts DELETED
@@ -1,23 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import vue from '@vitejs/plugin-vue'
3
- import path from 'path'
4
-
5
- export default defineConfig({
6
- plugins: [vue()],
7
- build: {
8
- lib: {
9
- entry: path.resolve(__dirname, 'src/index.ts'),
10
- name: 'HpDesignSystem',
11
- fileName: (format) => `hp-design-system.${format}.js`
12
- },
13
- rollupOptions: {
14
- external: ['vue'],
15
- output: {
16
- globals: {
17
- vue: 'Vue'
18
- },
19
- exports: 'named'
20
- }
21
- }
22
- }
23
- })