Skip to content

Commit

Permalink
Merge pull request #74 from takuma-ru/refactoring/73
Browse files Browse the repository at this point in the history
♻️ Integrate genStoryFile and runGenStoryFile
  • Loading branch information
takuma-ru committed Apr 3, 2024
2 parents 3638441 + 78d3a53 commit 03eaeb5
Show file tree
Hide file tree
Showing 11 changed files with 335 additions and 338 deletions.
10 changes: 5 additions & 5 deletions .scripts/release.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ const packageJsonPath = path.join(
);

try {
// Create a new branch and push it to origin
const branchName = `release/${new Date().toISOString().replace(/[-:.]/g, "")}`;
execSync(`git checkout -b ${branchName}`);
execSync(`git push --set-upstream origin ${branchName}`);

// Read the package.json file
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));

Expand Down Expand Up @@ -48,11 +53,6 @@ try {
// Write the updated package.json back to file
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));

// Create a new branch and push it to origin
const branchName = `release/${new Date().toISOString().replace(/[-:.]/g, "")}`;
execSync(`git checkout -b ${branchName}`);
execSync(`git push --set-upstream origin ${branchName}`);

// Build the package
execSync("pnpm asg build", { stdio: "inherit" });

Expand Down
18 changes: 0 additions & 18 deletions packages/auto-story-generator/.release-it.cjs

This file was deleted.

11 changes: 2 additions & 9 deletions packages/auto-story-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@
"lint:fix": "eslint --ext .ts,.js . --fix",
"lint:type-check": "tsc --noEmit",
"format": "prettier --write .",
"format:check": "prettier --check .",
"publish:major": "pnpm build && pnpm dlx release-it major --ci -VV",
"publish:minor": "pnpm build && pnpm dlx release-it minor --ci -VV",
"publish:patch": "pnpm build && pnpm dlx release-it patch --ci -VV",
"publish:major-beta": "pnpm build && pnpm dlx release-it major --preRelease=beta --ci -VV",
"publish:minor-beta": "pnpm build && pnpm dlx release-it minor --preRelease=beta --ci -VV",
"publish:patch-beta": "pnpm build && pnpm dlx release-it patch --preRelease=beta --ci -VV",
"publish:prerelease": "pnpm build && pnpm dlx release-it --preRelease --ci -VV"
"format:check": "prettier --check ."
},
"keywords": [
"storybook",
Expand Down Expand Up @@ -82,4 +75,4 @@
"tsup": "^8.0.1",
"typescript": "^5.3.3"
}
}
}
2 changes: 1 addition & 1 deletion packages/auto-story-generator/src/constants/error.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ErrorType } from "~/src/types/error";
import { ErrorType } from "~/src/types/ErrorType";

export const errorDefinition = {
// Common
Expand Down

0 comments on commit 03eaeb5

Please sign in to comment.