@windwalker-io/core 4.1.2 → 4.1.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.
package/fusionfile.mjs CHANGED
@@ -15,7 +15,7 @@ import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
15
15
  export async function debuggers() {
16
16
  return webpackVueBundle(
17
17
  'src/debugger/debugger.js',
18
- 'dist/debugger/index.js',
18
+ 'dist/debugger/debugger.js',
19
19
  (config) => {
20
20
  config.resolve.alias = {
21
21
  '@': path.resolve(path.resolve(), './src/debugger/') // Will be overwrite when compile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windwalker-io/core",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "type": "module",
5
5
  "description": "Windwalker Core JS package",
6
6
  "scripts": {
@@ -1,9 +1,3 @@
1
- /**
2
- * Part of funclass project.
3
- *
4
- * @copyright Copyright (C) 2021 LYRASOFT.
5
- * @license __LICENSE__
6
- */
7
1
 
8
2
  import { babel, ts } from '@windwalker-io/fusion';
9
3
  import path from 'path';
@@ -23,8 +17,8 @@ export function syncModuleScripts(source = 'src/Module', dest = 'www/assets/js/v
23
17
  export function syncModuleJS(source = 'src/Module', dest = 'www/assets/js/view/', options = {}) {
24
18
  return babel(
25
19
  [
20
+ ...findModules('**/assets/*.{js,mjs}'),
26
21
  `${source}/**/*.{js,mjs}`,
27
- ...findModules('**/assets/*.{js,mjs}')
28
22
  ],
29
23
  dest,
30
24
  {
@@ -40,10 +34,10 @@ export function syncModuleJS(source = 'src/Module', dest = 'www/assets/js/view/'
40
34
  export function syncModuleTS(source = 'src/Module', dest = 'www/assets/js/view/', options = {}) {
41
35
  return ts(
42
36
  [
43
- `${source}/**/*.ts`,
44
37
  // Todo: Research if tsconfig.json can replace this line
45
38
  'resources/assets/src/**/*.d.ts',
46
- ...findModules('**/assets/*.ts')
39
+ ...findModules('**/assets/*.ts'),
40
+ `${source}/**/*.ts`,
47
41
  ],
48
42
  dest,
49
43
  {
@@ -90,6 +90,7 @@ function findNpmVendors(composerJsons = []) {
90
90
  .map((composerJson) => {
91
91
  return [
92
92
  ...composerJson?.extra?.windwalker?.asset_vendors || [],
93
+ ...composerJson?.extra?.windwalker?.assets?.exposes || [],
93
94
  ...Object.keys(composerJson?.extra?.windwalker?.assets?.vendors || {})
94
95
  ]
95
96
  })
@@ -56,9 +56,9 @@ export function jsSync(source = 'src/Module', dest, options = {}) {
56
56
  // Legacy mode
57
57
  ts(
58
58
  [
59
- `${source}/**/*.ts`,
59
+ ...findModules('**/assets/*.ts'),
60
60
  'node_modules/@windwalker-io/unicorn/src/types/*.d.ts',
61
- ...findModules('**/assets/*.ts')
61
+ `${source}/**/*.ts`,
62
62
  ],
63
63
  dest,
64
64
  {