uview-ultra-plus 1.10.0 → 1.10.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/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uview-ultra-plus",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"uview-ultra-plus": "dist/scripts/install.js"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
-
"release": "release-it",
|
|
15
|
+
"release": "npm run build && release-it",
|
|
16
16
|
"build": "node scripts/build.js",
|
|
17
17
|
"rollup": "rollup -c rollup.config.mjs",
|
|
18
18
|
"test": "echo \"No test specified\""
|
package/dist/scripts/install.js
CHANGED
|
@@ -33,12 +33,18 @@ function install() {
|
|
|
33
33
|
version = pkgData.version;
|
|
34
34
|
|
|
35
35
|
// Dynamically find items in the distribution folder
|
|
36
|
-
const
|
|
37
|
-
|
|
36
|
+
const packageRoot = path.dirname(pkgPath_self);
|
|
37
|
+
// During development, sources are in root. In production/dist, they are in dist/
|
|
38
|
+
let distDir = path.join(packageRoot, 'dist');
|
|
39
|
+
if (!fs.existsSync(distDir)) {
|
|
40
|
+
distDir = packageRoot;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const excludes = ['scripts', 'package.json', 'index.js', 'index.d.ts', 'theme.scss', 'node_modules', 'dist', 'vendor'];
|
|
38
44
|
|
|
39
45
|
filesToExtractRaw = fs.readdirSync(distDir).filter(item => {
|
|
40
46
|
// We want to extract folders/files that are NOT in the exclude list
|
|
41
|
-
return !excludes.includes(item);
|
|
47
|
+
return !excludes.includes(item) && !item.startsWith('.');
|
|
42
48
|
});
|
|
43
49
|
|
|
44
50
|
if (filesToExtractRaw.length === 0) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uview-ultra",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "uview-ultra",
|
|
9
|
-
"version": "1.
|
|
9
|
+
"version": "1.10.0",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"clipboard": "^2.0.11",
|
|
12
12
|
"dayjs": "^1.11.3"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uview-ultra-plus",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"uview-ultra-plus": "dist/scripts/install.js"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
-
"release": "release-it",
|
|
15
|
+
"release": "npm run build && release-it",
|
|
16
16
|
"build": "node scripts/build.js",
|
|
17
17
|
"rollup": "rollup -c rollup.config.mjs",
|
|
18
18
|
"test": "echo \"No test specified\""
|