@windwalker-io/core 4.1.0 → 4.1.1

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": "@windwalker-io/core",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "type": "module",
5
5
  "description": "Windwalker Core JS package",
6
6
  "scripts": {
@@ -97,7 +97,8 @@ export function syncModuleTS(source = 'src/Module', dest = 'www/assets/js/view/'
97
97
  return ts(
98
98
  [
99
99
  `${source}/**/*.ts`,
100
- 'node_modules/@windwalker-io/core/types/**.d.ts',
100
+ // Todo: Research if tsconfig.json can replace this line
101
+ 'resources/assets/src/**/*.d.ts',
101
102
  ...findModules('**/assets/*.ts')
102
103
  ],
103
104
  dest,
@@ -1,2 +1,2 @@
1
- declare module '*.jpg';
2
- declare module '*.svg';
1
+ declare module '*.jpg';
2
+ declare module '*.svg';
@@ -1,9 +1,9 @@
1
- const path = require('path');
2
-
3
- module.exports = {
4
- resolve: {
5
- alias: {
6
- '@': path.resolve(__dirname),
7
- }
8
- }
9
- };
1
+ const path = require('path');
2
+
3
+ module.exports = {
4
+ resolve: {
5
+ alias: {
6
+ '@': path.resolve(__dirname),
7
+ }
8
+ }
9
+ };
package/src/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- /**
2
- * Part of funclass project.
3
- *
4
- * @copyright Copyright (C) 2021 LYRASOFT.
5
- * @license __LICENSE__
6
- */
7
-
8
- export * from './asset-sync.mjs';
9
- export * from './install-vendors.mjs';
1
+ /**
2
+ * Part of funclass project.
3
+ *
4
+ * @copyright Copyright (C) 2021 LYRASOFT.
5
+ * @license __LICENSE__
6
+ */
7
+
8
+ export * from './asset-sync.mjs';
9
+ export * from './install-vendors.mjs';
@@ -87,8 +87,12 @@ function findNpmVendors(composerJsons = []) {
87
87
  .flat();
88
88
 
89
89
  const vendorsFromComposer = composerJsons
90
- .map((composerJson) => composerJson?.extra?.windwalker?.assets?.vendors || {})
91
- .map((vendors) => Object.keys(vendors))
90
+ .map((composerJson) => {
91
+ return [
92
+ ...composerJson?.extra?.windwalker?.asset_vendors || [],
93
+ ...Object.keys(composerJson?.extra?.windwalker?.assets?.vendors || {})
94
+ ]
95
+ })
92
96
  .flat();
93
97
 
94
98
  return [ ...new Set(vendors.concat(vendorsFromComposer)) ];
package/tsconfig.js.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "include": [
3
- "types/index.d.ts"
4
- ],
5
- "exclude": [
6
- "node_modules/**/*"
7
- ],
8
- "compilerOptions": {
9
- "allowJs": true,
10
- "module": "system",
11
- "moduleResolution": "node",
12
- "target": "es2020",
13
- "skipLibCheck": true
14
- }
15
- }
package/types/global.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import '@windwalker-io/unicorn';
2
- import 'systemjs';
3
- import 'jquery';
4
- import 'axios';
5
- import boostrap from 'bootstrap';
6
- import * as vue from 'vue';
7
-
8
- declare global {
9
- var S: typeof System;
10
- var bootstrap: typeof boostrap;
11
- var Vue: typeof vue;
12
- }
package/types/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
-
2
- import './global';
3
- import './shims-sweetalert';
4
- import './unicorn';
5
- import './vendor';
@@ -1,8 +0,0 @@
1
- import { SwalParams } from "sweetalert/typings/core";
2
-
3
- declare global {
4
- const swal: (...params: SwalParams) => Promise<any>;
5
- }
6
-
7
- // export default swal;
8
- // export as namespace swal;
@@ -1 +0,0 @@
1
- declare module "@unicorn/*";
package/types/vendor.d.ts DELETED
@@ -1 +0,0 @@
1
- declare module "@vendor/*";
@@ -1,14 +0,0 @@
1
- /**
2
- * Part of cati project.
3
- *
4
- * @copyright Copyright (C) 2023 __ORGANIZATION__.
5
- * @license __LICENSE__
6
- */
7
-
8
- import '@windwalker-io/unicorn';
9
- import 'systemjs';
10
- import 'axios';
11
-
12
- declare global {
13
- var S: typeof System;
14
- }
@@ -1,5 +0,0 @@
1
- declare module '*.vue' {
2
- import { defineComponent } from 'vue'
3
- const component: ReturnType<typeof defineComponent>
4
- export default component
5
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * Part of cati project.
3
- *
4
- * @copyright Copyright (C) 2023 __ORGANIZATION__.
5
- * @license __LICENSE__
6
- */
7
-
8
- import Vue from 'vue'
9
-
10
- declare module '@vue/runtime-core' {
11
- interface ComponentCustomProperties {
12
- $lang: Function;
13
- questionProp: Function;
14
- introtext: Function;
15
- }
16
- }