Skip to content

Commit 465d12c

Browse files
committed
chore(#2674): prevent lib from being published
1 parent 1029f83 commit 465d12c

File tree

7 files changed

+13
-96
lines changed

7 files changed

+13
-96
lines changed

libs/angular-components/ng-package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"dest": "../../dist/libs/angular-components",
44
"lib": {
55
"entryFile": "src/index.ts"
6-
}
6+
},
7+
"allowedNonPeerDependencies": [
8+
"@abgov/ui-components-common"
9+
]
710
}

libs/angular-components/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"directory": "libs/angular-components"
1818
},
1919
"peerDependencies": {
20-
"@abgov/ui-components-common": "^0.0.0 || ^1.0.0",
2120
"@angular/forms": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
2221
"@angular/common": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
2322
"@angular/core": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"

libs/common/.releaserc.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

libs/common/package.json

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,7 @@
11
{
22
"name": "@abgov/ui-components-common",
33
"version": "0.0.0",
4-
"bugs": {
5-
"url": "https://github.com/GovAlta/ui-components/issues"
6-
},
7-
"keywords": [
8-
"Goab",
9-
"ui-components",
10-
"common"
11-
],
12-
"repository": {
13-
"type": "git",
14-
"url": "https://github.com/GovAlta/ui-components.git",
15-
"directory": "libs/common"
16-
},
17-
"license": "Apache-2.0",
18-
"description": "Government of Alberta - UI Web components",
19-
"type": "module",
20-
"main": "./index.js",
21-
"module": "./index.js",
22-
"publishConfig": {
23-
"access": "public"
24-
},
25-
"semantic-release": "semantic-release"
4+
"type": "commonjs",
5+
"main": "./src/index.js",
6+
"typings": "./src/index.d.ts"
267
}

libs/common/project.json

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,13 @@
88
"executor": "@nx/eslint:lint"
99
},
1010
"build": {
11-
"executor": "@nx/vite:build",
12-
"outputs": [
13-
"{options.outputPath}"
14-
],
15-
"defaultConfiguration": "production",
11+
"executor": "@nx/js:tsc",
12+
"outputs": ["{options.outputPath}"],
1613
"options": {
17-
"outputPath": "dist/libs/common"
18-
},
19-
"configurations": {
20-
"development": {
21-
"mode": "development"
22-
},
23-
"production": {
24-
"mode": "production"
25-
}
26-
}
27-
},
28-
"release": {
29-
"executor": "nx:run-commands",
30-
"options": {
31-
"command": "npx semantic-release -e ./libs/common/.releaserc.json"
14+
"outputPath": "dist/libs/common",
15+
"main": "libs/common/src/index.ts",
16+
"tsConfig": "libs/common/tsconfig.lib.json",
17+
"assets": ["libs/common/package.json"]
3218
}
3319
}
3420
},

libs/common/vite.config.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/// <reference types='vitest' />
22
import { defineConfig } from "vite";
3-
import dts from "vite-plugin-dts";
4-
import * as path from "path";
53
import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin";
64

75
export default defineConfig({
@@ -10,34 +8,5 @@ export default defineConfig({
108

119
plugins: [
1210
nxViteTsPaths(),
13-
dts({ entryRoot: "src", tsconfigPath: path.join(__dirname, "tsconfig.lib.json") }),
1411
],
15-
16-
// Uncomment this if you are using workers.
17-
// worker: {
18-
// plugins: [ nxViteTsPaths() ],
19-
// },
20-
21-
// Configuration for building your library.
22-
// See: https://vitejs.dev/guide/build.html#library-mode
23-
build: {
24-
outDir: "../../dist/libs/common",
25-
reportCompressedSize: true,
26-
commonjsOptions: {
27-
transformMixedEsModules: true,
28-
},
29-
lib: {
30-
// Could also be a dictionary or array of multiple entry points.
31-
entry: "src/index.ts",
32-
name: "common",
33-
fileName: "index",
34-
// Change this to the formats you want to support.
35-
// Don't forget to update your package.json as well.
36-
formats: ["es", "cjs"],
37-
},
38-
rollupOptions: {
39-
// External packages that should not be bundled into your library.
40-
external: [],
41-
},
42-
},
4312
});

libs/react-components/vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export default defineConfig({
1515
dts({
1616
entryRoot: "src",
1717
tsconfigPath: path.join(__dirname, "tsconfig.lib.json"),
18-
aliasesExclude: [/^@abgov\/ui-components-common$/],
1918
}),
2019
],
2120

0 commit comments

Comments
 (0)