just-scripts 2.1.2 → 2.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/CHANGELOG.json +30 -3
- package/CHANGELOG.md +15 -3
- package/README.md +17 -0
- package/lib/tasks/webpackTask.js +1 -1
- package/lib/tasks/webpackTask.js.map +1 -1
- package/package.json +3 -2
- package/src/tasks/webpackTask.ts +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,34 @@
|
|
|
2
2
|
"name": "just-scripts",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Fri, 10 Mar 2023 08:01:47 GMT",
|
|
6
|
+
"tag": "just-scripts_v2.1.3",
|
|
7
|
+
"version": "2.1.3",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "elcraig@microsoft.com",
|
|
12
|
+
"package": "just-scripts",
|
|
13
|
+
"commit": "8484242cfb5e360a8de6ac4a1190b5d488034be8",
|
|
14
|
+
"comment": "Update readmes and homepage links"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "rlanda@microsoft.com",
|
|
18
|
+
"package": "just-scripts",
|
|
19
|
+
"commit": "77dab724dfe9e042887caa13e8f2a7e66e33b570",
|
|
20
|
+
"comment": "Include onCompile in filtered out object keys for webpack task"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "just-scripts",
|
|
25
|
+
"comment": "Bump just-task to v1.7.2",
|
|
26
|
+
"commit": "c774d7a88862a888570c814357efc911ce8ac2ee"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"date": "Thu, 09 Mar 2023 08:02:10 GMT",
|
|
6
33
|
"tag": "just-scripts_v2.1.2",
|
|
7
34
|
"version": "2.1.2",
|
|
8
35
|
"comments": {
|
|
@@ -19,13 +46,13 @@
|
|
|
19
46
|
"author": "beachball",
|
|
20
47
|
"package": "just-scripts",
|
|
21
48
|
"comment": "Bump just-scripts-utils to v2.0.0",
|
|
22
|
-
"commit": "
|
|
49
|
+
"commit": "77dab724dfe9e042887caa13e8f2a7e66e33b570"
|
|
23
50
|
},
|
|
24
51
|
{
|
|
25
52
|
"author": "beachball",
|
|
26
53
|
"package": "just-scripts",
|
|
27
54
|
"comment": "Bump just-task to v1.7.1",
|
|
28
|
-
"commit": "
|
|
55
|
+
"commit": "77dab724dfe9e042887caa13e8f2a7e66e33b570"
|
|
29
56
|
}
|
|
30
57
|
]
|
|
31
58
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
# Change Log - just-scripts
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 10 Mar 2023 08:01:47 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 2.1.3
|
|
8
|
+
|
|
9
|
+
Fri, 10 Mar 2023 08:01:47 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Update readmes and homepage links (elcraig@microsoft.com)
|
|
14
|
+
- Include onCompile in filtered out object keys for webpack task (rlanda@microsoft.com)
|
|
15
|
+
- Bump just-task to v1.7.2
|
|
16
|
+
|
|
7
17
|
## 2.1.2
|
|
8
18
|
|
|
9
|
-
Thu, 09 Mar 2023 08:02:
|
|
19
|
+
Thu, 09 Mar 2023 08:02:10 GMT
|
|
10
20
|
|
|
11
21
|
### Patches
|
|
12
22
|
|
|
@@ -82,7 +92,9 @@ Mon, 16 May 2022 20:50:34 GMT
|
|
|
82
92
|
|
|
83
93
|
### Major changes
|
|
84
94
|
|
|
85
|
-
|
|
95
|
+
**BREAKING CHANGE:** `copyInstructionsTask` now creates symlinks by default (see [#584](https://github.com/microsoft/just/pull/584)). To disable this behavior, pass the option `noSymlink: true`.
|
|
96
|
+
|
|
97
|
+
`just-scripts` v2 also requires Node >= 14 (as of `2.1.0`).
|
|
86
98
|
|
|
87
99
|
## 1.8.2
|
|
88
100
|
|
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# just-scripts
|
|
2
|
+
|
|
3
|
+
[](https://badge.fury.io/js/just-scripts)
|
|
4
|
+
[](https://www.npmjs.com/package/just-scripts)
|
|
5
|
+
|
|
6
|
+
<!-- start shared -->
|
|
7
|
+
|
|
8
|
+
`Just` is a library that organizes build tasks for your JS projects. It consists of:
|
|
9
|
+
|
|
10
|
+
- `just-task`: a build task definition library
|
|
11
|
+
- `just-scripts`: sane preset build flows for node and browser projects featuring TypeScript, Webpack and Jest
|
|
12
|
+
|
|
13
|
+
## Documentation
|
|
14
|
+
|
|
15
|
+
All the documentation is online at https://microsoft.github.io/just/
|
|
16
|
+
|
|
17
|
+
<!-- end shared -->
|
package/lib/tasks/webpackTask.js
CHANGED
|
@@ -40,7 +40,7 @@ function webpackTask(options) {
|
|
|
40
40
|
// We support passing in arbitrary webpack config options that we need to merge with any read configs.
|
|
41
41
|
// To do this, we need to filter out the properties that aren't valid config options and then run webpack merge.
|
|
42
42
|
// A better long term solution here would be to have an option called webpackConfigOverrides instead of extending the configuration object.
|
|
43
|
-
const { config, outputStats, ...restConfig } = options || {};
|
|
43
|
+
const { config, outputStats, onCompile, ...restConfig } = options || {};
|
|
44
44
|
webpackConfigs = webpackConfigPromises.map(webpackConfig => webpack_merge_1.merge(webpackConfig, restConfig));
|
|
45
45
|
return new Promise((resolve, reject) => {
|
|
46
46
|
wp(webpackConfigs, async (err, stats) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpackTask.js","sourceRoot":"","sources":["../../src/tasks/webpackTask.ts"],"names":[],"mappings":";;;AAEA,yCAAmE;AACnE,8CAA2C;AAC3C,yBAAyB;AACzB,6BAA6B;AAC7B,iDAAsC;AACtC,oE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ED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "just-scripts",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Just Stack Scripts",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/microsoft/just"
|
|
9
9
|
},
|
|
10
|
+
"homepage": "https://microsoft.github.io/just/",
|
|
10
11
|
"license": "MIT",
|
|
11
12
|
"author": "",
|
|
12
13
|
"main": "./lib/index.js",
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
"fs-extra": "^10.0.0",
|
|
30
31
|
"glob": "^7.1.3",
|
|
31
32
|
"just-scripts-utils": "^2.0.0",
|
|
32
|
-
"just-task": ">=1.7.
|
|
33
|
+
"just-task": ">=1.7.2 <2.0.0",
|
|
33
34
|
"prompts": "^2.4.0",
|
|
34
35
|
"run-parallel-limit": "^1.0.6",
|
|
35
36
|
"semver": "^7.0.0",
|
package/src/tasks/webpackTask.ts
CHANGED
|
@@ -75,7 +75,7 @@ export function webpackTask(options?: WebpackTaskOptions): TaskFunction {
|
|
|
75
75
|
// We support passing in arbitrary webpack config options that we need to merge with any read configs.
|
|
76
76
|
// To do this, we need to filter out the properties that aren't valid config options and then run webpack merge.
|
|
77
77
|
// A better long term solution here would be to have an option called webpackConfigOverrides instead of extending the configuration object.
|
|
78
|
-
const { config, outputStats, ...restConfig } = options || ({} as WebpackTaskOptions);
|
|
78
|
+
const { config, outputStats, onCompile, ...restConfig } = options || ({} as WebpackTaskOptions);
|
|
79
79
|
|
|
80
80
|
webpackConfigs = webpackConfigPromises.map(webpackConfig => merge(webpackConfig, restConfig));
|
|
81
81
|
|