Skip to content

Commit

Permalink
fix: don't delete __init__.py when there aren't any changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfies committed Mar 2, 2025
1 parent 2ac1e03 commit 2683940
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/discord_protos/google/protobuf/timestamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ import { MessageType } from "@protobuf-ts/runtime";
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
* .setNanos((int) ((millis % 1000) * 1000000)).build();
*
*
* Example 5: Compute Timestamp from Java `Instant.now()`.
*
* Instant now = Instant.now();
Expand All @@ -106,7 +105,6 @@ import { MessageType } from "@protobuf-ts/runtime";
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
* .setNanos(now.getNano()).build();
*
*
* Example 6: Compute Timestamp from current time in Python.
*
* timestamp = Timestamp()
Expand Down Expand Up @@ -136,11 +134,10 @@ import { MessageType } from "@protobuf-ts/runtime";
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
* http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
* http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
* ) to obtain a formatter capable of generating timestamps in this format.
*
*
*
* @generated from protobuf message google.protobuf.Timestamp
*/
export interface Timestamp {
Expand Down
1 change: 0 additions & 1 deletion src/discord_protos/google/protobuf/wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
//
// Wrappers for primitive (non-message) types. These types are useful
// for embedding primitives in the `google.protobuf.Any` type and for places
// where we need to distinguish between the absence of a primitive
Expand Down
6 changes: 5 additions & 1 deletion src/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ async function main() {
for (const output of outputs) {
if (existsSync(output)) {
for (const file of readdirSync(output)) {
rmSync(join(output, file), { recursive: true, force: true });
try {
if (readdirSync(join(output, file)).length > 0) {
rmSync(join(output, file), { recursive: true, force: true });
}
} catch {}
}
}
}
Expand Down

0 comments on commit 2683940

Please sign in to comment.