diff --git a/.changeset/nice-eels-kick.md b/.changeset/nice-eels-kick.md deleted file mode 100644 index 50ecaa90..00000000 --- a/.changeset/nice-eels-kick.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@hypermod/fetcher': patch ---- - -Added blacklist to remote package fetcher to ensure dependencies such as `javascript` aren't downloaded since they will never contain a hypermod.config file. diff --git a/.changeset/sour-plants-exist.md b/.changeset/sour-plants-exist.md deleted file mode 100644 index 67a121e7..00000000 --- a/.changeset/sour-plants-exist.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@hypermod/initializer': patch -'@codeshift/cli': patch -'@hypermod/validator': patch -'@hypermod/fetcher': patch -'@hypermod/types': patch -'@hypermod/utils': patch -'@hypermod/core': patch -'@hypermod/cli': patch ---- - -Moves package bundling from Parceljs to TSC diff --git a/packages/cli/src/main.ts b/packages/cli/src/main.ts index 4dfb78c0..17b3c27b 100644 --- a/packages/cli/src/main.ts +++ b/packages/cli/src/main.ts @@ -35,7 +35,7 @@ export default async function main( } const pluginManagerConfig: Partial = { - pluginsPath: path.join(__dirname, '..', '.tmp', 'node_modules'), + pluginsPath: path.join(__dirname, '..', 'node_modules'), }; // If a registry is provided in the CLI flags, use it for the pluginManagers configuration. diff --git a/packages/fetcher/package.json b/packages/fetcher/package.json index b40bdd5e..5ef87ae1 100644 --- a/packages/fetcher/package.json +++ b/packages/fetcher/package.json @@ -7,7 +7,6 @@ "license": "MIT", "repository": "https://github.com/hypermod-io/hypermod-community/tree/main/packages/fetcher", "dependencies": { - "@antfu/install-pkg": "^0.1.1", "@hypermod/types": "*", "chalk": "^4.1.0", "fs-extra": "^9.1.0", diff --git a/packages/initializer/src/index.ts b/packages/initializer/src/index.ts index 14b83f1e..c31f6864 100644 --- a/packages/initializer/src/index.ts +++ b/packages/initializer/src/index.ts @@ -3,6 +3,9 @@ import path from 'path'; import semver from 'semver'; import * as recast from 'recast'; +import { version as cliVersion } from '@hypermod/cli/package.json'; +import { version as utilVersion } from '@hypermod/utils/package.json'; + const TEMPLATE_PATH = path.join(__dirname, '..', 'template'); export function getPackageJson(packageName: string, version = '0.0.0') { @@ -20,11 +23,11 @@ export function getPackageJson(packageName: string, version = '0.0.0') { validate: 'hypermod validate .', }, dependencies: { - '@hypermod/utils': `^0.3.0`, + '@hypermod/utils': `^${utilVersion}`, jscodeshift: '^0.13.1', }, devDependencies: { - '@hypermod/cli': 'latest', + '@hypermod/cli': `^${cliVersion}`, '@types/jest': '^26.0.15', '@types/node': '^16.11.0', jest: '^26.6.0', diff --git a/tsconfig.community.json b/tsconfig.community.json deleted file mode 100644 index 725d53e2..00000000 --- a/tsconfig.community.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["community/**/*", "scripts"] -} diff --git a/tsconfig.json b/tsconfig.json index 5ac4b40b..f31e7316 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "composite": true, "strict": true, "skipLibCheck": true, "moduleResolution": "node",