Skip to content

Commit

Permalink
remove source and restore source maps in npm files
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Apr 2, 2021
1 parent 4dbce43 commit c4de1a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
"main": "dist/ajv.js",
"types": "dist/ajv.d.ts",
"files": [
"lib/",

This comment has been minimized.

Copy link
@Jason3S

Jason3S Apr 2, 2021

@epoberezkin this seem to be breaking things.

Error: Cannot find module 'ajv/lib/refs/json-schema-draft-06.json'
Require stack:
- /home/runner/work/cspell/cspell/packages/cspell-types/node_modules/ajv-cli/dist/commands/ajv.js
- /home/runner/work/cspell/cspell/packages/cspell-types/node_modules/ajv-cli/dist/commands/compile.js
- /home/runner/work/cspell/cspell/packages/cspell-types/node_modules/ajv-cli/dist/commands/index.js
- /home/runner/work/cspell/cspell/packages/cspell-types/node_modules/ajv-cli/dist/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/runner/work/cspell/cspell/packages/cspell-types/node_modules/ajv-cli/dist/commands/ajv.js:10:26)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/runner/work/cspell/cspell/packages/cspell-types/node_modules/ajv-cli/dist/commands/ajv.js',
    '/home/runner/work/cspell/cspell/packages/cspell-types/node_modules/ajv-cli/dist/commands/compile.js',
    '/home/runner/work/cspell/cspell/packages/cspell-types/node_modules/ajv-cli/dist/commands/index.js',
    '/home/runner/work/cspell/cspell/packages/cspell-types/node_modules/ajv-cli/dist/index.js'
  ]
}
"dist/",
".tonic_example.js"
".runkit_example.js"
],
"scripts": {
"eslint": "eslint \"lib/**/*.ts\" \"spec/**/*.*s\" scripts --ignore-pattern spec/JSON-Schema-Test-Suite",
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"types": ["node"],
"allowJs": true,
"target": "ES2018",
"resolveJsonModule": true,
"sourceMap": false
"resolveJsonModule": true
}
}

0 comments on commit c4de1a4

Please sign in to comment.