@open-pioneer/vite-plugin-pioneer 6.0.3 → 7.0.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": "@open-pioneer/vite-plugin-pioneer",
3
- "version": "6.0.3",
3
+ "version": "7.0.0",
4
4
  "description": "The vite plugin provided by this package is required by Open Pioneer Trails applications.",
5
5
  "keywords": [
6
6
  "open-pioneer-trails"
@@ -9,21 +9,24 @@
9
9
  "license": "Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "https://github.com/open-pioneer/trails-build-tools.git",
12
+ "url": "git+https://github.com/open-pioneer/trails-build-tools.git",
13
13
  "directory": "packages/vite-plugin"
14
14
  },
15
15
  "files": [
16
- "dist/**/*.js",
17
- "dist/**/*.js.map",
16
+ "dist",
18
17
  "client.d.ts",
19
- "types.d.ts",
20
18
  "CHANGELOG.md",
21
19
  "README.md",
22
20
  "LICENSE"
23
21
  ],
24
22
  "type": "module",
25
- "main": "dist/index.js",
26
- "types": "types.d.ts",
23
+ "exports": {
24
+ ".": "./dist/index.js",
25
+ "./package.json": "./package.json",
26
+ "./client": {
27
+ "types": "./client.d.ts"
28
+ }
29
+ },
27
30
  "dependencies": {
28
31
  "@babel/generator": "^7.29.7",
29
32
  "@babel/template": "^7.29.7",
@@ -31,10 +34,11 @@
31
34
  "debug": "^4.4.3",
32
35
  "js-yaml": "^5.2.2",
33
36
  "oxc-resolver": "^11.24.2",
37
+ "tinyglobby": "^0.2.17",
34
38
  "vitefu": "^1.1.3",
35
39
  "zod": "^4.4.3",
36
40
  "zod-validation-error": "^5.0.0",
37
- "@open-pioneer/build-common": "^4.0.3"
41
+ "@open-pioneer/build-common": "^5.0.0"
38
42
  },
39
43
  "devDependencies": {
40
44
  "@open-pioneer/runtime": ">= 4.0.0",
@@ -42,14 +46,17 @@
42
46
  "@types/babel__template": "^7.4.4",
43
47
  "@types/debug": "^4.1.13",
44
48
  "@types/js-yaml": "^4.0.9",
49
+ "publint": "^0.3.22",
45
50
  "rimraf": "^6.1.3",
46
51
  "rolldown": "^1.2.0",
47
52
  "sass": "^1.101.7",
48
53
  "tinyglobby": "^0.2.17",
54
+ "tsdown": "^0.22.14",
55
+ "typescript": "^6.0.3",
49
56
  "vite": "^8.1.5",
50
- "@open-pioneer/vite-plugin-pioneer": "^6.0.3",
51
- "build-tools": "0.0.1",
52
- "@open-pioneer/build-support": "^3.1.3"
57
+ "@open-pioneer/build-support": "^4.0.0",
58
+ "@open-pioneer/vite-plugin-pioneer": "^7.0.0",
59
+ "shared-configs": "0.0.1"
53
60
  },
54
61
  "peerDependencies": {
55
62
  "@open-pioneer/runtime": "*",
@@ -61,9 +68,8 @@
61
68
  },
62
69
  "scripts": {
63
70
  "clean": "rimraf dist temp",
64
- "build": "node build.mjs build",
65
- "build-dev": "node build.mjs buildDev",
66
- "dev": "node build.mjs watch",
71
+ "build": "tsdown",
72
+ "dev": "tsdown --watch",
67
73
  "test": "vitest"
68
74
  }
69
75
  }
package/types.d.ts DELETED
@@ -1,72 +0,0 @@
1
- // SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- import { type Plugin } from "vite";
5
-
6
- export interface PioneerPluginOptions {
7
- /**
8
- * Whether to include the root `index.html` site (by default at `src/index.html`) in the build.
9
- *
10
- * The file is always available when using the development server, but may be excluded when
11
- * when deploying the project as it often contains content for testing.
12
- *
13
- * @default false
14
- */
15
- rootSite?: boolean;
16
-
17
- /**
18
- * List of sites to include in the build.
19
- *
20
- * Sites are located at `src/<SITE>/index.html` by default.
21
- * Note that `<SITE>` may contain nested directory paths.
22
- *
23
- * @default []
24
- */
25
- sites?: string[] | undefined | false;
26
-
27
- /**
28
- * List of apps to include in the build.
29
- * Apps typically register a custom web component.
30
- *
31
- * Apps are located at `src/apps/<APP_NAME>/app.<EXT>` by default.
32
- * When an app is included in the build, the `dist` directory will
33
- * contain an `<APP_NAME>.js` that can be directly imported from the browser.
34
- *
35
- * You can also use custom app locations instead of placing your apps in the `apps` directory,
36
- * see examples below.
37
- *
38
- * Multiple extensions are supported for the app's main entry point: .ts, .tsx, .js and .jsx.
39
- *
40
- * @example
41
- * Distribute the app at `src/apps/my-app/app.ts` as `my-app.js`:
42
- *
43
- * ```js
44
- * {
45
- * apps: ["my-app"]
46
- * }
47
- * ```
48
- *
49
- * Distribute the app at `src/custom/location/app.js` as `output-app.js`:
50
- *
51
- * ```js
52
- * {
53
- * apps: {
54
- * "output-app": "custom/location/app.js"
55
- * }
56
- * }
57
- * ```
58
- *
59
- * @default []
60
- */
61
- apps?: string[] | AdvancedAppOptions | undefined | false;
62
- }
63
-
64
- export interface AdvancedAppOptions {
65
- /**
66
- * Associates an app name (the name of the .js file in the output directory)
67
- * with the location of the app source code (a file name relative to the source directory).
68
- */
69
- [appName: string]: string;
70
- }
71
-
72
- declare function pioneer(options?: PioneerPluginOptions): Plugin[];