@knapsack/typescript-config-starter 4.70.0--canary.4561.78aed7a.0 → 4.70.0--canary.3797.b249674.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +4 -4
- package/tsup.config-base.cjs +4 -1
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@knapsack/typescript-config-starter",
|
3
3
|
"description": "",
|
4
|
-
"version": "4.70.0--canary.
|
4
|
+
"version": "4.70.0--canary.3797.b249674.0",
|
5
5
|
"bin": "./bin.js",
|
6
6
|
"main": "./tsconfig.base.json",
|
7
7
|
"exports": {
|
@@ -29,11 +29,11 @@
|
|
29
29
|
"test": "tsc --project ./tsconfig.self-pkg-test.json"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@knapsack/creator-utils": "4.70.0--canary.
|
32
|
+
"@knapsack/creator-utils": "4.70.0--canary.3797.b249674.0",
|
33
33
|
"typescript": "^5.5.4"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
|
-
"@knapsack/eslint-config-starter": "4.70.0--canary.
|
36
|
+
"@knapsack/eslint-config-starter": "4.70.0--canary.3797.b249674.0",
|
37
37
|
"eslint": "^8.57.0",
|
38
38
|
"tsup": "^8.2.4"
|
39
39
|
},
|
@@ -46,5 +46,5 @@
|
|
46
46
|
"directory": "tools/typescript-config-starter",
|
47
47
|
"type": "git"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "b249674c50182c969f973424bdeae9bc2ba4f49b"
|
50
50
|
}
|
package/tsup.config-base.cjs
CHANGED
@@ -10,6 +10,8 @@ const baseOptions = defineConfig({
|
|
10
10
|
dts: true,
|
11
11
|
splitting: false,
|
12
12
|
keepNames: true,
|
13
|
+
minify: true,
|
14
|
+
treeshake: 'smallest',
|
13
15
|
});
|
14
16
|
|
15
17
|
module.exports = {
|
@@ -26,6 +28,7 @@ module.exports = {
|
|
26
28
|
...baseOptions,
|
27
29
|
format: ['esm', 'cjs'],
|
28
30
|
// If you're dual-publishing (i.e. --format esm,cjs) and using platform specific API like import.meta.url, __dirname and __filename, you need to manually enable --shims flag now, because import.meta.url won't work in a cjs module, and __dirname, __filename won't work in an esm module.
|
29
|
-
|
31
|
+
// Turning this off as we don't use above situations - leaving commented out instead of deleting so we can turn it back on if needed
|
32
|
+
// shims: true,
|
30
33
|
}),
|
31
34
|
};
|