Skip to content

Commit

Permalink
fixup!: add entry to correct-ts-specifiers config & rename main file
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobJingleheimer committed Dec 22, 2024
1 parent 330818f commit f8f7787
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions recipes/correct-ts-specifiers/.codemodrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"engine": "workflow",
"private": false,
"arguments": [],
"entry": "./src/main.ts",
"meta": {
"git": "https://github.com/nodejs/userland-migrations/tree/main/recipes/correct-ts-specifiers",
"tags": [
Expand Down
4 changes: 2 additions & 2 deletions recipes/correct-ts-specifiers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"version": "1.0.0-rc.1",
"description": "Replace erroneous 'js' or omitted file extensions of import specifiers in TypeScript files.",
"type": "module",
"main": "./src/workflow.ts",
"main": "./src/main.ts",
"engines": {
"node": ">=22.6.0"
},
"scripts": {
"start": "node --no-warnings --experimental-import-meta-resolve --experimental-strip-types ./src/workflow.ts",
"start": "node --no-warnings --experimental-import-meta-resolve --experimental-strip-types ./src/main.ts",
"test": "node --no-warnings --experimental-import-meta-resolve --experimental-test-module-mocks --experimental-test-snapshots --experimental-strip-types --import='../../build/snapshots.mts' --test --experimental-test-coverage --test-coverage-include='src/**/*' --test-coverage-exclude='**/*.test.ts' './**/*.test.ts'"
},
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('workflow', () => {
'--no-warnings',
'--experimental-strip-types',
'--experimental-import-meta-resolve',
'../../workflow.ts',
'../../main.ts',
],
{
cwd: e2eFixtPath,
Expand Down
File renamed without changes.

0 comments on commit f8f7787

Please sign in to comment.