ng-comps 1.0.1 → 1.0.2

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.
package/angular.json CHANGED
@@ -14,14 +14,15 @@
14
14
  "sourceRoot": "src",
15
15
  "prefix": "app",
16
16
  "architect": {
17
- "build": {
18
- "builder": "@angular/build:application",
19
- "options": {
20
- "browser": "src/main.ts",
21
- "tsConfig": "tsconfig.app.json",
22
- "assets": [
23
- {
24
- "glob": "**/*",
17
+ "build": {
18
+ "builder": "@angular/build:application",
19
+ "options": {
20
+ "outputPath": "dist/ng-comps-demo",
21
+ "browser": "src/main.ts",
22
+ "tsConfig": "tsconfig.app.json",
23
+ "assets": [
24
+ {
25
+ "glob": "**/*",
25
26
  "input": "public"
26
27
  }
27
28
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-comps",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "ng": "ng",
@@ -1,5 +1,5 @@
1
- import { readFileSync, writeFileSync, existsSync } from 'node:fs';
2
- import { resolve } from 'node:path';
1
+ import { readFileSync, writeFileSync, existsSync, rmSync } from 'node:fs';
2
+ import { resolve } from 'node:path';
3
3
 
4
4
  const root = process.cwd();
5
5
  const rootPkgPath = resolve(root, 'package.json');
@@ -12,26 +12,45 @@ if (!existsSync(distDir)) {
12
12
 
13
13
  const rootPkg = JSON.parse(readFileSync(rootPkgPath, 'utf8'));
14
14
  const angularVersion = rootPkg.dependencies['@angular/core'];
15
- const cdkVersion = rootPkg.dependencies['@angular/cdk'];
16
- const materialVersion = rootPkg.dependencies['@angular/material'];
17
- const rxjsVersion = rootPkg.dependencies.rxjs;
18
- const tslibVersion = rootPkg.dependencies.tslib;
19
-
20
- const packageJson = {
21
- name: rootPkg.name,
22
- version: rootPkg.version,
23
- description: 'Angular UI components for mf-design-system',
15
+ const cdkVersion = rootPkg.dependencies['@angular/cdk'];
16
+ const materialVersion = rootPkg.dependencies['@angular/material'];
17
+ const rxjsVersion = rootPkg.dependencies.rxjs;
18
+ const tslibVersion = rootPkg.dependencies.tslib;
19
+
20
+ for (const extraPath of [
21
+ resolve(distDir, 'browser'),
22
+ resolve(distDir, '3rdpartylicenses.txt'),
23
+ resolve(distDir, 'prerendered-routes.json')
24
+ ]) {
25
+ if (existsSync(extraPath)) {
26
+ rmSync(extraPath, { recursive: true, force: true });
27
+ }
28
+ }
29
+
30
+ const packageJson = {
31
+ name: rootPkg.name,
32
+ version: rootPkg.version,
33
+ description: 'Angular UI components for mf-design-system',
24
34
  keywords: ['angular', 'components', 'ui', 'design-system', 'material'],
25
35
  license: rootPkg.license || 'MIT',
26
36
  type: 'module',
27
- sideEffects: false,
28
- main: './fesm2022/ng-comps.mjs',
29
- module: './fesm2022/ng-comps.mjs',
30
- typings: './types/ng-comps.d.ts',
31
- exports: {
32
- '.': {
33
- types: './types/ng-comps.d.ts',
34
- default: './fesm2022/ng-comps.mjs'
37
+ sideEffects: false,
38
+ main: './fesm2022/ng-comps.mjs',
39
+ module: './fesm2022/ng-comps.mjs',
40
+ typings: './types/ng-comps.d.ts',
41
+ files: [
42
+ 'fesm2022/ng-comps.mjs',
43
+ 'types/ng-comps.d.ts',
44
+ 'src/styles.css',
45
+ 'src/theme',
46
+ 'README.md',
47
+ 'LICENSE',
48
+ 'package.json'
49
+ ],
50
+ exports: {
51
+ '.': {
52
+ types: './types/ng-comps.d.ts',
53
+ default: './fesm2022/ng-comps.mjs'
35
54
  },
36
55
  './styles.css': './src/styles.css',
37
56
  './theme/tokens.css': './src/theme/tokens.css',