diff --git a/.changeset/light-pumas-give.md b/.changeset/light-pumas-give.md new file mode 100644 index 00000000..4ba24779 --- /dev/null +++ b/.changeset/light-pumas-give.md @@ -0,0 +1,6 @@ +--- +'@codeshift/cli': minor +'@hypermod/cli': minor +--- + +Implements alternate dependency downloader which is available via the --experimental-loader flag diff --git a/.changeset/nice-eels-kick.md b/.changeset/nice-eels-kick.md new file mode 100644 index 00000000..50ecaa90 --- /dev/null +++ b/.changeset/nice-eels-kick.md @@ -0,0 +1,5 @@ +--- +'@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 new file mode 100644 index 00000000..67a121e7 --- /dev/null +++ b/.changeset/sour-plants-exist.md @@ -0,0 +1,12 @@ +--- +'@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/initializer/src/index.ts b/packages/initializer/src/index.ts index 015f3bbf..14b83f1e 100644 --- a/packages/initializer/src/index.ts +++ b/packages/initializer/src/index.ts @@ -2,8 +2,6 @@ import fs from 'fs-extra'; 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'); @@ -22,11 +20,11 @@ export function getPackageJson(packageName: string, version = '0.0.0') { validate: 'hypermod validate .', }, dependencies: { - '@hypermod/utils': `^${utilVersion}`, + '@hypermod/utils': `^0.3.0`, jscodeshift: '^0.13.1', }, devDependencies: { - '@hypermod/cli': `^${cliVersion}`, + '@hypermod/cli': 'latest', '@types/jest': '^26.0.15', '@types/node': '^16.11.0', jest: '^26.6.0', diff --git a/tsconfig.community.json b/tsconfig.community.json index 7664493b..725d53e2 100644 --- a/tsconfig.community.json +++ b/tsconfig.community.json @@ -1,18 +1,4 @@ { - "compilerOptions": { - "composite": true, - "strict": true, - "skipLibCheck": true, - "resolveJsonModule": true, - "esModuleInterop": true - }, - "include": ["community/**/*", "scripts"], - "exclude": [ - "node_modules", - "plugin_packages", - "dist", - "__tests__", - "**/*.test*", - "**/*.spec*" - ] + "extends": "./tsconfig.json", + "include": ["community/**/*", "scripts"] } diff --git a/yarn.lock b/yarn.lock index 430783a7..5034539a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3570,7 +3570,7 @@ color-name@~1.1.4: colors@1.4.0: version "1.4.0" - resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" + resolved "https://packages.atlassian.com/api/npm/npm-remote/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA== combined-stream@^1.0.8: