From 3aa81f2d3fc0017693e8b279af7211d45cd5b479 Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Wed, 13 Mar 2024 12:20:11 +0100 Subject: [PATCH] fix(npm): fix builds and exports BREAKING CHANGE: may break imports and/or cause new build errors --- .gitignore | 1 + apps/demo/package.json | 12 +- apps/demo/src/components/Bonnetje.vue | 2 +- .../ComponentWithoutElementProp.vue | 2 +- apps/demo/src/components/FormDiagnostics.vue | 2 +- .../FormGroupWithoutElementProp.vue | 2 +- apps/demo/src/components/Heading.vue | 2 +- .../src/components/template/FormGroup.vue | 2 +- apps/demo/src/components/template/TButton.vue | 2 +- .../src/components/template/THiddenInput.vue | 2 +- .../src/components/template/TNumberInput.vue | 2 +- .../src/components/template/TResetButton.vue | 2 +- apps/demo/src/components/template/TSelect.vue | 2 +- .../src/components/template/TSubmitButton.vue | 2 +- .../src/components/template/TTextInput.vue | 2 +- .../src/components/template/TToggleSwitch.vue | 2 +- .../components/template/TableFormGroup.vue | 2 +- apps/demo/src/composables/useAddressForm.ts | 4 +- apps/demo/src/forms/noPropForm.ts | 2 +- apps/demo/src/forms/shipmentOptionsForm.tsx | 2 +- apps/demo/src/main.ts | 2 +- apps/demo/src/test/elementTypes.types.ts | 2 +- .../src/validation/stringContainsValidator.ts | 2 +- apps/demo/src/views/EditAddressView.vue | 2 +- apps/demo/src/views/NoPropView.vue | 2 +- apps/demo/src/views/ShipmentOptionsView.vue | 2 +- apps/demo/vite.config.ts | 9 +- apps/vue-form-builder/package.json | 34 +- apps/vue-form-builder/vite.config.ts | 31 +- libs/build-vite/index.d.ts | 7 + libs/build-vite/index.js | 72 ++++ libs/build-vite/package.json | 35 ++ libs/core/package.json | 12 +- libs/core/vite.config.ts | 3 + libs/core/vitest.config.ts | 16 - libs/hook-manager/package.json | 13 +- libs/hook-manager/vite.config.ts | 3 + libs/hook-manager/vitest.config.ts | 12 - libs/plugin/package.json | 14 +- libs/plugin/src/devtools/createFieldsNodes.ts | 6 +- libs/plugin/vite.config.ts | 3 + libs/utils/package.json | 14 +- libs/utils/vite.config.ts | 3 + nx.json | 5 +- package.json | 10 +- tsconfig.json | 9 +- yarn.lock | 347 +++++++++++++++++- 47 files changed, 560 insertions(+), 161 deletions(-) create mode 100644 libs/build-vite/index.d.ts create mode 100644 libs/build-vite/index.js create mode 100755 libs/build-vite/package.json create mode 100644 libs/core/vite.config.ts delete mode 100644 libs/core/vitest.config.ts create mode 100644 libs/hook-manager/vite.config.ts delete mode 100644 libs/hook-manager/vitest.config.ts create mode 100644 libs/plugin/vite.config.ts create mode 100644 libs/utils/vite.config.ts diff --git a/.gitignore b/.gitignore index 1d8c234f..4ce3f390 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ vite.config.ts.timestamp-* *.sln *.suo *.sw? +*.tgz .AppleDouble .DS_Store .LSOverride diff --git a/apps/demo/package.json b/apps/demo/package.json index 4edea8bc..70bac34f 100755 --- a/apps/demo/package.json +++ b/apps/demo/package.json @@ -5,11 +5,15 @@ "license": "MIT", "type": "module", "scripts": { - "build": "vite build", - "build:dev": "vite build --mode development", - "clean": "rimraf dist", + "build": "run ws:vite:build \"$(pwd)\"", + "build:dev": "run ws:vite:build:dev \"$(pwd)\"", + "clean": "run ws:clean \"$(pwd)\"", "serve": "vite", - "typecheck": "run ws:vue:typecheck \"$(pwd)\"" + "test": "run ws:test \"$(pwd)\"", + "test:coverage": "run ws:test:coverage \"$(pwd)\"", + "test:run": "run ws:test:run \"$(pwd)\"", + "test:update": "run ws:test:update \"$(pwd)\"", + "typecheck": "run ws:vite:typecheck \"$(pwd)\"" }, "dependencies": { "@myparcel/constants": "^1.1.0", diff --git a/apps/demo/src/components/Bonnetje.vue b/apps/demo/src/components/Bonnetje.vue index 36f0842e..dbfd82fd 100644 --- a/apps/demo/src/components/Bonnetje.vue +++ b/apps/demo/src/components/Bonnetje.vue @@ -35,7 +35,7 @@ diff --git a/apps/demo/src/components/Heading.vue b/apps/demo/src/components/Heading.vue index 2f330f00..fbc6e3d9 100644 --- a/apps/demo/src/components/Heading.vue +++ b/apps/demo/src/components/Heading.vue @@ -4,7 +4,7 @@