Meta tags:
description= CLI tool for Angular. Contribute to angular-robot/angular-cli development by creating an account on GitHub.;
Headings (most frequently used words):
navigation, diff, release, package, mts, file, breadcrumbs, footer, menu, repository, filesexpand, tree, latest, commit, history, metadata, and, controls,
Text of the page (most frequently used words):
const (19), github (15), and (15), angular (14), the (13), for (10), path (10), await (10), tmpdir (10), diff (10), file (9), cli (9), join (8), bazel (8), console (8), git (8), #package (8), mode (7), all (7), subentry (7), packagename (7), code (7), promises (6), snapshot (6), import (6), main (6), from (6), security (5), startpath (5), true (5), log (5), outputpath (5), release (5), actions (5), you (4), filepath (4), files (4), string (4), dirpath (4), promise (4), skip_files (4), with (4), build (4), snapshotreponame (4), scripts (4), mts (4), process (4), node (4), license (4), raw (4), your (4), support (4), copilot (4), can (3), that (3), this (3), not (3), navigation (3), chmodsync (3), chmodrecursivesync (3), function (3), void (3), directory (3), recursive (3), deletedir (3), run (3), config (3), copytasks (3), push (3), removetasks (3), error (3), packages (3), targetdir (3), npm_package (3), https (3), replace (3), help (3), json (3), artifact (3), 146 (3), 119 (3), copy (3), blame (3), history (3), more (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), reload (3), sign (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), community (2), status (2), footer (2), stat (2), lstatsync (2), readdirsync (2), param (2), permissions (2), 0755 (2), maxretries (2), async (2), cwd (2), continue (2), includes (2), readdir (2), npm (2), childprocess (2), bazelbindir (2), repo (2), com (2), monorepodata (2), outside (2), ignore (2), gitclient (2), readme (2), uniqueid (2), also (2), use (2), dev (2), source (2), lines (2), loc (2), breadcrumbs (2), latest (2), insights (2), repository (2), robot (2), signed (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), learn (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, contact, docs, privacy, terms, 2026, inc, else, isdirectory, new, starting, recursively, changes, its, contents, subdirectories, force, needed, artifacts, are, readonly, cannot, deleted, otherwise, return, existssync, color, stdout, core, filemode, false, output, built, encoding, utf8, stdio, inherit, shell, spawnsync, delete, old, avoid, surprises, stamping, being, outdated, meta, dirname, dist, bin, cloned, clone, cloning, into, mkdtemp, snapshotrepo, blob, l16, l17, diffing, only, generated, snapshots, when, parse, readfilesync, monorepo, utf, get, env, exitcode, catch, try, exit, expected, name, specified, argv, put, together, too, preserve, irrelevant, included, via, remove, comparisons, later, child_process, example, command, pnpm, doesn, differ, unexpectedly, useful, during, rules_js, migration, verify, upstream, head, script, used, compare, local, found, governed, mit, style, copyright, google, llc, rights, reserved, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, edit, open, symbols, panel, download, metadata, controls, top, commit, expand, tree, items, pull, requests, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, what, next, partners, about, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, add, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, improvements, across, one, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, projects, automated, work, hosting, review, collaboration, platform, menu, skip, content,
Text of the page (random words):
angular cli scripts diff release package mts at main angular robot angular cli github skip to content navigation menu sign in products platform github repository hosting code review and collaboration copilot ai coding agent for tasks projects and automated work build ship actions ci cd and automation code quality quality analysis fixes and enforcement codespaces cloud development environments secure code security vulnerability detection and remediation secret protection secret scanning and leak prevention all features developers learn documentation training certifications build build with copilot customize copilot integrations explore trending repos github sponsors developer articles changelog changelog your source for the latest features improvements and fixes across github products all in one place businesses by stage enterprises team startups nonprofits by industry healthcare financial services manufacturing government see all industries evaluate github why github customer stories business insights trust center add ons github advanced security enterprise grade code security copilot for business enterprise grade ai features premium support enterprise grade 24 7 support resources learn connect documentation resource center blog events webinars community forum customer stories integrations support customer support training github status company about partners changelog github universe github universe the event for developers by developers talks workshops and what s next for github pricing search sign in sign up appearance settings you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message angular robot angular cli repository navigation code pull requests actions security and quality insights more items files expand file tree main breadcrumbs angular cli scripts diff release package mts copy path blame more file actions blame more file actions latest commit history history history 146 lines 119 loc 4 47 kb main breadcrumbs angular cli scripts diff release package mts copy path top file metadata and controls code blame 146 lines 119 loc 4 47 kb raw copy raw file download raw file open symbols panel edit and raw actions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 license copyright google llc all rights reserved use of this source code is governed by an mit style license that can be found in the license file at https angular dev license script that can be used to compare the local npm_package snapshot artifact with the snapshot artifact from github at upstream head this is useful during the rules_js migration to verify the npm artifact doesn t differ unexpectedly example command pnpm diff release package angular cli import gitclient from angular ng dev import childprocess from node child_process import fs chmodsync lstatsync readdirsync from node fs import os from node os import path join from node path do not remove git as we use git for comparisons later also preserve uniqueid as it s irrelevant for the diff and not included via bazel the readme md is also put together outside of bazel so ignore it too const skip_files readme md uniqueid git const packagename process argv 2 if packagename console error expected package name to be specified process exit 1 try await main packagename catch e console error e process exitcode 1 async function main packagename string const bazel process env bazel bazel const git await gitclient get const monorepodata json parse fs readfilesync monorepo json utf 8 const targetdir packagename replace g replace g _ help is only generated in snapshots outside of bazel ignore it when diffing the angular cli package https github com angular angular cli blob main scripts json help mts l16 l17 if packagename angular cli skip_files push help const snapshotreponame monorepodata packages packagename snapshotrepo const tmpdir await fs promises mkdtemp path join os tmpdir diff release package snapshotreponame replace g _ console log cloning snapshot repo snapshotreponame into tmpdir git run clone https github com snapshotreponame git tmpdir console log cloned snapshot repo const bazelbindir join import meta dirname dist bin const outputpath path join bazelbindir packages targetdir npm_package delete old directory to avoid surprises or stamping being outdated await deletedir outputpath childprocess spawnsync bazel build packages targetdir npm_package config snapshot shell true stdio inherit encoding utf8 console log built npm package with config snapshot console error output outputpath const removetasks promise void for const subentry of await fs promises readdir tmpdir if skip_files includes subentry continue removetasks push fs promises rm path join tmpdir subentry recursive true maxretries 3 await promise all removetasks const copytasks promise void for const subentry of await fs promises readdir outputpath if skip_files includes subentry continue copytasks push fs promises cp path join outputpath subentry path join tmpdir subentry recursive true await promise all copytasks git run config core filemode false cwd tmpdir const diff git run diff color cwd tmpdir stdout console log n n diff console log diff await deletedir tmpdir async function deletedir dirpath string if fs existssync dirpath return needed as bazel artifacts are readonly and cannot be deleted otherwise chmodrecursivesync dirpath 0755 await fs promises rm dirpath recursive true force true maxretries 3 recursively changes the permissions mode of a directory and all its contents files and subdirectories param startpath the starting directory path param mode the new permissions mode e g 0755 function chmodrecursivesync startpath string mode string void chmodsync startpath mode const files readdirsync startpath for const file of files const filepath join startpath file const stat lstatsync filepath if stat isdirectory chmodrecursivesync filepath mode else chmodsync filepath mode footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|