@serenity-is/tsbuild 8.0.0 → 8.5.0
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/LICENSE.md +1 -1
- package/dist/index.js +3 -4
- package/package.json +3 -3
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2014 Volkan Ceylan
|
|
3
|
+
Copyright (c) 2014-present Volkan Ceylan, https://serenity.is
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,7 @@ export function checkIfTrigger() {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export const importAsGlobalsMapping = {
|
|
21
|
+
"@serenity-is/base": "Serenity",
|
|
21
22
|
"@serenity-is/corelib": "Serenity",
|
|
22
23
|
"@serenity-is/corelib/q": "Q",
|
|
23
24
|
"@serenity-is/corelib/slick": "Slick",
|
|
@@ -119,13 +120,13 @@ export const esbuildOptions = (opt) => {
|
|
|
119
120
|
plugins,
|
|
120
121
|
sourcemap: true,
|
|
121
122
|
splitting: splitting,
|
|
122
|
-
target: '
|
|
123
|
+
target: 'es2017',
|
|
123
124
|
watch: process.argv.slice(2).some(x => x == "--watch"),
|
|
124
125
|
}, opt);
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
export const build = async (opt) => {
|
|
128
|
-
|
|
129
|
+
opt = esbuildOptions(opt);
|
|
129
130
|
|
|
130
131
|
if (opt.watch) {
|
|
131
132
|
// this somehow resolves the issue that when debugging is stopped
|
|
@@ -136,9 +137,7 @@ export const build = async (opt) => {
|
|
|
136
137
|
|
|
137
138
|
delete opt.watch;
|
|
138
139
|
const context = await esbuild.context(opt);
|
|
139
|
-
await context.rebuild()
|
|
140
140
|
await context.watch();
|
|
141
|
-
context.dispose();
|
|
142
141
|
}
|
|
143
142
|
else {
|
|
144
143
|
delete opt.watch;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenity-is/tsbuild",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.5.0",
|
|
4
4
|
"author": "Serenity (https://serenity.is)",
|
|
5
5
|
"bugs": "https://github.com/serenity-is/serenity/issues",
|
|
6
6
|
"description": "Serenity ESBuild functions",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"esbuild": "0.
|
|
9
|
-
"glob": "10.
|
|
8
|
+
"esbuild": "0.21.4",
|
|
9
|
+
"glob": "10.4.1"
|
|
10
10
|
},
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|