Skip to content

Update deps to use npm or jsr #120

@justinmchase

Description

@justinmchase

The deps are still old-fashioned and stored in a deps.js and pulling from deno.land/x

Background

In older versions of deno you would just add a deps.ts file and import directly from deno.land.

In more recent versions of deno you should add your dependencies to the deno.json file and have them map to packages either in jsr or npm.

Update Dependencies

Please update all dependencies currently in the deps/ folder into package dependencies in the deno.json file.

  • deps/json5.ts -> npm:json5
  • deps/jsonc.ts -> npm:jsonc
  • deps/semver.ts -> jsr:@std/semver
  • deps/std.ts
    • path -> jsr:@std/path
    • asserts -> jsr:@std/assert
    • testing -> jsr:@std/testing
  • deps/xml.ts
    • xml2js -> npm:xml2js
    • js2xml -> npm:js2xml
  • deps/yaml.ts -> jsr:@std/yaml
  • deps/yargs.ts -> npm:yargs

Update Code

Please update all code to reference dependencies by dependency alias rather than from the deps/ folder.

Please delete the deps/ folder and all files under it.

Please update and fix any code that is affected by changes to libraries being imported from the new location.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions