Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion libs/angular-components/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"dest": "../../dist/libs/angular-components",
"lib": {
"entryFile": "src/index.ts"
}
},
"allowedNonPeerDependencies": [
"@abgov/ui-components-common"
]
}
1 change: 0 additions & 1 deletion libs/angular-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"directory": "libs/angular-components"
},
"peerDependencies": {
"@abgov/ui-components-common": "^0.0.0 || ^1.0.0",
"@angular/forms": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"@angular/common": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"@angular/core": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
Expand Down
20 changes: 0 additions & 20 deletions libs/common/.releaserc.json

This file was deleted.

25 changes: 3 additions & 22 deletions libs/common/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,7 @@
{
"name": "@abgov/ui-components-common",
"version": "0.0.0",
"bugs": {
"url": "https://github.com/GovAlta/ui-components/issues"
},
"keywords": [
"Goab",
"ui-components",
"common"
],
"repository": {
"type": "git",
"url": "https://github.com/GovAlta/ui-components.git",
"directory": "libs/common"
},
"license": "Apache-2.0",
"description": "Government of Alberta - UI Web components",
"type": "module",
"main": "./index.js",
"module": "./index.js",
"publishConfig": {
"access": "public"
},
"semantic-release": "semantic-release"
"type": "commonjs",
"main": "./src/index.js",
"typings": "./src/index.d.ts"
}
26 changes: 6 additions & 20 deletions libs/common/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,13 @@
"executor": "@nx/eslint:lint"
},
"build": {
"executor": "@nx/vite:build",
"outputs": [
"{options.outputPath}"
],
"defaultConfiguration": "production",
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/common"
},
"configurations": {
"development": {
"mode": "development"
},
"production": {
"mode": "production"
}
}
},
"release": {
"executor": "nx:run-commands",
"options": {
"command": "npx semantic-release -e ./libs/common/.releaserc.json"
"outputPath": "dist/libs/common",
"main": "libs/common/src/index.ts",
"tsConfig": "libs/common/tsconfig.lib.json",
"assets": ["libs/common/package.json"]
}
}
},
Expand Down
31 changes: 0 additions & 31 deletions libs/common/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/// <reference types='vitest' />
import { defineConfig } from "vite";
import dts from "vite-plugin-dts";
import * as path from "path";
import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin";

export default defineConfig({
Expand All @@ -10,34 +8,5 @@ export default defineConfig({

plugins: [
nxViteTsPaths(),
dts({ entryRoot: "src", tsconfigPath: path.join(__dirname, "tsconfig.lib.json") }),
],

// Uncomment this if you are using workers.
// worker: {
// plugins: [ nxViteTsPaths() ],
// },

// Configuration for building your library.
// See: https://vitejs.dev/guide/build.html#library-mode
build: {
outDir: "../../dist/libs/common",
reportCompressedSize: true,
commonjsOptions: {
transformMixedEsModules: true,
},
lib: {
// Could also be a dictionary or array of multiple entry points.
entry: "src/index.ts",
name: "common",
fileName: "index",
// Change this to the formats you want to support.
// Don't forget to update your package.json as well.
formats: ["es", "cjs"],
},
rollupOptions: {
// External packages that should not be bundled into your library.
external: [],
},
},
});
1 change: 0 additions & 1 deletion libs/react-components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default defineConfig({
dts({
entryRoot: "src",
tsconfigPath: path.join(__dirname, "tsconfig.lib.json"),
aliasesExclude: [/^@abgov\/ui-components-common$/],
}),
],

Expand Down
Loading