@procore/hammer-lib-tsup 0.7.3 → 0.9.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/CHANGELOG.md +27 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.mjs +3 -3
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @procore/hammer-lib-tsup
|
|
2
2
|
|
|
3
|
+
## 0.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 53a92fe: Upgrades dependencies.
|
|
8
|
+
- a07d0ff: Updates the node engines version ranges to support current, active, and maintenance versions of Node.
|
|
9
|
+
- e0b46f0: Extend `HammerConfig` interface for typed configuration.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [53a92fe]
|
|
14
|
+
- Updated dependencies [3843fbe]
|
|
15
|
+
- Updated dependencies [a07d0ff]
|
|
16
|
+
- @procore/hammer-utils@0.4.0
|
|
17
|
+
- @procore/hammer-types@0.7.0
|
|
18
|
+
|
|
19
|
+
## 0.8.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- 35eaf69: Upgrades dependencies.
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [35eaf69]
|
|
28
|
+
- @procore/hammer-utils@0.3.0
|
|
29
|
+
|
|
3
30
|
## 0.7.3
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import * as _procore_hammer_types from '@procore/hammer-types';
|
|
2
|
+
import { Options } from 'tsup';
|
|
3
|
+
|
|
4
|
+
type OverrideConfig = (config: Options[]) => Options[];
|
|
5
|
+
declare module '@procore/hammer-types' {
|
|
6
|
+
interface HammerConfig {
|
|
7
|
+
libTsup?: OverrideConfig;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
2
10
|
|
|
3
11
|
declare const init: (rootDir: string, config: _procore_hammer_types.HammerConfig, options: {
|
|
4
12
|
force?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import * as _procore_hammer_types from '@procore/hammer-types';
|
|
2
|
+
import { Options } from 'tsup';
|
|
3
|
+
|
|
4
|
+
type OverrideConfig = (config: Options[]) => Options[];
|
|
5
|
+
declare module '@procore/hammer-types' {
|
|
6
|
+
interface HammerConfig {
|
|
7
|
+
libTsup?: OverrideConfig;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
2
10
|
|
|
3
11
|
declare const init: (rootDir: string, config: _procore_hammer_types.HammerConfig, options: {
|
|
4
12
|
force?: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
|
-
import process2 from "
|
|
2
|
+
import process2 from "process";
|
|
3
3
|
|
|
4
4
|
// src/base-configs.ts
|
|
5
5
|
import { postcssModules, sassPlugin } from "esbuild-sass-plugin";
|
|
@@ -68,7 +68,7 @@ function toHighlightedString(input) {
|
|
|
68
68
|
|
|
69
69
|
// src/clean-output.ts
|
|
70
70
|
import { resolve } from "pathe";
|
|
71
|
-
import { rm } from "
|
|
71
|
+
import { rm } from "fs/promises";
|
|
72
72
|
import c from "picocolors";
|
|
73
73
|
async function cleanOutput(rootDir, buildOptions) {
|
|
74
74
|
for (const buildOption of buildOptions) {
|
|
@@ -114,7 +114,7 @@ import { updatePackageJsonFromTemplate } from "@procore/hammer-utils";
|
|
|
114
114
|
// src/validate-package.ts
|
|
115
115
|
import { readRootPackageJson } from "@procore/hammer-utils";
|
|
116
116
|
import c3 from "picocolors";
|
|
117
|
-
import fs from "
|
|
117
|
+
import fs from "fs";
|
|
118
118
|
var errorIsNotExisted = (name) => `The property ${c3.yellow(name)} doesn't exist in the package.json.`;
|
|
119
119
|
var errorFileIsNotExisted = (name) => `The file from ${c3.yellow(name)} property doesn't exist in the dist folder.
|
|
120
120
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/hammer-lib-tsup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Hammer library builder, tsup-style",
|
|
5
5
|
"author": "Procore Technologies, Inc",
|
|
6
6
|
"homepage": "https://github.com/procore/hammer/packages/lib-tsup",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": "^
|
|
30
|
+
"node": "^20.19.0 || ^22.12.0 || ^24.0.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsup",
|
|
@@ -51,29 +51,29 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@procore/hammer-types": "^0.
|
|
55
|
-
"@procore/hammer-utils": "^0.
|
|
54
|
+
"@procore/hammer-types": "^0.7.0",
|
|
55
|
+
"@procore/hammer-utils": "^0.4.0",
|
|
56
56
|
"cli-highlight": "^2.1.11",
|
|
57
|
-
"esbuild": "^0.25.
|
|
57
|
+
"esbuild": "^0.25.6",
|
|
58
58
|
"esbuild-sass-plugin": "^3.3.1",
|
|
59
|
-
"pathe": "^2.0.
|
|
59
|
+
"pathe": "^2.0.3",
|
|
60
60
|
"picocolors": "^1.1.1",
|
|
61
|
-
"sass-embedded": "^1.
|
|
62
|
-
"tsup": "^8.
|
|
61
|
+
"sass-embedded": "^1.89.2",
|
|
62
|
+
"tsup": "^8.5.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@procore/eslint-config": "^15.2.1",
|
|
66
|
-
"@procore/hammer-test-utils": "^0.
|
|
66
|
+
"@procore/hammer-test-utils": "^0.3.0",
|
|
67
67
|
"@procore/prettier-config": "^1.1.1",
|
|
68
68
|
"@procore/typescript-config": "^2.0.0",
|
|
69
|
-
"@types/node": "^20.
|
|
70
|
-
"@vitest/coverage-v8": "^3.
|
|
69
|
+
"@types/node": "^20.19.6",
|
|
70
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
71
71
|
"del-cli": "^6.0.0",
|
|
72
|
-
"eslint": "^9.
|
|
73
|
-
"postcss": "^8.5.
|
|
74
|
-
"prettier": "^3.
|
|
72
|
+
"eslint": "^9.31.0",
|
|
73
|
+
"postcss": "^8.5.6",
|
|
74
|
+
"prettier": "^3.6.2",
|
|
75
75
|
"strip-ansi": "^7.1.0",
|
|
76
76
|
"typescript": "~5.5.4",
|
|
77
|
-
"vitest": "^3.
|
|
77
|
+
"vitest": "^3.2.4"
|
|
78
78
|
}
|
|
79
79
|
}
|