@plugin-light/shared 1.0.2 → 1.0.9
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/lib/cdn/index.d.ts +1 -0
- package/lib/css/index.d.ts +1 -1
- package/lib/index.d.ts +24 -19
- package/lib/index.js +24191 -304
- package/lib/loader-options/index.d.ts +1 -0
- package/lib/npm-publish/index.d.ts +1 -0
- package/lib/pipeline/index.d.ts +1 -0
- package/lib/pipeline/pipeline.d.ts +4 -0
- package/lib/repo/index.d.ts +1 -0
- package/lib/repo/repo.d.ts +7 -0
- package/package.json +6 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function shouldUseLoader(this: any, defaultPlatforms?: Array<string>): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NPM_PACKAGES_LIST, type NpmPackageConfig } from '@plugin-light/const';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getPipelineRunLink } from './pipeline';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { extractRepoPath } from './repo';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 从 repo 地址中提取仓库路径
|
|
3
|
+
* 支持 git@git.aow.com:pmd-mobile/pmd-h5/plugin-light.git 和 https://github.com/novlan1/plugin-light 两种格式
|
|
4
|
+
* @param repo 仓库地址
|
|
5
|
+
* @returns 仓库路径,如 pmd-mobile/pmd-h5/plugin-light
|
|
6
|
+
*/
|
|
7
|
+
export declare function extractRepoPath(repo: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plugin-light/shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"homepage": "https://novlan1.github.io/docs/plugin-light/zh/plugin-light-shared.html",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/novlan1/plugin-light/issues"
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
"lib/"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"
|
|
19
|
+
"loader-utils": "^2.0.4",
|
|
20
|
+
"@plugin-light/const": "^0.1.1"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"t-comm": "^3.0.33"
|
|
20
24
|
},
|
|
21
25
|
"scripts": {
|
|
22
26
|
"build": "rm -rf lib && rollup -c",
|