phecda-module 2.0.2-alpha.2 → 2.0.3

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.
@@ -1,23 +1,23 @@
1
1
 
2
- > phecda-module@2.0.2-alpha.2 build D:\myproject\2024\9\phecda\packages\module
2
+ > phecda-module@2.0.3 build /home/runner/work/phecda/phecda/packages/module
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.ts, src/vite.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.3.6
8
- CLI Using tsup config: D:\myproject\2024\9\phecda\packages\module\tsup.config.ts
7
+ CLI tsup v8.5.0
8
+ CLI Using tsup config: /home/runner/work/phecda/phecda/packages/module/tsup.config.ts
9
9
  CLI Target: esnext
10
10
  CJS Build start
11
11
  ESM Build start
12
- CJS dist\vite.js 1.34 KB
13
- CJS dist\index.js 3.15 KB
14
- CJS ⚡️ Build success in 139ms
15
- ESM dist\index.mjs 1.86 KB
16
- ESM dist\vite.mjs 519.00 B
17
- ESM ⚡️ Build success in 144ms
12
+ CJS dist/vite.js 1.34 KB
13
+ CJS dist/index.js 3.15 KB
14
+ CJS ⚡️ Build success in 53ms
15
+ ESM dist/index.mjs 1.86 KB
16
+ ESM dist/vite.mjs 519.00 B
17
+ ESM ⚡️ Build success in 63ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 2867ms
20
- DTS dist\index.d.ts 191.00 B
21
- DTS dist\vite.d.ts 210.00 B
22
- DTS dist\index.d.mts 191.00 B
23
- DTS dist\vite.d.mts 210.00 B
19
+ DTS ⚡️ Build success in 6224ms
20
+ DTS dist/index.d.ts 191.00 B
21
+ DTS dist/vite.d.ts 210.00 B
22
+ DTS dist/index.d.mts 191.00 B
23
+ DTS dist/vite.d.mts 210.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # phecda-module
2
2
 
3
+ ## 2.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f6025c7]
8
+ - Updated dependencies [2ffe1d4]
9
+ - phecda-core@4.2.0
10
+
11
+ ## 2.0.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [4d5cc84]
16
+ - Updated dependencies [dd27622]
17
+ - Updated dependencies [d8fdd4e]
18
+ - Updated dependencies [c1b7d65]
19
+ - phecda-core@4.1.0
20
+
3
21
  ## 2.0.2-alpha.2
4
22
 
5
23
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-module",
3
- "version": "2.0.2-alpha.2",
3
+ "version": "2.0.3",
4
4
  "description": "provide DI and HMR for modules by reflect-metadata and vite",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,7 +33,7 @@
33
33
  "license": "MIT",
34
34
  "dependencies": {
35
35
  "reflect-metadata": "^0.1.13",
36
- "phecda-core": "4.1.0-alpha.2"
36
+ "phecda-core": "4.2.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "tsup": "^8.1.0"
package/src/env.d.ts CHANGED
@@ -1,3 +1,3 @@
1
-
2
- declare var __DEV__: boolean
3
- declare var __PS_HMR__:((files:string[])=>void)[]
1
+
2
+ declare var __DEV__: boolean
3
+ declare var __PS_HMR__:((files:string[])=>void)[]
package/src/index.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './core'
2
- export * from 'phecda-core'
1
+ export * from './core'
2
+ export * from 'phecda-core'
package/src/vite.ts CHANGED
@@ -1,13 +1,13 @@
1
- export default function (reg = /\.module\.ts$/) {
2
- return {
3
- name: 'phecda-module-hmr',
4
- enforce: 'pre',
5
- apply: 'serve',
6
- transform(code: string, id: string) {
7
- if (reg.test(id)) {
8
- return code += `\nif (import.meta.hot)
9
- import.meta.hot.accept(__PHECDA_MODULE_UPDATE__)`
10
- }
11
- },
12
- }
13
- }
1
+ export default function (reg = /\.module\.ts$/) {
2
+ return {
3
+ name: 'phecda-module-hmr',
4
+ enforce: 'pre',
5
+ apply: 'serve',
6
+ transform(code: string, id: string) {
7
+ if (reg.test(id)) {
8
+ return code += `\nif (import.meta.hot)
9
+ import.meta.hot.accept(__PHECDA_MODULE_UPDATE__)`
10
+ }
11
+ },
12
+ }
13
+ }
package/tsconfig.json CHANGED
@@ -1,28 +1,28 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "outDir": "dist",
5
- "sourceMap": false,
6
- "target": "esnext",
7
- "useDefineForClassFields": false,
8
- "module": "esnext",
9
- "moduleResolution": "node",
10
- "allowJs": false,
11
- "strict": true,
12
- "noUnusedLocals": true,
13
- "resolveJsonModule": true,
14
- "esModuleInterop": true,
15
- "removeComments": false,
16
- "strictPropertyInitialization": false,
17
- "experimentalDecorators": true,
18
- "emitDecoratorMetadata": true,
19
- "jsx": "preserve",
20
- "lib": [
21
- "esnext",
22
- "dom"
23
- ],
24
- "types": [
25
- "node"
26
- ]
27
- }
28
- }
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "outDir": "dist",
5
+ "sourceMap": false,
6
+ "target": "esnext",
7
+ "useDefineForClassFields": false,
8
+ "module": "esnext",
9
+ "moduleResolution": "node",
10
+ "allowJs": false,
11
+ "strict": true,
12
+ "noUnusedLocals": true,
13
+ "resolveJsonModule": true,
14
+ "esModuleInterop": true,
15
+ "removeComments": false,
16
+ "strictPropertyInitialization": false,
17
+ "experimentalDecorators": true,
18
+ "emitDecoratorMetadata": true,
19
+ "jsx": "preserve",
20
+ "lib": [
21
+ "esnext",
22
+ "dom"
23
+ ],
24
+ "types": [
25
+ "node"
26
+ ]
27
+ }
28
+ }
package/tsup.config.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { Options } from 'tsup'
2
-
3
- export const tsup: Options = {
4
- entry: ['src/index.ts', 'src/vite.ts'],
5
- format: ['cjs', 'esm'],
6
- dts: true,
7
- splitting: false,
8
- shims: false,
9
- }
1
+ import type { Options } from 'tsup'
2
+
3
+ export const tsup: Options = {
4
+ entry: ['src/index.ts', 'src/vite.ts'],
5
+ format: ['cjs', 'esm'],
6
+ dts: true,
7
+ splitting: false,
8
+ shims: false,
9
+ }