@myparcel-dev/pdk-admin-js 2.4.1 → 2.4.2-beta-oidc.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myparcel-dev/pdk-admin-js",
3
- "version": "2.4.1",
3
+ "version": "2.4.2-beta-oidc.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/myparcelnl/js-pdk.git",
@@ -20,22 +20,21 @@
20
20
  }
21
21
  },
22
22
  "types": "./dist/index.d.ts",
23
- "scripts": {
24
- "build": "vite build",
25
- "clean": "run ws:clean \"$(pwd)\"",
26
- "test": "run ws:test \"$(pwd)\"",
27
- "test:coverage": "run ws:test:coverage \"$(pwd)\"",
28
- "test:run": "run ws:test:run \"$(pwd)\"",
29
- "test:update": "run ws:test:update \"$(pwd)\""
30
- },
23
+ "files": [
24
+ "./src",
25
+ "./dist",
26
+ "CHANGELOG.md"
27
+ ],
31
28
  "dependencies": {
32
- "@myparcel-dev/pdk-admin": "^2.4.1"
29
+ "@myparcel-dev/pdk-admin": "^2.4.2-beta-oidc.0"
33
30
  },
34
31
  "devDependencies": {
35
32
  "@myparcel-dev/pdk-build-vite": "1.0.0-alpha.0",
33
+ "@myparcel-dev/ts-utils": "^1.15.0",
34
+ "@vitejs/plugin-vue": "^6.0.9",
35
+ "@vue/compiler-core": "3.4.31",
36
36
  "typescript": "^5.2.2",
37
- "vite": "^8.3.1",
38
- "vitest": "^4.1.11"
37
+ "vite": "^8.3.1"
39
38
  },
40
39
  "peerDependencies": {
41
40
  "vue": "3.4.31"
@@ -43,11 +42,19 @@
43
42
  "engines": {
44
43
  "node": ">=20"
45
44
  },
46
- "volta": {
47
- "extends": "../../package.json"
48
- },
49
45
  "publishConfig": {
50
46
  "access": "public"
51
47
  },
52
- "deployGroup": "admin"
48
+ "nx": {
49
+ "targets": {
50
+ "clean": {},
51
+ "test": {},
52
+ "test:coverage": {},
53
+ "test:run": {},
54
+ "test:update": {}
55
+ }
56
+ },
57
+ "scripts": {
58
+ "build": "vite build"
59
+ }
53
60
  }
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "rootDir": "./src"
5
- },
6
- "include": ["./src"]
7
- }
package/vite.config.ts DELETED
@@ -1,42 +0,0 @@
1
- import {type BaseElementNode, type Node} from '@vue/compiler-core';
2
- import vue from '@vitejs/plugin-vue';
3
- import {createViteConfig} from '@myparcel-dev/pdk-build-vite';
4
- import {isOfType} from '@myparcel-dev/ts-utils';
5
-
6
- const PROP_TYPE_DIRECTIVE = 7;
7
-
8
- const SHARED_CHUNK_MIN_IMPORTERS = 2;
9
-
10
- const stripDirective = (name: string) => (node: Node) => {
11
- if (!isOfType<BaseElementNode>(node, 'props')) {
12
- return;
13
- }
14
-
15
- node.props = node.props.filter((prop) => {
16
- return !(prop?.type === PROP_TYPE_DIRECTIVE && prop?.name === name);
17
- });
18
- };
19
-
20
- export default createViteConfig((env) => ({
21
- plugins: [
22
- vue({
23
- template: {
24
- compilerOptions: {
25
- nodeTransforms: env.mode === 'production' ? [stripDirective('test')] : [],
26
- },
27
- },
28
- }),
29
- ],
30
-
31
- build: {
32
- minify: false,
33
- rolldownOptions: {
34
- output: {
35
- // Unminified output keeps JSDoc by default, which adds about 100 KB of dependency comments.
36
- comments: {jsdoc: false},
37
- // Without this group, Rolldown splits the shared code into about 25 chunks that all load at startup.
38
- codeSplitting: {groups: [{name: 'shared', minShareCount: SHARED_CHUNK_MIN_IMPORTERS}]},
39
- },
40
- },
41
- },
42
- }));