Skip to content

Commit 8795a94

Browse files
authored
feat: make year dynamic (#354)
### Summary We are manually updating year when it can be dynamic. ### Test plan * The following command should not fail. ``` node packages/create-react-native-library/bin/create-react-native-library sample-module ``` * Year in LICENSE should be the device's year.
1 parent ad3ba1e commit 8795a94

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/create-react-native-library/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ async function create(argv: yargs.Arguments<any>) {
577577
repo: repoUrl,
578578
example,
579579
turborepo,
580+
year: new Date().getFullYear(),
580581
};
581582

582583
const copyDir = async (source: string, dest: string) => {

packages/create-react-native-library/templates/common/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 <%- author.name -%>
3+
Copyright (c) <%- year -%> <%- author.name -%>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)