Skip to content

Commit 844814a

Browse files
Aiinfo diffcache (#120)
* add changelog to output * add clearCache utility * update cache * add writeChangelog util * ignore package.json in biome lint * @instructure.ai/[email protected] * fix lint issues * @instructure.ai/[email protected] * use vite-node/loader * [email protected] * use loader as an export * [email protected] * use custom loader * [email protected] * quote loader * use correct path * [email protected] * proper quotes * use nextLoad * use register instead of experimentalLoader * --no-git-checks b/c we're building here! * [email protected] * [email protected] * proper quoting * [email protected] * async import * [email protected] * move register to loader script * [email protected] * Update scripts/loader.mjs Co-authored-by: Copilot <[email protected]> * proper release folder * [email protected] * use dirname for loader * ci=1 for current caches * [email protected] * pack build * [email protected] * set env name * [email protected] * [email protected] * add pnpm at init * [email protected] * remove duplicate install * Update .github/workflows/release-package.yml Co-authored-by: Copilot <[email protected]> * [email protected] * Update .github/workflows/release-package.yml Co-authored-by: Copilot <[email protected]> * add required repo info * [email protected] * [email protected] * add repo info * update templates * [email protected] --------- Co-authored-by: Copilot <[email protected]>
1 parent 9aa634c commit 844814a

File tree

10 files changed

+45
-16
lines changed

10 files changed

+45
-16
lines changed

.template/esm/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,10 @@
2222
},
2323
"devDependencies": {
2424
"@instructure.ai/shared-configs": "workspace:^"
25-
}
25+
},
26+
"repository": {
27+
"type": "git",
28+
"url": "https://github.com/instructure/instructure.ai",
29+
"directory": "packages/<<cliname>>"
30+
},
2631
}

.template/instui/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"name": "<<packagename>>",
33
"private": true,
4+
"repository": {
5+
"type": "git",
6+
"url": "https://github.com/instructure/instructure.ai",
7+
"directory": "apps/<<cliname>>"
8+
},
49
"scripts": {
510
"build": "vite build",
611
"dev": "vite",

.template/react/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"name": "<<packagename>>",
33
"private": true,
4+
"repository": {
5+
"type": "git",
6+
"url": "https://github.com/instructure/instructure.ai",
7+
"directory": "apps/<<cliname>>"
8+
},
49
"scripts": {
510
"build": "vite build",
611
"dev": "vite",

.template/vanilla/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"name": "<<packagename>>",
33
"private": true,
4+
"repository": {
5+
"type": "git",
6+
"url": "https://github.com/instructure/instructure.ai",
7+
"directory": "apps/<<cliname>>"
8+
},
49
"scripts": {
510
"build": "vite build",
611
"dev": "vite",

apps/nutritionfacts/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
},
1515
"name": "@instructure.ai/nutritionfacts",
1616
"private": true,
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/instructure/instructure.ai",
20+
"directory": "apps/nutritionfacts"
21+
},
1722
"scripts": {
1823
"build": "pnpm update-cache && vite build",
1924
"dev": "vite",

apps/roadmap/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
},
1010
"name": "@instructure.ai/roadmap",
1111
"private": true,
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/instructure/instructure.ai",
15+
"directory": "apps/roadmap"
16+
},
1217
"scripts": {
1318
"build": "vite build",
1419
"dev": "vite",

apps/site/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
},
55
"name": "@instructure.ai/site",
66
"private": true,
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/instructure/instructure.ai",
10+
"directory": "apps/site"
11+
},
712
"scripts": {
813
"build": "vite build",
914
"dev": "vite",

packages/aiinfo/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
"publishConfig": {
3737
"access": "public"
3838
},
39+
"repository": {
40+
"type": "git",
41+
"url": "https://github.com/instructure/instructure.ai",
42+
"directory": "packages/aiinfo"
43+
},
3944
"scripts": {
4045
"build": "pnpm cache:update && pnpm build:vite && pnpm lint --write && pnpm typecheck && pnpm package",
4146
"build:vite": "vite build",
@@ -48,5 +53,5 @@
4853
"sideEffects": false,
4954
"type": "module",
5055
"types": "./dist/index.d.ts",
51-
"version": "1.2.18"
56+
"version": "1.2.19"
5257
}

scripts/new.mts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,7 @@ async function main() {
104104
FULLPACKAGENAME,
105105
);
106106

107-
await replaceInFile(
108-
path.join(pkgDir, "README.md"),
109-
CLINAME,
110-
PACKAGENAME,
111-
);
107+
await replaceInFile(path.join(pkgDir, "README.md"), CLINAME, PACKAGENAME);
112108

113109
if (TEMPLATE === "instui") {
114110
const url = "https://instructure.design/llms.txt";
@@ -126,13 +122,7 @@ async function main() {
126122
guidelines,
127123
);
128124
}
129-
if (isESM) {
130-
await replaceInFile(
131-
path.join(pkgDir, "package.json"),
132-
CLINAME,
133-
PACKAGENAME,
134-
);
135-
}
125+
await replaceInFile(path.join(pkgDir, "package.json"), CLINAME, PACKAGENAME);
136126

137127
// Install dependencies for the new package (pnpm workspace)
138128
console.log("Installing dependencies...");

scripts/release.mts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ const main = async () => {
112112
args: WorkspaceCommand["args"];
113113
root?: boolean;
114114
}) => {
115-
116115
const pkgJson = getPackageJson(pkg);
117116
if (!pkgJson) {
118117
exitWithError(`Could not find package.json for package: ${pkg}`);
@@ -160,7 +159,7 @@ const main = async () => {
160159
pack({ args: args, pkg: output as FullPackageName });
161160
break;
162161
case "root":
163-
pack({ args: args, pkg: output as FullPackageName});
162+
pack({ args: args, pkg: output as FullPackageName });
164163
break;
165164
case "all":
166165
console.log("Packaging all is not supported yet.");

0 commit comments

Comments
 (0)