Skip to content

Commit 7dffd4f

Browse files
committed
Additional comments
1 parent 513ed45 commit 7dffd4f

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

tools/bazel-tools-tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"compilerOptions": {
3-
"module": "commonjs",
4-
"target": "es5",
53
"lib": ["es2015"],
64
"types": ["node"]
75
}

tools/sass_bundle.bzl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ sass_bundle = rule(
5454
# rule (and will thus be available to the nodejs_binary in the sandbox).
5555
"entry_point": attr.label(mandatory = True, allow_single_file = True),
5656

57-
# The executable (bundler) for this rule. The user will typically never
58-
# specify this and always use the default.
59-
"sass_bundle": attr.label(
57+
# The executable (bundler) for this rule (private).
58+
"_sass_bundle": attr.label(
6059
default = Label("//tools:sass_bundle"),
6160
executable = True,
6261
cfg = "host"

tools/sass_bundle.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ const minimist = require('minimist');
88
/** The root of the bazel workspace (sandbox). */
99
const workspaceRoot = process.cwd();
1010

11+
/**
12+
* Bundles sass partials into a single file using the `scss-bundle` package. This does not use the
13+
* default CLI for `scss-bundle` to give us a place to introspect / debug values coming from
14+
* bazel if necessary.
15+
*/
1116
export async function main(args: string[]): Promise<number> {
1217
const parsedArgs: {srcs: string, output: string, entry: string} = minimist(args);
1318
const inputFiles = parsedArgs.srcs.split(',');

0 commit comments

Comments
 (0)