Skip to content

Commit

Permalink
Update package names and versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bterlson committed Sep 20, 2024
1 parent 06ddfe7 commit c3316cf
Show file tree
Hide file tree
Showing 26 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {},
"devDependencies": {
"@babel/preset-typescript": "catalog:",
"babel-preset-alloy": "workspace:~",
"@alloy-js/babel-preset": "workspace:~",
"concurrently": "catalog:",
"eslint": "catalog:",
"eslint-plugin-vitest": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-plugin-alloy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alloy-js/babel-plugin-alloy",
"version": "1.0.0",
"name": "@alloy-js/babel-plugin",
"version": "0.1.0",
"main": "dist/src/index.js",
"scripts": {
"build": "tsc -p .",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-jsx-dom-expressions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alloy-js/babel-plugin-jsx-dom-expressions",
"description": "A JSX to DOM plugin that wraps expressions for fine grained change detection",
"description": "A JSX to DOM plugin that wraps expressions for fine grained change detection, modified for Alloy",
"version": "0.37.21",
"author": "Ryan Carniato",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-alloy/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import alloyTransform from "@alloy-js/babel-plugin-alloy";
import alloyTransform from "@alloy-js/babel-plugin";
import jsxTransform from "@alloy-js/babel-plugin-jsx-dom-expressions";

export default function (context, options = {}) {
Expand Down
6 changes: 3 additions & 3 deletions packages/babel-preset-alloy/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "babel-preset-alloy",
"version": "1.0.0",
"name": "@alloy-js/babel-preset",
"version": "0.1.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@alloy-js/babel-plugin-alloy": "workspace:~",
"@alloy-js/babel-plugin": "workspace:~",
"@alloy-js/babel-plugin-jsx-dom-expressions": "workspace:~"
},
"keywords": [],
Expand Down
4 changes: 2 additions & 2 deletions packages/core/babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
sourceMaps: true,
presets: ["@babel/preset-typescript", "babel-preset-alloy"]
};
presets: ["@babel/preset-typescript", "@alloy-js/babel-preset"],
};
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alloy-js/core",
"version": "1.0.0",
"version": "0.1.0",
"description": "",
"main": "./dist/src/index.js",
"exports": {
Expand Down Expand Up @@ -45,7 +45,7 @@
"@babel/core": "catalog:",
"@babel/preset-typescript": "catalog:",
"@vue/reactivity": "catalog:",
"babel-preset-alloy": "workspace:~",
"@alloy-js/babel-preset": "workspace:~",
"pathe": "catalog:"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { isRefkey } from "./refkey.js";

/**
* The component tree is constructed as the result of transforming JSX with
* `babel-preset-alloy`. Elements in the component tree (represented by the type
* `@alloy-js/babel-preset`. Elements in the component tree (represented by the type
* Children) are three distinct types of things:
*
* 1. Primitive data types, which are either literal JSX or substitutions
Expand Down
2 changes: 1 addition & 1 deletion packages/core/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig({
sourceMaps: "both",
babelHelpers: "bundled",
extensions: [".ts", ".tsx"],
presets: ["@babel/preset-typescript", ["babel-preset-alloy", {}]],
presets: ["@babel/preset-typescript", ["@alloy-js/babel-preset", {}]],
}),
],
});
2 changes: 1 addition & 1 deletion packages/csharp/babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
sourceMaps: true,
presets: ["@babel/preset-typescript", "babel-preset-alloy"],
presets: ["@babel/preset-typescript", "@alloy-js/babel-preset"],
};
2 changes: 1 addition & 1 deletion packages/csharp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@microsoft/api-extractor": "^7.47.7",
"@rollup/plugin-babel": "catalog:",
"@rollup/plugin-typescript": "catalog:",
"babel-preset-alloy": "workspace:~",
"@alloy-js/babel-preset": "workspace:~",
"concurrently": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
2 changes: 1 addition & 1 deletion packages/csharp/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig({
sourceMaps: "both",
babelHelpers: "bundled",
extensions: [".ts", ".tsx"],
presets: ["@babel/preset-typescript", "babel-preset-alloy"],
presets: ["@babel/preset-typescript", "@alloy-js/babel-preset"],
}),
],
});
4 changes: 2 additions & 2 deletions packages/docs/src/content/docs/guides/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Next, create the following `babel.config.js` file:
<Code code={`
export default {
sourceMaps: true,
presets: ["@babel/preset-typescript", "babel-preset-alloy"]
presets: ["@babel/preset-typescript", "@alloy-js/babel-preset"]
};
`} lang="js" title="babel.config.js" frame="code"/>

Expand Down Expand Up @@ -112,7 +112,7 @@ Next, create your `vitest.config.js`:
sourceMaps: "both",
babelHelpers: "bundled",
extensions: [".ts", ".tsx"],
presets: ["@babel/preset-typescript", "babel-preset-alloy"],
presets: ["@babel/preset-typescript", "@alloy-js/babel-preset"],
}),
],
});
Expand Down
2 changes: 1 addition & 1 deletion packages/java/babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
sourceMaps: true,
presets: ["@babel/preset-typescript", "babel-preset-alloy"],
presets: ["@babel/preset-typescript", "@alloy-js/babel-preset"],
};
4 changes: 2 additions & 2 deletions packages/java/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alloy-js/java",
"version": "1.0.0",
"version": "0.1.0",
"description": "",
"exports": {
".": {
Expand Down Expand Up @@ -37,7 +37,7 @@
"@microsoft/api-extractor": "^7.47.7",
"@rollup/plugin-babel": "catalog:",
"@rollup/plugin-typescript": "catalog:",
"babel-preset-alloy": "workspace:~",
"@alloy-js/babel-preset": "workspace:~",
"concurrently": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
2 changes: 1 addition & 1 deletion packages/java/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig({
sourceMaps: "both",
babelHelpers: "bundled",
extensions: [".ts", ".tsx"],
presets: ["@babel/preset-typescript", "babel-preset-alloy"],
presets: ["@babel/preset-typescript", "@alloy-js/babel-preset"],
}),
],
});
4 changes: 2 additions & 2 deletions packages/typescript/babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
sourceMaps: true,
presets: ["@babel/preset-typescript", "babel-preset-alloy"]
};
presets: ["@babel/preset-typescript", "@alloy-js/babel-preset"],
};
4 changes: 2 additions & 2 deletions packages/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alloy-js/typescript",
"version": "1.0.0",
"version": "0.1.0",
"description": "",
"exports": {
".": {
Expand Down Expand Up @@ -37,7 +37,7 @@
"@microsoft/api-extractor": "^7.47.7",
"@rollup/plugin-babel": "catalog:",
"@rollup/plugin-typescript": "catalog:",
"babel-preset-alloy": "workspace:~",
"@alloy-js/babel-preset": "workspace:~",
"concurrently": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig({
sourceMaps: "both",
babelHelpers: "bundled",
extensions: [".ts", ".tsx"],
presets: ["@babel/preset-typescript", "babel-preset-alloy"],
presets: ["@babel/preset-typescript", "@alloy-js/babel-preset"],
}),
],
});
44 changes: 22 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions samples/basic-project/babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
sourceMaps: true,
presets: ["@babel/preset-typescript", "babel-preset-alloy"]
};
presets: ["@babel/preset-typescript", "@alloy-js/babel-preset"],
};
2 changes: 1 addition & 1 deletion samples/basic-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@rollup/plugin-babel": "catalog:",
"@rollup/plugin-typescript": "catalog:",
"@types/node": "catalog:",
"babel-preset-alloy": "workspace:~",
"@alloy-js/babel-preset": "workspace:~",
"concurrently": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
2 changes: 1 addition & 1 deletion samples/basic-project/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineConfig({
sourceMaps: "both",
babelHelpers: "bundled",
extensions: [".ts", ".tsx"],
presets: ["@babel/preset-typescript", "babel-preset-alloy"],
presets: ["@babel/preset-typescript", "@alloy-js/babel-preset"],
}),
],
});
4 changes: 2 additions & 2 deletions samples/client-emitter/babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
sourceMaps: true,
presets: ["@babel/preset-typescript", "babel-preset-alloy"]
};
presets: ["@babel/preset-typescript", "@alloy-js/babel-preset"],
};
2 changes: 1 addition & 1 deletion samples/client-emitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@rollup/plugin-babel": "catalog:",
"@rollup/plugin-typescript": "catalog:",
"@types/node": "catalog:",
"babel-preset-alloy": "workspace:~",
"@alloy-js/babel-preset": "workspace:~",
"concurrently": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
2 changes: 1 addition & 1 deletion samples/client-emitter/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineConfig({
sourceMaps: "both",
babelHelpers: "bundled",
extensions: [".ts", ".tsx"],
presets: ["@babel/preset-typescript", "babel-preset-alloy"],
presets: ["@babel/preset-typescript", "@alloy-js/babel-preset"],
}),
],
});

0 comments on commit c3316cf

Please sign in to comment.