Skip to content

Commit

Permalink
fix: repair map annotation drops
Browse files Browse the repository at this point in the history
In a previous version, the map annotation was being dropped unexpectedly. The cause of the issue has been addressed.
  • Loading branch information
iiian committed Feb 13, 2022
1 parent 610ca24 commit 94c391d
Show file tree
Hide file tree
Showing 12 changed files with 316 additions and 1,069 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
node_modules
yarn-error.log
bin
.vscode
coverage
pnpm-lock.*
package-lock.*
schema.prisma
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
test/
coverage/
.vscode/
bin/**.js.map
pnpm-lock.yaml
schema.prisma
src/
tsconfig.json
jest.config.js
26 changes: 26 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "DoDryRun",
"type": "node",
"request": "launch",
"args": ["${workspaceFolder}/src/cli.ts", "--dry-run"],
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
"sourceMaps": true,
"cwd": "${workspaceRoot}",
"protocol": "inspector",
},
{
"name": "Debug Jest Tests",
"type": "node",
"request": "launch",
"runtimeArgs": ["--inspect-brk", "${workspaceRoot}/node_modules/jest/bin/jest.js", "--runInBand"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
302 changes: 0 additions & 302 deletions bin/cli.js

This file was deleted.

302 changes: 0 additions & 302 deletions dist/cli.js

This file was deleted.

13 changes: 13 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
"^.+\\.tsx?$": "ts-jest",
},
testRegex: "(/test/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
testPathIgnorePatterns: ["/dist/", "/src/", "/node_modules/"],
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
collectCoverage: true,
mapCoverage: true,
};
16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prisma-case-format",
"version": "1.0.3",
"version": "1.0.4",
"description": "Give your introspected schema.prisma sane casing conventions",
"main": "./dist/cli.js",
"repository": {
Expand All @@ -11,18 +11,28 @@
"prisma-case-format": "bin/cli.js"
},
"scripts": {
"build": "tsc; mkdir bin; cp ./dist/cli.js ./bin/cli.js"
"build": "tsc",
"test": "jest"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@babel/core": "^7.17.2",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@types/jest": "^27.4.0",
"@types/node": "^17.0.17",
"babel-jest": "^27.5.1",
"ts-node": "^10.5.0",
"typescript": "^4.2.3"
},
"dependencies": {
"@prisma/client": "^2.19.0",
"@prisma/sdk": "^2.19.0",
"change-case": "^4.1.2",
"commander": "^7.2.0",
"prisma": "^2.19.0"
"jest": "^27.5.1",
"prisma": "^2.19.0",
"ts-jest": "^27.1.3"
}
}
Loading

0 comments on commit 94c391d

Please sign in to comment.