@knapsack/typescript-config-starter 4.69.15--canary.4532.e420d28.0 → 4.69.15--canary.4771.9877e61.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.69.15--canary.
|
4
|
+
"version": "4.69.15--canary.4771.9877e61.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.69.15--canary.
|
32
|
+
"@knapsack/creator-utils": "4.69.15--canary.4771.9877e61.0",
|
33
33
|
"typescript": "^5.5.4"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
|
-
"@knapsack/eslint-config-starter": "4.69.15--canary.
|
36
|
+
"@knapsack/eslint-config-starter": "4.69.15--canary.4771.9877e61.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": "9877e612f2b63bc8dba31726acd0c019c1b57457"
|
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
|
};
|