Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-creator

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-creator - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

tsconfig.test.json

8

package.json
{
"name": "ts-creator",
"version": "1.0.1",
"version": "1.0.2",
"description": "A code generator to generate TypeScript code generator from TypeScript code",
"main": "src/index.ts",
"scripts": {
"build": "webpack --config webpack.config.js",
"test": "webpack --config webpack.config.test.js && node ./dist/main.js",
"build": "tsc -p ./tsconfig.json",
"test": "tsc -p ./tsconfig.test.json && node ./dist/tests/index.js",
"lint": "prettier --config ./prettier.json --list-different ./src/**/* ./tests/**/*",

@@ -18,7 +18,5 @@ "prettier": "prettier --config ./prettier.json --write ./src/**/* ./tests/**/*"

"prettier": "^1.15.3",
"ts-loader": "^5.3.3",
"typescript": "^3.2.2",
"webpack": "^4.28.4",
"webpack-cli": "^3.2.1"
}
}

@@ -14,7 +14,5 @@ # ts-creator

```ts
function foo(bar: number): number {
return bar + 1
}
```

@@ -67,12 +65,18 @@

```ts
function foo(bar: number): number {
return bar + 1;
}
```
## How to use it:
```ts
import creator from 'ts-creator'
const generatedFactoryCode = creator(`const foo = "your code here"`)
```
### TODO:
## TODO:
- [ ] JSDoc
- [ ] Jsx
import * as ts from 'typescript'
import prettier from 'prettier'
import * as prettier from 'prettier'
import {

@@ -10,3 +10,3 @@ createTsCall,

} from './helper'
import defaultPrettierOptions from '../prettier.json'
import * as defaultPrettierOptions from '../prettier.json'

@@ -13,0 +13,0 @@ interface QuestionOrExclamation {

@@ -1,2 +0,2 @@

import fs from 'fs'
import * as fs from 'fs'
import creator from '../src'

@@ -3,0 +3,0 @@

@@ -5,10 +5,14 @@ {

"strict": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": false,
"module": "esnext",
"module": "commonjs",
"moduleResolution": "node",
"target": "esnext",
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true
}
"target": "es5",
"resolveJsonModule": true,
"declaration": true,
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"exclude": [
"node_modules",
"tests"
]
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc