<commit_before>import { generator, toFile, writeJSON } from '@feathershq/pinion'
import { AppGeneratorContext } from '../index'

const jsPackageJson = (lib: string) => ({
  type: 'module',
  scripts: {
    start: `node ${lib}`,
    dev: `nodemon ${lib}/`,
    mocha: 'cross-env NODE_ENV=test mocha test/ --recursive --exit',
    test: 'npm run mocha'
  }
})

const tsPackageJson = (lib: string) => ({
  scripts: {
    dev: `nodemon -x ts-node ${lib}/index.ts`,
    compile: 'shx rm -rf dist/ && tsc',
    start: 'npm run compile && node dist/',
    mocha:
      'cross-env NODE_ENV=test mocha test/ --require ts-node/register --recursive --extension .ts --exit',
    test: 'npm run mocha'
  }
})

const packageJson = ({
  name,
  description,
  language,
  packager,
  database,
  framework,
  transports,
  lib,
  test
}: AppGeneratorContext) => ({
  name,
  description,
  version: '0.0.0',
  homepage: '',
  private: true,<commit_msg>fix(cli): Fix compilation folders that got mixed up<commit_after>import { generator, toFile, writeJSON } from '@feathershq/pinion'
import { AppGeneratorContext } from '../index'

const jsPackageJson = (lib: string) => ({
  type: 'module',
  scripts: {
    start: `node ${lib}`,
    dev: `nodemon ${lib}/`,
    mocha: 'cross-env NODE_ENV=test mocha test/ --recursive --exit',
    test: 'npm run mocha'
  }
})

const tsPackageJson = (lib: string) => ({
  scripts: {
    dev: `nodemon -x ts-node ${lib}/index.ts`,
    compile: 'shx rm -rf lib/ && tsc',
    start: 'npm run compile && node lib/',
    mocha:
      'cross-env NODE_ENV=test mocha test/ --require ts-node/register --recursive --extension .ts --exit',
    test: 'npm run mocha'
  }
})

const packageJson = ({
  name,
  description,
  language,
  packager,
  database,
  framework,
  transports,
  lib,
  test
}: AppGeneratorContext) => ({
  name,
  description,
  version: '0.0.0',
  homepage: '',
  private: true,
{'fraction_non_alphanumeric': 0.1649214659685864, 'fraction_numerical': 0.0031413612565445027, 'mean_word_length': 3.1008583690987126, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3865043', 'n_tokens_mistral': 680, 'n_tokens_neox': 666, 'n_words': 186}