@procore/hammer-lib-tsup 0.2.0 → 0.3.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/dist/index.d.mts +5 -15
- package/dist/index.d.ts +5 -15
- package/dist/index.js +22 -20
- package/dist/index.mjs +22 -20
- package/package.json +5 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _procore_hammer_types from '@procore/hammer-types';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
config: {
|
|
8
|
-
libTsup?: OverrideFn;
|
|
9
|
-
};
|
|
10
|
-
rootDir: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
declare function build(pluginOptions: PluginOptions): Promise<void>;
|
|
14
|
-
declare function clean(options: PluginOptions): Promise<void>;
|
|
15
|
-
declare function inspect(options: PluginOptions): Promise<void>;
|
|
16
|
-
declare function start(pluginOptions: PluginOptions): Promise<void>;
|
|
3
|
+
declare const build: _procore_hammer_types.LibPluginFunction;
|
|
4
|
+
declare const clean: _procore_hammer_types.LibPluginFunction;
|
|
5
|
+
declare const inspect: _procore_hammer_types.LibPluginFunction;
|
|
6
|
+
declare const start: _procore_hammer_types.LibPluginFunction;
|
|
17
7
|
|
|
18
8
|
export { build, clean, inspect, start };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _procore_hammer_types from '@procore/hammer-types';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
config: {
|
|
8
|
-
libTsup?: OverrideFn;
|
|
9
|
-
};
|
|
10
|
-
rootDir: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
declare function build(pluginOptions: PluginOptions): Promise<void>;
|
|
14
|
-
declare function clean(options: PluginOptions): Promise<void>;
|
|
15
|
-
declare function inspect(options: PluginOptions): Promise<void>;
|
|
16
|
-
declare function start(pluginOptions: PluginOptions): Promise<void>;
|
|
3
|
+
declare const build: _procore_hammer_types.LibPluginFunction;
|
|
4
|
+
declare const clean: _procore_hammer_types.LibPluginFunction;
|
|
5
|
+
declare const inspect: _procore_hammer_types.LibPluginFunction;
|
|
6
|
+
declare const start: _procore_hammer_types.LibPluginFunction;
|
|
17
7
|
|
|
18
8
|
export { build, clean, inspect, start };
|
package/dist/index.js
CHANGED
|
@@ -139,28 +139,30 @@ async function performBuild(buildOptions) {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
// src/index.ts
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
142
|
+
var { build, clean, inspect, start } = {
|
|
143
|
+
build: async function build2(pluginOptions) {
|
|
144
|
+
const buildOptions = await createBuildOptions(base_configs_default, pluginOptions);
|
|
145
|
+
await performBuild(buildOptions);
|
|
146
|
+
},
|
|
147
|
+
clean: async function clean2(options) {
|
|
148
|
+
const buildOptions = await createBuildOptions(base_configs_default, options);
|
|
149
|
+
await cleanOutput(options.rootDir, buildOptions);
|
|
150
|
+
},
|
|
151
|
+
inspect: async function inspect2(options) {
|
|
152
|
+
const buildOptions = await createBuildOptions(base_configs_default, options);
|
|
153
|
+
const highlightedConfig = toHighlightedString(buildOptions);
|
|
154
|
+
import_node_process.default.stdout.write(`
|
|
154
155
|
${highlightedConfig}
|
|
155
156
|
`);
|
|
156
|
-
}
|
|
157
|
-
async function
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
157
|
+
},
|
|
158
|
+
start: async function start2(pluginOptions) {
|
|
159
|
+
const buildOptions = await createBuildOptions(base_configs_default, {
|
|
160
|
+
...pluginOptions,
|
|
161
|
+
watch: true
|
|
162
|
+
});
|
|
163
|
+
await performBuild(buildOptions);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
164
166
|
// Annotate the CommonJS export names for ESM import in node:
|
|
165
167
|
0 && (module.exports = {
|
|
166
168
|
build,
|
package/dist/index.mjs
CHANGED
|
@@ -102,28 +102,30 @@ async function performBuild(buildOptions) {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
// src/index.ts
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
105
|
+
var { build, clean, inspect, start } = {
|
|
106
|
+
build: async function build2(pluginOptions) {
|
|
107
|
+
const buildOptions = await createBuildOptions(base_configs_default, pluginOptions);
|
|
108
|
+
await performBuild(buildOptions);
|
|
109
|
+
},
|
|
110
|
+
clean: async function clean2(options) {
|
|
111
|
+
const buildOptions = await createBuildOptions(base_configs_default, options);
|
|
112
|
+
await cleanOutput(options.rootDir, buildOptions);
|
|
113
|
+
},
|
|
114
|
+
inspect: async function inspect2(options) {
|
|
115
|
+
const buildOptions = await createBuildOptions(base_configs_default, options);
|
|
116
|
+
const highlightedConfig = toHighlightedString(buildOptions);
|
|
117
|
+
process2.stdout.write(`
|
|
117
118
|
${highlightedConfig}
|
|
118
119
|
`);
|
|
119
|
-
}
|
|
120
|
-
async function
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
120
|
+
},
|
|
121
|
+
start: async function start2(pluginOptions) {
|
|
122
|
+
const buildOptions = await createBuildOptions(base_configs_default, {
|
|
123
|
+
...pluginOptions,
|
|
124
|
+
watch: true
|
|
125
|
+
});
|
|
126
|
+
await performBuild(buildOptions);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
127
129
|
export {
|
|
128
130
|
build,
|
|
129
131
|
clean,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/hammer-lib-tsup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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",
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
},
|
|
12
12
|
"license": "SEE LICENSE IN LICENSE",
|
|
13
13
|
"keywords": [],
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
14
17
|
"exports": {
|
|
15
18
|
".": {
|
|
16
19
|
"types": "./dist/index.d.ts",
|
|
@@ -38,6 +41,7 @@
|
|
|
38
41
|
"test:ci": "vitest run --coverage"
|
|
39
42
|
},
|
|
40
43
|
"dependencies": {
|
|
44
|
+
"@procore/hammer-types": "^0.1.0",
|
|
41
45
|
"cli-highlight": "^2.1.11",
|
|
42
46
|
"picocolors": "^1.0.0",
|
|
43
47
|
"tsup": "^8.0.2"
|