Skip to content

Commit

Permalink
move pkgs to tsc bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Del Core committed Sep 10, 2023
1 parent a5ad460 commit 1c831a2
Show file tree
Hide file tree
Showing 22 changed files with 384 additions and 2,839 deletions.
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
"docs:start": "cd website && yarn start",
"postinstall": "yarn monorepo:check",
"build": "yarn build:pkgs && yarn build:community",
"build:pkgs": "parcel build packages/*",
"build:pkgs:watch": "parcel watch packages/*",
"build:pkgs": "yarn clean && tsc --build tsconfig.packages.json",
"build:pkgs:watch": "tsc --build --watch tsconfig.packages.json",
"build:community": "parcel build community/*",
"build:community:watch": "parcel watch community/*",
"clean": "rm -rf node_modules/.cache && rimraf packages/**/{tsconfig.tsbuildinfo,lib,dist} community/**/{tsconfig.tsbuildinfo,lib,dist}",
"clean": "rm -rf node_modules/.cache && rimraf packages/**/{tsconfig.tsbuildinfo,dist} community/**/{tsconfig.tsbuildinfo,dist}",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"validate": "yarn build && yarn lint && yarn monorepo:check && yarn community:validate",
"validate": "yarn lint && yarn monorepo:check && yarn community:validate",
"lint": "eslint --config .eslintrc.js --ext tsx,ts ./packages/**/src ./community/**/src",
"lint:fix": "yarn lint -- --fix",
"types:check": "tsc --noEmit --skipLibCheck",
Expand All @@ -45,7 +45,6 @@
"@manypkg/cli": "^0.20.0",
"@parcel/packager-ts": "^2.8.3",
"@parcel/transformer-typescript-types": "^2.8.3",
"@putout/plugin-remove-unused-variables": "^5.1.0",
"@types/inquirer": "^8.2.1",
"@types/jest": "^29.0.0",
"@types/jscodeshift": "^0.11.6",
Expand All @@ -65,7 +64,6 @@
"junk": "^3.1.0",
"parcel": "^2.8.3",
"prettier": "^2.0.0",
"putout": "^29.5.1",
"rimraf": "^2.6.3",
"semver": "^7.3.5",
"tar": "^6.1.0",
Expand Down
4 changes: 1 addition & 3 deletions packages/cli-alias/bin/codeshift-cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env node
const path = require('path');

const packageJson = require('../package.json');

require(path.join('..', packageJson.main));
require(path.join('..', 'dist', 'index.js'));
29 changes: 11 additions & 18 deletions packages/cli-alias/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.packages.json",
"compilerOptions": {
"baseUrl": "./",
"target": "es6",
"esModuleInterop": true,
"resolveJsonModule": true,
"moduleResolution": "node",
"lib": [
"es5",
"scripthost",
"es2015.core",
"es2015.collection",
"es2015.symbol",
"es2015.iterable",
"es2015.promise",
"es2016",
"es2017"
]
"rootDir": "src",
"outDir": "dist"
},
"include": ["./src/**/*.ts"]
"references": [
{ "path": "../types" },
{ "path": "../core" },
{ "path": "../fetcher" },
{ "path": "../validator" },
{ "path": "../initializer" },
{ "path": "../fetcher" }
]
}
4 changes: 1 addition & 3 deletions packages/cli/bin/hypermod-cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env node
const path = require('path');

const packageJson = require('../package.json');

require(path.join('..', packageJson.main));
require(path.join('..', 'dist', 'index.js'));
4 changes: 2 additions & 2 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import init from './init';
import validate from './validate';
import { InvalidUserInputError, InvalidConfigError } from './errors';

import packageJson from '../package.json';
// import packageJson from '../package.json';

const program = new Command();

program
.enablePositionalOptions()
.version(packageJson.version, '-v, --version')
.version('packageJson.version', '-v, --version')
.name('hypermod')
.argument('[path...]')
.usage('[global options] <file-paths>...')
Expand Down
29 changes: 11 additions & 18 deletions packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.packages.json",
"compilerOptions": {
"baseUrl": "./",
"target": "es6",
"esModuleInterop": true,
"resolveJsonModule": true,
"moduleResolution": "node",
"lib": [
"es5",
"scripthost",
"es2015.core",
"es2015.collection",
"es2015.symbol",
"es2015.iterable",
"es2015.promise",
"es2016",
"es2017"
]
"rootDir": "src",
"outDir": "dist"
},
"include": ["./src/**/*.ts"]
"references": [
{ "path": "../types" },
{ "path": "../core" },
{ "path": "../fetcher" },
{ "path": "../validator" },
{ "path": "../initializer" },
{ "path": "../fetcher" }
]
}
231 changes: 0 additions & 231 deletions packages/core/lib/Worker.js

This file was deleted.

Loading

0 comments on commit 1c831a2

Please sign in to comment.