@jspsych/config 1.3.1 → 1.3.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.md +12 -0
- package/package.json +2 -2
- package/rollup.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @jspsych/config
|
|
2
2
|
|
|
3
|
+
## 1.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3073](https://github.com/jspsych/jsPsych/pull/3073) [`caef8713`](https://github.com/jspsych/jsPsych/commit/caef8713e28fd0c4ed85ba86c27254ee8418087a) Thanks [@jodeleeuw](https://github.com/jodeleeuw)! - Update `canvas` package dependency version to fix missing binaries issues with newer node/npm versions
|
|
8
|
+
|
|
9
|
+
## 1.3.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`e3e9d903`](https://github.com/jspsych/jsPsych/commit/e3e9d903462663b694633cdf873accefda453961) Thanks [@bjoluc](https://github.com/bjoluc)! - Prevent rollup from relying on node internals in browser builds
|
|
14
|
+
|
|
3
15
|
## 1.3.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jspsych/config",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Shared (build) configuration for jsPsych packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@types/gulp": "4.0.9",
|
|
51
51
|
"@types/jest": "27.5.1",
|
|
52
52
|
"babel-preset-minify": "0.5.2",
|
|
53
|
-
"canvas": "2.
|
|
53
|
+
"canvas": "2.11.2",
|
|
54
54
|
"gulp": "4.0.2",
|
|
55
55
|
"gulp-cli": "2.3.0",
|
|
56
56
|
"gulp-file": "^0.4.0",
|
package/rollup.js
CHANGED
|
@@ -13,7 +13,7 @@ const makeConfig = ({
|
|
|
13
13
|
outputOptions = {},
|
|
14
14
|
globalOptions = {},
|
|
15
15
|
iifeOutputOptions = {},
|
|
16
|
-
|
|
16
|
+
isNodeOnlyBuild = false,
|
|
17
17
|
}) => {
|
|
18
18
|
const source = "src/index";
|
|
19
19
|
const destination = "dist/index";
|
|
@@ -26,7 +26,7 @@ const makeConfig = ({
|
|
|
26
26
|
const commonConfig = defineConfig({
|
|
27
27
|
input: `${source}.ts`,
|
|
28
28
|
plugins: [
|
|
29
|
-
resolve(),
|
|
29
|
+
resolve({ preferBuiltins: isNodeOnlyBuild }),
|
|
30
30
|
typescript({
|
|
31
31
|
typescript: ts,
|
|
32
32
|
tsconfigDefaults: {
|
|
@@ -62,7 +62,7 @@ const makeConfig = ({
|
|
|
62
62
|
},
|
|
63
63
|
];
|
|
64
64
|
|
|
65
|
-
if (!
|
|
65
|
+
if (!isNodeOnlyBuild) {
|
|
66
66
|
output.push({
|
|
67
67
|
// Build file to be used for tinkering in modern browsers
|
|
68
68
|
file: `${destination}.browser.js`,
|
|
@@ -75,7 +75,7 @@ const makeConfig = ({
|
|
|
75
75
|
// Non-babel builds
|
|
76
76
|
const config = defineConfig([{ ...commonConfig, output }]);
|
|
77
77
|
|
|
78
|
-
if (!
|
|
78
|
+
if (!isNodeOnlyBuild) {
|
|
79
79
|
// Babel build
|
|
80
80
|
config.push({
|
|
81
81
|
...commonConfig,
|