Skip to content

Commit 4408823

Browse files
committed
Version update
1 parent 492f0dd commit 4408823

File tree

7 files changed

+31
-11
lines changed

7 files changed

+31
-11
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A clear and concise description of what actually happened.
2626
- OS: [e.g. macOS, Windows, Linux]
2727
- Node.js Version: [e.g. 14.0.0]
2828
- npm Version: [e.g. 6.14.0]
29-
- Cursor Ops Kit Version: [e.g. 1.2.0]
29+
- Cursor Ops Kit Version: [e.g. 1.2.1]
3030

3131
## Additional Context
3232
Add any other context about the problem here.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ npx cursor-ops version
8585
### Base Configuration (.cursor)
8686
```json
8787
{
88-
"version": "1.2.0",
88+
"version": "1.2.1",
8989
"rules": [
9090
{
9191
"name": "enforceNaming",

lib/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const role = process.argv[2];
88
const projectRoot = process.cwd();
99
const templateRoot = path.join(__dirname, '../templates');
1010

11-
const CONFIG_VERSION = '1.2.0';
11+
const CONFIG_VERSION = '1.2.1';
1212

1313
// Track files that were copied for potential rollback
1414
const copiedFiles = [];

lib/migrate.js

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,26 @@ const MIGRATIONS = {
3838
}
3939
});
4040
return config;
41+
},
42+
'1.2.1': (config) => {
43+
// Add any new required fields or transformations for 1.2.1
44+
if (!config.rules) {
45+
config.rules = [];
46+
}
47+
// Ensure all rules have proper structure
48+
config.rules.forEach(rule => {
49+
if (!rule.severity) {
50+
rule.severity = 'warning';
51+
}
52+
if (!rule.enabled) {
53+
rule.enabled = true;
54+
}
55+
// Add type field if missing
56+
if (!rule.type) {
57+
rule.type = 'base';
58+
}
59+
});
60+
return config;
4161
}
4262
};
4363

@@ -46,12 +66,12 @@ function migrateConfig(configPath) {
4666
const config = fs.readJsonSync(configPath);
4767
const currentVersion = config.version || '0.0.0';
4868

49-
if (currentVersion === '1.2.0') {
69+
if (currentVersion === '1.2.1') {
5070
debug(`Config ${path.relative(process.cwd(), configPath)} is already at latest version`);
5171
return true;
5272
}
5373

54-
info(`Migrating config from version ${currentVersion} to 1.2.0`);
74+
info(`Migrating config from version ${currentVersion} to 1.2.1`);
5575

5676
// Apply migrations in order
5777
let migratedConfig = { ...config };
@@ -63,7 +83,7 @@ function migrateConfig(configPath) {
6383
}
6484

6585
// Update version
66-
migratedConfig.version = '1.2.0';
86+
migratedConfig.version = '1.2.1';
6787

6888
// Create backup
6989
const backupPath = `${configPath}.pre-migration-${Date.now()}`;
@@ -72,7 +92,7 @@ function migrateConfig(configPath) {
7292

7393
// Write migrated config
7494
fs.writeJsonSync(configPath, migratedConfig, { spaces: 2 });
75-
success('Successfully migrated config to version 1.2.0');
95+
success('Successfully migrated config to version 1.2.1');
7696

7797
return true;
7898
} catch (err) {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@liftoffllc/cursor-ops-kit",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "A toolkit for managing Cursor AI configurations across different project roles",
55
"main": "lib/init.js",
66
"bin": {

templates/.cursor/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.2.0",
2+
"version": "1.2.1",
33
"rules": [
44
{
55
"name": "base",

0 commit comments

Comments
 (0)