codemods: fix release trouble

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-06-21 18:09:58 +02:00
parent 202d6f0d52
commit 2eafb4ba28
3 changed files with 32 additions and 11 deletions
+4
View File
@@ -1,5 +1,9 @@
# @backstage/codemods
## 0.1.2
Fixed a publish issue, making this package available to the public.
## 0.1.1
### Patch Changes
+17 -9
View File
@@ -17,13 +17,21 @@
const path = require('path');
require('ts-node').register({
transpileOnly: true,
/* eslint-disable-next-line no-restricted-syntax */
project: path.resolve(__dirname, '../../../tsconfig.json'),
compilerOptions: {
module: 'CommonJS',
},
});
// Figure out whether we're running inside the backstage repo or as an installed dependency
/* eslint-disable-next-line no-restricted-syntax */
const isLocal = require('fs').existsSync(path.resolve(__dirname, '../src'));
require('../src');
if (!isLocal) {
require('..');
} else {
require('ts-node').register({
transpileOnly: true,
/* eslint-disable-next-line no-restricted-syntax */
project: path.resolve(__dirname, '../../../tsconfig.json'),
compilerOptions: {
module: 'CommonJS',
},
});
require('../src');
}
+11 -2
View File
@@ -1,8 +1,12 @@
{
"name": "@backstage/codemods",
"description": "A collection of codemods for Backstage projects",
"version": "0.1.1",
"version": "0.1.2",
"private": false,
"publishConfig": {
"access": "public",
"main": "dist/index.cjs.js"
},
"homepage": "https://backstage.io",
"repository": {
"type": "git",
@@ -16,8 +20,12 @@
"main": "src/index.ts",
"scripts": {
"start": "nodemon --",
"build": "backstage-cli build --outputs cjs",
"lint": "backstage-cli lint",
"test": "backstage-cli test"
"test": "backstage-cli test",
"prepack": "backstage-cli prepack",
"postpack": "backstage-cli postpack",
"clean": "backstage-cli clean"
},
"bin": {
"backstage-codemods": "bin/backstage-codemods"
@@ -43,6 +51,7 @@
"ext": "ts"
},
"files": [
"bin",
"dist",
"transforms"
]