Skip to content

Commit

Permalink
Publish 32.0.7 (#83)
Browse files Browse the repository at this point in the history
32.0.7

* remove the bundled dependency codemods, now codemods are included directly in the cli package
  • Loading branch information
SalvatorePreviti authored Aug 19, 2024
1 parent 2767454 commit 8ffa6eb
Show file tree
Hide file tree
Showing 1,163 changed files with 302 additions and 358 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",

"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},

"prettier.ignorePath": ".vscode/.prettierignore"
}
5 changes: 4 additions & 1 deletion packages/cli/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/src/codemods/versions/*/__fixtures__/scenarios
/src/codemods/plugins/*/__fixtures__/scenarios
/src/codemods/transforms/*/__fixtures__/scenarios
/dist/
/vitest.config.mts.timestamp-*.mjs
_temp
_temp
2 changes: 2 additions & 0 deletions packages/cli/ag-grid-devtools-cli.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
export * from './index.cjs';
2 changes: 2 additions & 0 deletions packages/cli/ag-grid-devtools-cli.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
export * from './';
21 changes: 0 additions & 21 deletions packages/cli/codemods.vite.config.mts

This file was deleted.

46 changes: 32 additions & 14 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@ag-grid-devtools/cli",
"version": "32.0.6",
"version": "32.0.7",
"license": "MIT",
"description": "AG Grid developer toolkit",
"author": "AG Grid <[email protected]>",
Expand All @@ -16,24 +16,21 @@
"type": "module",
"main": "./index.ts",
"scripts": {
"build": "pnpm run build:lib && pnpm run build:codemods && pnpm run build:readme && pnpm run build:pkg",
"build": "pnpm run build:lib && pnpm run build:readme && pnpm run build:pkg",
"build:lib": "vite build",
"build:readme": "cp README.md dist/README.md",
"build:pkg": "PKG_WORKSPACE_VERSIONS=@ag-grid-devtools/codemods:\"$(pnpm run --silent version)\" pnpm run --filter build-tools pkg $PWD $PWD/dist/package.json",
"build:codemods": "pnpm run build:codemods:lib && pnpm run build:codemods:pkg",
"build:codemods:lib": "vite build --config codemods.vite.config.mts",
"build:codemods:pkg": "pnpm run --filter build-tools pkg $PWD/../codemods $PWD/dist/node_modules/@ag-grid-devtools/codemods/package.json $(pnpm run --silent version)",
"lint": "pnpm run '/^lint:.*/'",
"lint:eslint": "eslint --ext js,cjs,mjs,ts .",
"lint:typescript": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest watch",
"version": "node -p -e \"require('./package.json').version\"",
"publish": "npm publish ./dist --access public"
},
"pkg": {
"main": "./index.cjs",
"bin": "./index.cjs",
"bin": {
"ag-grid-devtools-cli": "./ag-grid-devtools-cli.cjs"
},
"exports": {
".": {
"import": "./index.mjs",
Expand All @@ -45,31 +42,51 @@
"require": "./index.cjs",
"default": "./index.mjs"
},
"./index.js": "./index.mjs",
"./index.js": {
"import": "./index.mjs",
"require": "./index.cjs",
"default": "./index.mjs"
},
"./index.mjs": "./index.mjs",
"./index.cjs": "./index.cjs",
"./user-config": {
"import": "./user-config.mjs",
"require": "./user-config.cjs",
"default": "./user-config.mjs"
},
"./user-config.js": "./user-config.mjs",
"./user-config.js": {
"import": "./user-config.mjs",
"require": "./user-config.cjs",
"default": "./user-config.mjs"
},
"./user-config.mjs": "./user-config.mjs",
"./user-config.cjs": "./user-config.cjs",
"./ag-grid-devtools-cli": {
"import": "./ag-grid-devtools-cli.mjs",
"require": "./ag-grid-devtools-cli.cjs",
"default": "./ag-grid-devtools-cli.mjs"
},
"./ag-grid-devtools-cli.js": {
"import": "./ag-grid-devtools-cli.mjs",
"require": "./ag-grid-devtools-cli.cjs",
"default": "./ag-grid-devtools-cli.mjs"
},
"./ag-grid-devtools-cli.cjs": "./ag-grid-devtools-cli.cjs",
"./ag-grid-devtools-cli.mjs": "./ag-grid-devtools-cli.mjs",
"./package.json": "./package.json"
}
},
"types": "./index.d.ts",
"bundleDependencies": [
"@ag-grid-devtools/codemods"
],
"dependencies": {
"@typescript-eslint/parser": "7.18.0",
"eslint": "8.57.0",
"tsx": "4.17.0"
},
"devDependencies": {
"@ag-grid-devtools/codemods": "workspace:*",
"@ag-grid-devtools/ast": "workspace:*",
"@ag-grid-devtools/build-tools": "workspace:*",
"@ag-grid-devtools/codemod-utils": "workspace:*",
"@ag-grid-devtools/test-utils": "workspace:*",
"@ag-grid-devtools/build-config": "workspace:*",
"@ag-grid-devtools/codemod-task-utils": "workspace:*",
"@ag-grid-devtools/types": "workspace:*",
Expand All @@ -83,6 +100,7 @@
"glob": "11.0.0",
"graceful-fs": "4.2.11",
"ignore": "5.3.2",
"prettier": "3.3.3",
"semver": "7.6.3",
"vite-plugin-dts": "4.0.3",
"vite-plugin-static-copy": "1.0.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test('module exports', () => {
function versionManifest(version: string): object {
return {
version,
codemodPath: `version/${version}`,
codemodPath: `versions/${version}`,
transforms: expect.arrayContaining([
{
description: expect.any(String),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type PackageManifest } from '@ag-grid-devtools/types';

import versions from './src/versions/manifest';
import versions from './versions/manifest';

const manifest: PackageManifest = {
name: 'AG Grid migration packages',
Expand Down
Loading

0 comments on commit 8ffa6eb

Please sign in to comment.