diff --git a/examples/RGBFlow/RGBNode.vue b/examples/RGBFlow/RGBNode.vue index 37686681..32086421 100644 --- a/examples/RGBFlow/RGBNode.vue +++ b/examples/RGBFlow/RGBNode.vue @@ -1,4 +1,5 @@ {{ `${color} Amount`.toUpperCase() }} - + diff --git a/package.json b/package.json index a1e0f239..9cb4a88c 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "scripts": { "prepare": "ts-patch install -s", "dev": "vite", - "build": "export NODE_OPTIONS=\"--max-old-space-size=5120\" && vite build && vue-tsc --declaration --emitDeclarationOnly && tsc && rm -rf tmp", + "build": "export NODE_OPTIONS=\"--max-old-space-size=5120\" && vite build && vue-tsc --declaration --emitDeclarationOnly && tsc -p tsconfig.build.json && rm -rf tmp", "prepublishOnly": "yarn build", "test": "cypress run-ct", "test:open": "cypress open-ct", diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 00000000..831acd5d --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,44 @@ +{ + "compilerOptions": { + "outDir": "./tmp", + "baseUrl": ".", + "module": "ESNext", + "target": "es2017", + "lib": [ + "DOM", + "ESNext" + ], + "declaration": true, + "declarationDir": "./dist", + "strict": true, + "esModuleInterop": true, + "incremental": false, + "skipLibCheck": true, + "moduleResolution": "node", + "resolveJsonModule": true, + "noUnusedLocals": false, + "strictNullChecks": true, + "forceConsistentCasingInFileNames": true, + "types": [ + "vite/client", + "cypress" + ], + "paths": { + "~/*": [ + "src/*" + ] + }, + "plugins": [ + // Transform paths in output .d.ts files (Include this line if you output declarations files) + { "transform": "typescript-transform-paths", "afterDeclarations": true } + ] + }, + "include": ["src"], + "exclude": [ + "examples", + "node_modules", + "build", + "dist", + "cypress" + ] +}